move all tests to their own dir
This commit is contained in:
parent
d38808ac65
commit
ce76e14358
22 changed files with 0 additions and 0 deletions
15
src-tests/tests_wordpress/test_wordpress_localization.py
Normal file
15
src-tests/tests_wordpress/test_wordpress_localization.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# WIP localization
|
||||
|
||||
from playwright.sync_api import BrowserContext, expect
|
||||
|
||||
from src.dir_manager import DirManager
|
||||
|
||||
|
||||
def test_welcome_message(context: BrowserContext, dotenv_config: dict[str, str], DIR: DirManager):
|
||||
page = context.new_page()
|
||||
url = "https://" + dotenv_config["DOMAIN"]
|
||||
page.goto(url)
|
||||
|
||||
expect(page.locator(".wp-block-heading")).to_be_visible()
|
||||
if "locale" in dotenv_config and "de" in dotenv_config["locale"]:
|
||||
expect(page.get_by_role("heading")).to_have_text("Willkommen bei WordPress!")
|
||||
Loading…
Add table
Add a link
Reference in a new issue