údržba
This commit is contained in:
BIN
PWlkPY/pokus/__pycache__/test_menu.cpython-311-pytest-7.4.0.pyc
Normal file
BIN
PWlkPY/pokus/__pycache__/test_menu.cpython-311-pytest-7.4.0.pyc
Normal file
Binary file not shown.
2
PWlkPY/pokus/pytest.ini
Normal file
2
PWlkPY/pokus/pytest.ini
Normal file
@ -0,0 +1,2 @@
|
||||
[pytest]
|
||||
addopts = --base-url https://lukaskanka.cz/ --browser chromium --headed --slowmo 1000
|
14
PWlkPY/pokus/test_menu.py
Normal file
14
PWlkPY/pokus/test_menu.py
Normal file
@ -0,0 +1,14 @@
|
||||
from playwright.sync_api import Page
|
||||
import pytest
|
||||
|
||||
def test_tlacitek_menu(page: Page):
|
||||
page.goto("/")
|
||||
# tlačítko články
|
||||
page.locator('//*[@id="menu"]/ul/li[1]/strong/a').click()
|
||||
# tlačítko Hlavní stránka
|
||||
page.locator('//*[@id="menu"]/ul/li[1]/strong/a').click()
|
||||
# tlačítko O mně
|
||||
page.locator('//*[@id="menu"]/ul/li[2]/strong/a').click()
|
||||
# tlačítko Hlavní stránka
|
||||
page.locator('//*[@id="menu"]/ul/li[1]/strong/a').click()
|
||||
|
Reference in New Issue
Block a user