* add EnvManager class * holds all functions that are env file related * integrates runner dependency resolution * add integration and unit tests for EnvManager Reviewed-on: local-it-infrastructure/e2e_tests#6 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
14 lines
641 B
Python
14 lines
641 B
Python
from playwright.sync_api import BrowserContext, expect
|
|
|
|
from src.dir_manager import DirManager
|
|
|
|
|
|
def test_wordpress(admin_session: BrowserContext, dotenv_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"]:
|
|
expect(page_wordpress.get_by_role("heading")).to_have_text("Willkommen bei WordPress!")
|