test framework
This commit is contained in:
parent
5961516536
commit
859bd57006
11 changed files with 313 additions and 246 deletions
14
wordpress_test.py
Normal file
14
wordpress_test.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from conftest import CONFIG, check_for, RECORDS
|
||||
|
||||
""" Test Wordpress """
|
||||
def test_wordpress(admin_session):
|
||||
context, page = admin_session
|
||||
with page.expect_popup() as info:
|
||||
page.get_by_role("link", name="Wordpress").click()
|
||||
|
||||
wordpress = info.value
|
||||
check_for(wordpress.locator("#wpcontent"))
|
||||
if CONFIG['locale'] == 'de':
|
||||
check_for(wordpress.get_by_role("heading", name="Willkommen bei WordPress!"))
|
||||
context.tracing.stop(path=f"{RECORDS}/wordpress.zip")
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue