⏱️ Duration: 44.34s
❌ Error:
self = <tests.test_web_general.TestWebPhase1 object at 0x7f83a52c00d0>
login_page = <pages.login_page.LoginPage object at 0x7f83a52c1ed0>
main_page = <pages.main_page.MainPage object at 0x7f83a52d6c50>
pricing_page = <pages.pricing_page.PricingPage object at 0x7f83a52d7a00>
base_url = 'https://promo.com'
def test_w27_verify_header_for_logged_and_not_logged(
self, login_page, main_page, pricing_page, base_url
):
"""
W27 Verify header for logged and not logged
Pricing and PromoAI nav links should appear for guests and disappear
once the user is authenticated.
"""
page = login_page.page
# Unauthenticated: links should be present
main_page.go_to_homepage(base_url)
login_page.skip_cookies()
main_page.verify_header_links_visible()
page.goto(f"{base_url}/pricing")
page.wait_for_load_state("domcontentloaded")
main_page.verify_header_links_visible()
# Log in
login_page.login_directly(base_url, general_mail(), get_password())
# Authenticated: links should be gone
page.goto(f"{base_url}/create")
page.wait_for_load_state("domcontentloaded")
main_page.verify_header_links_not_visible()
> page.goto(f"{base_url}/templates")
tests/test_web_general.py:235:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:9875: in goto
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_page.py:560: in goto
return await self._main_frame.goto(**locals_to_params(locals()))
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:156: in goto
await self._channel.send(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py:76: in send
return await self._connection.wrap_api_call(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
📸 Failure Screenshot: