Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit da98d7c

Browse files
authoredSep 25, 2024··
Merge branch 'BlackPythonDevs:gh-pages' into add-leadership-model-page
2 parents b84abf1 + f9deeae commit da98d7c

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed
 

‎_layouts/index.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
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>

‎tests/test.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import time
2-
31
import pytest
42
from playwright.sync_api import Page, expect
53

@@ -16,13 +14,6 @@
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)
2718
def 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

0 commit comments

Comments
 (0)
Please sign in to comment.