make-all-env-files-available #4

Merged
dan merged 6 commits from make-all-env-files-available into dev 2023-11-30 10:53:22 +01:00
Showing only changes of commit 6983986ec1 - Show all commits

View file

@ -1,14 +1,13 @@
import re
from playwright.sync_api import BrowserContext, expect
from src.dirmanager import DirManager
from playwright.sync_api import Page, expect
def test_visit_from_authentik(admin_context: BrowserContext, dotenv_config: dict[str, str], DIR: DirManager):
page_authentik = admin_context.new_page()
with page_authentik.expect_popup() as event_context:
page_authentik.get_by_role("link", name="Wordpress").click()
def test_visit_from_authentik(authentik_admin_page: Page):
with authentik_admin_page.expect_popup() as event_context:
authentik_admin_page.get_by_role("link", name="Wordpress").click()
page_wordpress = event_context.value
# look for content wrapper
expect(page_wordpress.locator("#wpcontent")).to_be_visible()
# look for admin bar
expect(page_wordpress.locator("#wpadminbar")).to_be_visible()