Skip to content

Commit 99665f2

Browse files
committed
Mark reactjs tests as flaky
1 parent 428a06d commit 99665f2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_reactjs/test_modules_from_npm.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88

99
@pytest.mark.anyio
10+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
1011
async def test_component_from_npm_react_bootstrap():
1112
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
1213
async with DisplayFixture(backend=backend) as display:
@@ -29,6 +30,7 @@ def App():
2930

3031

3132
@pytest.mark.anyio
33+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
3234
async def test_component_from_npm_material_ui():
3335
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
3436
async with DisplayFixture(backend=backend) as display:
@@ -47,6 +49,7 @@ def App():
4749

4850

4951
@pytest.mark.anyio
52+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
5053
async def test_component_from_npm_antd():
5154
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
5255
async with DisplayFixture(backend=backend) as display:
@@ -65,6 +68,7 @@ def App():
6568

6669

6770
@pytest.mark.anyio
71+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
6872
async def test_component_from_npm_chakra_ui():
6973
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
7074
async with DisplayFixture(backend=backend) as display:
@@ -86,6 +90,7 @@ def App():
8690

8791

8892
@pytest.mark.anyio
93+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
8994
async def test_component_from_npm_semantic_ui_react():
9095
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
9196
async with DisplayFixture(backend=backend) as display:
@@ -104,6 +109,7 @@ def App():
104109

105110

106111
@pytest.mark.anyio
112+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
107113
async def test_component_from_npm_mantine():
108114
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
109115
async with DisplayFixture(backend=backend) as display:
@@ -123,6 +129,7 @@ def App():
123129

124130

125131
@pytest.mark.anyio
132+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
126133
async def test_component_from_npm_fluent_ui():
127134
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
128135
async with DisplayFixture(backend=backend) as display:
@@ -140,6 +147,7 @@ def App():
140147

141148

142149
@pytest.mark.anyio
150+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
143151
async def test_component_from_npm_blueprint():
144152
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
145153
async with DisplayFixture(backend=backend) as display:
@@ -157,6 +165,7 @@ def App():
157165

158166

159167
@pytest.mark.anyio
168+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
160169
async def test_component_from_npm_grommet():
161170
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
162171
async with DisplayFixture(backend=backend) as display:
@@ -174,6 +183,7 @@ def App():
174183

175184

176185
@pytest.mark.anyio
186+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
177187
async def test_component_from_npm_evergreen():
178188
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
179189
async with DisplayFixture(backend=backend) as display:
@@ -191,6 +201,7 @@ def App():
191201

192202

193203
@pytest.mark.anyio
204+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
194205
async def test_component_from_npm_react_spinners():
195206
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
196207
async with DisplayFixture(backend=backend) as display:
@@ -216,6 +227,7 @@ def App():
216227

217228

218229
@pytest.mark.anyio
230+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
219231
async def test_nested_npm_components():
220232
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
221233
async with DisplayFixture(backend=backend) as display:
@@ -256,6 +268,7 @@ def App():
256268

257269

258270
@pytest.mark.anyio
271+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
259272
async def test_interleaved_npm_and_server_components():
260273
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
261274
async with DisplayFixture(backend=backend) as display:
@@ -292,6 +305,7 @@ def App():
292305

293306

294307
@pytest.mark.anyio
308+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
295309
async def test_complex_nested_material_ui():
296310
async with BackendFixture(html_head=html.head(import_reactjs())) as backend:
297311
async with DisplayFixture(backend=backend) as display:

0 commit comments

Comments
 (0)