use new authentik fixture name
This commit is contained in:
parent
3e142a7593
commit
21dd190fb3
1 changed files with 7 additions and 7 deletions
|
|
@ -5,12 +5,8 @@ from src.dirmanager import DirManager
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.xfail(reason="wordpress sso login has not been generated")
|
@pytest.mark.xfail(reason="wordpress sso login has not been generated")
|
||||||
def test_visit_from_domain(admin_context: BrowserContext, dotenv_config: dict[str, str]):
|
def test_visit_from_domain(authentik_admin_context: BrowserContext, dotenv_config: dict[str, str]):
|
||||||
# with authentik_admin_page.expect_popup() as event_context:
|
page = authentik_admin_context.new_page()
|
||||||
# authentik_admin_page.get_by_role("link", name="Wordpress").click()
|
|
||||||
# page_wordpress = event_context.value
|
|
||||||
|
|
||||||
page = admin_context.new_page()
|
|
||||||
url = "https://" + dotenv_config["DOMAIN"]
|
url = "https://" + dotenv_config["DOMAIN"]
|
||||||
page.goto(url)
|
page.goto(url)
|
||||||
|
|
||||||
|
|
@ -21,7 +17,7 @@ def test_visit_from_domain(admin_context: BrowserContext, dotenv_config: dict[st
|
||||||
expect(page.locator("#wpadminbar")).to_be_visible()
|
expect(page.locator("#wpadminbar")).to_be_visible()
|
||||||
|
|
||||||
|
|
||||||
def setup_visit_from_authentik(authentik_admin_page: Page, DIR: DirManager):
|
def test_visit_from_authentik(authentik_admin_page: Page, DIR: DirManager):
|
||||||
with authentik_admin_page.expect_popup() as event_context:
|
with authentik_admin_page.expect_popup() as event_context:
|
||||||
authentik_admin_page.get_by_role("link", name="Wordpress").click()
|
authentik_admin_page.get_by_role("link", name="Wordpress").click()
|
||||||
page_wordpress = event_context.value
|
page_wordpress = event_context.value
|
||||||
|
|
@ -35,3 +31,7 @@ def setup_visit_from_authentik(authentik_admin_page: Page, DIR: DirManager):
|
||||||
context = page_wordpress.context
|
context = page_wordpress.context
|
||||||
|
|
||||||
context.storage_state(path=f"{DIR.STATES}/wordpress_admin_state.json")
|
context.storage_state(path=f"{DIR.STATES}/wordpress_admin_state.json")
|
||||||
|
|
||||||
|
|
||||||
|
def setup_something():
|
||||||
|
assert False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue