Skip to content

Commit aac342b

Browse files
fix(ci): add playwright markers to browser tests
- Add @pytest.mark.playwright and @pytest.mark.e2e markers to browser tests - Ensures these tests are excluded from CI with '-m "not e2e and not playwright"' - Fixes CI failures due to missing playwright browser binaries Resolves CI test failures in hot reload integration tests
1 parent 9e31118 commit aac342b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_hot_reload_integration_improved.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class TestHotReloadIntegrationImproved:
1616
"""Integration tests for hot reload state persistence."""
1717

1818
@pytest.mark.asyncio
19+
@pytest.mark.playwright
20+
@pytest.mark.e2e
1921
async def test_state_persistence_mechanism(self):
2022
"""Test that the state persistence mechanism works correctly."""
2123
async with async_playwright() as p:
@@ -97,6 +99,8 @@ async def test_state_persistence_mechanism(self):
9799
await browser.close()
98100

99101
@pytest.mark.asyncio
102+
@pytest.mark.playwright
103+
@pytest.mark.e2e
100104
async def test_visual_state_restoration(self):
101105
"""Test that clicked tiles visually appear clicked after reload."""
102106
async with async_playwright() as p:
@@ -141,6 +145,8 @@ async def test_visual_state_restoration(self):
141145
await browser.close()
142146

143147
@pytest.mark.asyncio
148+
@pytest.mark.playwright
149+
@pytest.mark.e2e
144150
async def test_multiple_sessions_share_state(self):
145151
"""Test that multiple browser sessions see the same state."""
146152
async with async_playwright() as p:

0 commit comments

Comments
 (0)