test_visit_from_authentik working
This commit is contained in:
parent
4c5f469cd8
commit
6983986ec1
1 changed files with 8 additions and 9 deletions
|
|
@ -1,14 +1,13 @@
|
||||||
import re
|
from playwright.sync_api import Page, expect
|
||||||
|
|
||||||
from playwright.sync_api import BrowserContext, expect
|
|
||||||
|
|
||||||
from src.dirmanager import DirManager
|
|
||||||
|
|
||||||
|
|
||||||
def test_visit_from_authentik(admin_context: BrowserContext, dotenv_config: dict[str, str], DIR: DirManager):
|
def test_visit_from_authentik(authentik_admin_page: Page):
|
||||||
page_authentik = admin_context.new_page()
|
with authentik_admin_page.expect_popup() as event_context:
|
||||||
with page_authentik.expect_popup() as event_context:
|
authentik_admin_page.get_by_role("link", name="Wordpress").click()
|
||||||
page_authentik.get_by_role("link", name="Wordpress").click()
|
|
||||||
page_wordpress = event_context.value
|
page_wordpress = event_context.value
|
||||||
|
|
||||||
|
# look for content wrapper
|
||||||
expect(page_wordpress.locator("#wpcontent")).to_be_visible()
|
expect(page_wordpress.locator("#wpcontent")).to_be_visible()
|
||||||
|
|
||||||
|
# look for admin bar
|
||||||
|
expect(page_wordpress.locator("#wpadminbar")).to_be_visible()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue