cleanup
This commit is contained in:
parent
756dcc96f6
commit
336ed26987
1 changed files with 2 additions and 2 deletions
|
|
@ -5,10 +5,10 @@ from playwright.sync_api import BrowserContext, expect
|
||||||
from pytest_abra import BaseUrl
|
from pytest_abra import BaseUrl
|
||||||
|
|
||||||
|
|
||||||
def test_welcome_message(context: BrowserContext, env_config: dict[str, str], URL: BaseUrl):
|
def test_de_welcome_message(context: BrowserContext, env_config: dict[str, str], URL: BaseUrl):
|
||||||
page = context.new_page()
|
page = context.new_page()
|
||||||
page.goto(URL.get())
|
page.goto(URL.get())
|
||||||
|
|
||||||
expect(page.locator(".wp-block-heading")).to_be_visible()
|
expect(page.locator(".wp-block-heading")).to_be_visible()
|
||||||
if "locale" in env_config and "de" in env_config["locale"]:
|
if "de" in env_config.get("locale", ""):
|
||||||
expect(page.get_by_role("heading")).to_have_text("Willkommen bei WordPress!")
|
expect(page.get_by_role("heading")).to_have_text("Willkommen bei WordPress!")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue