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 33---
44< div class ="home ">
55 {% 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 >
136 < article class ="hero ">
147 < div class ="hero-text "> {{ t.index.lead }}</ div >
158 </ article >
Original file line number Diff line number Diff line change 1- import time
2-
31import pytest
42from playwright .sync_api import Page , expect
53
1614]
1715
1816
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-
2617@pytest .mark .parametrize ("url" , routes )
2718def test_destination (
2819 page : Page ,
@@ -31,7 +22,8 @@ def test_destination(
3122 """Test that the destinations page loads with seeded data"""
3223 # Create a destination
3324 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
3527 assert response .url .endswith (f"/{ url } /" ) # Load the index.html
3628
3729
You can’t perform that action at this time.
0 commit comments