use URL
This commit is contained in:
parent
eacfd6582b
commit
f1c862c903
1 changed files with 3 additions and 4 deletions
|
|
@ -2,13 +2,12 @@
|
||||||
|
|
||||||
from playwright.sync_api import BrowserContext, expect
|
from playwright.sync_api import BrowserContext, expect
|
||||||
|
|
||||||
from pytest_abra.dir_manager import DirManager
|
from pytest_abra import BaseUrl
|
||||||
|
|
||||||
|
|
||||||
def test_welcome_message(context: BrowserContext, env_config: dict[str, str], DIR: DirManager):
|
def test_welcome_message(context: BrowserContext, env_config: dict[str, str], URL: BaseUrl):
|
||||||
page = context.new_page()
|
page = context.new_page()
|
||||||
url = "https://" + env_config["DOMAIN"]
|
page.goto(URL.get())
|
||||||
page.goto(url)
|
|
||||||
|
|
||||||
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 "locale" in env_config and "de" in env_config["locale"]:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue