rename dotenv_config fixture to env_config
This commit is contained in:
parent
c666e8de4c
commit
14c1a1c1f6
9 changed files with 31 additions and 31 deletions
|
|
@ -3,12 +3,12 @@ from playwright.sync_api import BrowserContext, expect
|
|||
from pytest_abra.dir_manager import DirManager
|
||||
|
||||
|
||||
def test_wordpress(admin_session: BrowserContext, dotenv_config: dict[str, str], DIR: DirManager):
|
||||
def test_wordpress(admin_session: BrowserContext, env_config: dict[str, str], DIR: DirManager):
|
||||
page_authentik = admin_session.new_page()
|
||||
with page_authentik.expect_popup() as event_context:
|
||||
page_authentik.get_by_role("link", name="Wordpress").click()
|
||||
page_wordpress = event_context.value
|
||||
|
||||
expect(page_wordpress.locator("#wpcontent")).to_be_visible()
|
||||
if "locale" in dotenv_config and "de" in dotenv_config["locale"]:
|
||||
if "locale" in env_config and "de" in env_config["locale"]:
|
||||
expect(page_wordpress.get_by_role("heading")).to_have_text("Willkommen bei WordPress!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue