⏱️ Duration: 17.24s
❌ Error:
mobile_page = <Page url='https://promo.com/signup'>
base_url = 'https://promo.com'
def test_m05_generate_single_ai_post_mobile(mobile_page: Page, base_url: str) -> None:
"""M05: Verify mobile single AI post button for unauthenticated user (Sign up prompt),
then sign up and generate a single AI post.
"""
auto = AutopilotPage(mobile_page)
signup = SignUpPage(mobile_page)
# Part 1: verify mobile AI button prompts signup for unauthenticated user
auto.go_to_my_calendar(base_url)
mobile_page.wait_for_load_state("domcontentloaded")
_dismiss_cookies(mobile_page)
mobile_page.locator('[data-qaid="new-video-mobile-button"]').wait_for(
state="visible", timeout=15_000
)
mobile_page.locator('[data-qaid="new-video-mobile-button"]').click()
# Unauthenticated users see a Sign up CTA
mobile_page.locator('button:has-text("Sign up")').wait_for(state="visible", timeout=10_000)
# Part 2: sign up via standard /signup page
email = random_email()
> signup.create_account(base_url, email, fullname, random_password)
tests/test_mobile_view.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pages.sign_up_page.SignUpPage object at 0x7f883ce1aad0>
base_url = 'https://promo.com', email = 'promo.auto.ab73ab2207@gmail.com'
full_name = 'Automate Promo', password = '123456789'
def create_account(self, base_url: str, email: str, full_name: str, password: str):
"""
Creates a new account by navigating directly to /signup.
Mirrors: signup_process_steps_email(browser, random_email)
Test environments (testingpromo.com) are behind Cloudflare Access —
CF headers are injected at the browser-context level in conftest.py.
"""
self.page.goto(f"{base_url}/signup")
self.page.locator(self.FULL_NAME_INPUT).wait_for(state="visible