set correct work dir for docker image fix check_if_user_exists by adding wait time to is_visible implement the wait with playwright functions cleanup add locale for testing add WIP argument only_run_failed make progress output more fine grained improve docstring save tracebacks to records add check to look for already passed tests to skip those remove progress dir put the actual class in runner dependencies, fix _check_dependencies_finished cleanup work on wordpress test add loguru add logger and html report add test helper to skip tests if required remove old file add demo test with explanation make name and test_dir_name required cleanup add demo Runner with documentation improve doc fix arguments in _create_result_file use _run_test_if_required in run_tests add prevent skip set timeout save traces to RECORDS add doc include setup_demo wip rename authentic fixtures should work reomve remove localization stuff remove dummy test use config in condition put html reports in their own dir inside records add beautifulsoup4 initial commit add combine_html cleanup improve doc string more logging, cleanup cleanup fixup remove only_run_failed add comment move traces to their own dir and move them after test improve depenency check add parse_env_files enable all rename wrapper to coordinator remove Protocol create DIR in init make _parse_env_files private make coordinator instance available in runner handle env files via dict objects remove trace dir after collect_traces rename html report Revert "make coordinator instance available in runner" This reverts commit a17402ed319da98518f8bb8ed8eca462299657a1. add todo add _copy_env_files log tests finished collect_traces saves each trace with unique dir name via enumeration remove traceback hook as same information is available in html report improve logging
14 lines
640 B
Python
14 lines
640 B
Python
from playwright.sync_api import BrowserContext, expect
|
|
|
|
from src.dirmanager 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!")
|