Skip to content

Commit 13b089f

Browse files
authored
Playwright fixes (#72)
* Update e2e-requirements.txt * move github test to end
1 parent c45402f commit 13b089f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

e2e/test_homepage.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ def test_homepage(page: Page):
1515
expect(page.locator('.sphinxsidebar')
1616
).to_have_attribute("style", "display: none;")
1717

18-
# Github Link
19-
page.locator('#source_link').click()
20-
expect(page).to_have_url(re.compile(
21-
'https://github.com/piccolo-orm/piccolo_theme/'))
22-
2318
# Dark Mode
2419
page.goto(BASE_URL)
2520
expect(page.locator('html')).to_have_attribute("data-mode", "light")
@@ -46,3 +41,8 @@ def test_homepage(page: Page):
4641
page.goto(BASE_URL)
4742
page.locator('//*[@id="piccolo-theme"]/div/ul/li[1]/a').click()
4843
expect(page).to_have_title(re.compile("Setup"))
44+
45+
# Github Link
46+
page.locator('#source_link').click()
47+
expect(page).to_have_url(re.compile(
48+
'https://github.com/piccolo-orm/piccolo_theme/'))

requirements/e2e-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pytest==7.4.0
2-
pytest-playwright==0.4.2
1+
pytest==8.1.0
2+
pytest-playwright==0.4.4

0 commit comments

Comments
 (0)