This commit is contained in:
Lukáš Kaňka
2023-08-15 18:39:40 +02:00
commit f131cc0277
70 changed files with 638 additions and 0 deletions

3
PWlkPY/.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

10
PWlkPY/.idea/PWlkPY.iml generated Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
PWlkPY/.idea/misc.xml generated Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (PWlkPY) (2)" project-jdk-type="Python SDK" />
</project>

8
PWlkPY/.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/PWlkPY.iml" filepath="$PROJECT_DIR$/.idea/PWlkPY.iml" />
</modules>
</component>
</project>

6
PWlkPY/.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

2
PWlkPY/pokus/pytest.ini Normal file
View 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
View 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()