14
14
("events" ),
15
15
]
16
16
17
+
17
18
# Add a delay to each test to help with playwright race conditions
18
19
@pytest .fixture (autouse = True )
19
20
def slow_down_tests ():
@@ -23,8 +24,8 @@ def slow_down_tests():
23
24
24
25
@pytest .mark .parametrize ("url" , routes )
25
26
def test_destination (
26
- page : Page ,
27
- url : str ,
27
+ page : Page ,
28
+ url : str ,
28
29
) -> None :
29
30
"""Test that the destinations page loads with seeded data"""
30
31
# Create a destination
@@ -36,11 +37,11 @@ def test_destination(
36
37
@pytest .mark .parametrize (
37
38
"title, url" ,
38
39
(
39
- ("Acerca de" , "/es/about/" ),
40
- ("Inicio" , "/es/" ),
41
- ("Eventos" , "/es/events/" ),
42
- ("Comunidad" , "/es/community/" ),
43
- ("Conferencias" , "/es/conferences/" ),
40
+ ("Acerca de" , "/es/about/" ),
41
+ ("Inicio" , "/es/" ),
42
+ ("Eventos" , "/es/events/" ),
43
+ ("Comunidad" , "/es/community/" ),
44
+ ("Conferencias" , "/es/conferences/" ),
44
45
),
45
46
)
46
47
def test_headers_in_language (page : Page , title : str , url : str ) -> None :
@@ -65,11 +66,11 @@ def test_switching_lang_es_about(page: Page) -> None:
65
66
@pytest .mark .parametrize (
66
67
"title, url" ,
67
68
(
68
- ("Kutuhusu" , "/sw/about/" ),
69
- ("Nyumbani" , "/sw/" ),
70
- ("Matukio" , "/sw/events/" ),
71
- ("Jumuiya" , "/sw/community/" ),
72
- ("Mikutano" , "/sw/conferences/" ),
69
+ ("Kutuhusu" , "/sw/about/" ),
70
+ ("Nyumbani" , "/sw/" ),
71
+ ("Matukio" , "/sw/events/" ),
72
+ ("Jumuiya" , "/sw/community/" ),
73
+ ("Mikutano" , "/sw/conferences/" ),
73
74
),
74
75
)
75
76
def test_headers_in_sw (page : Page , title : str , url : str ) -> None :
@@ -94,12 +95,12 @@ def test_switching_lang_sw_about(page: Page) -> None:
94
95
@pytest .mark .parametrize (
95
96
"title, url" ,
96
97
(
97
- ("Black Python Devs | Home" , "/" ),
98
- ("Black Python Devs | Blog" , "/blog" ),
99
- ("Black Python Devs | About Us" , "/about/" ),
100
- ("Black Python Devs | Events" , "/events/" ),
101
- ("Black Python Devs | Conferences" , "/conferences/" ),
102
- ("Black Python Devs | Community" , "/community/" ),
98
+ ("Black Python Devs | Home" , "/" ),
99
+ ("Black Python Devs | Blog" , "/blog" ),
100
+ ("Black Python Devs | About Us" , "/about/" ),
101
+ ("Black Python Devs | Events" , "/events/" ),
102
+ ("Black Python Devs | Conferences" , "/conferences/" ),
103
+ ("Black Python Devs | Community" , "/community/" ),
103
104
),
104
105
)
105
106
def test_bpdevs_title_en (page : Page , title : str , url : str ) -> None :
0 commit comments