mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 14:49:32 +00:00
Fix video test flakiness from HLS cookie leakage
Clear hlsPlayback cookie before video_m3u8 tests to ensure consistent state regardless of test execution order. The Space tests set this cookie which can persist and break video tests when they run after.
This commit is contained in:
parent
327e0161f1
commit
9d16db8903
1 changed files with 2 additions and 0 deletions
|
|
@ -90,6 +90,8 @@ class MediaTest(BaseTestCase):
|
|||
@parameterized.expand(video_m3u8)
|
||||
def test_video_m3u8(self, tweet, thumb):
|
||||
self.open_nitter(tweet)
|
||||
self.driver.delete_cookie("hlsPlayback")
|
||||
self.refresh()
|
||||
self.assert_element_visible('.main-tweet ' + Media.container)
|
||||
self.assert_element_visible('.main-tweet ' + Media.video)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue