File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 3
3
---
4
4
< div class ="home ">
5
5
{% assign t = site.data.locales[page.lang][page.lang] %} {% if page.title %} {% assign header = page.title %} {% else %} {% assign header = site.title %} {% endif %}
6
- < a style ="text-decoration:none; " href ="/leadership-summit-2024/ " >
7
- < article role ="button " style = "background-color: #357992; ">
8
- < main style = "font-size: 1.25rem; text-decoration:underline #ffffff; color: #ffffff; font-weight: lighter; text-align: center; ">
9
- Join us in Durham, and Online this weekend for the Leadership Summit. Learn More!
10
- </ header >
11
- </ article >
12
- </ a >
13
6
< article class ="hero ">
14
7
< div class ="hero-text "> {{ t.index.lead }}</ div >
15
8
</ article >
Original file line number Diff line number Diff line change 1
- import time
2
-
3
1
import pytest
4
2
from playwright .sync_api import Page , expect
5
3
16
14
]
17
15
18
16
19
- # Add a delay to each test to help with playwright race conditions
20
- @pytest .fixture (autouse = True )
21
- def slow_down_tests ():
22
- yield
23
- time .sleep (1 )
24
-
25
-
26
17
@pytest .mark .parametrize ("url" , routes )
27
18
def test_destination (
28
19
page : Page ,
@@ -31,7 +22,8 @@ def test_destination(
31
22
"""Test that the destinations page loads with seeded data"""
32
23
# Create a destination
33
24
response = page .goto (f"{ live_server_url } /{ url } " )
34
- page .on ("response" , lambda response : expect (response .status ).to_equal (200 ))
25
+
26
+ assert response .status == 200 # Check that the page loaded successfully
35
27
assert response .url .endswith (f"/{ url } /" ) # Load the index.html
36
28
37
29
You can’t perform that action at this time.
0 commit comments