File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed
Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ def add_to_prefs_list():
2121
2222@pytest .fixture ()
2323def video_url ():
24- return "https://www.youtube.com/watch?v=mAia0v3ojzw"
24+ return "https://www.w3schools.com/html/mov_bbb.mp4"
25+ # return "https://www.youtube.com/watch?v=mAia0v3ojzw"
Original file line number Diff line number Diff line change 11import pytest
22from selenium .webdriver import Firefox
3- from selenium .webdriver .common .by import By
43from selenium .webdriver .support import expected_conditions as EC
54
65from modules .browser_object import TabBar
@@ -18,27 +17,15 @@ def test_case():
1817
1918@pytest .fixture ()
2019def add_to_prefs_list ():
21- return [
22- ("network.cookie.cookieBehavior" , "2" ),
23- ("dom.webdriver.enabled" , False ),
24- ("useAutomationExtension" , False ),
25- (
26- "general.useragent.override" ,
27- "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:142.0) Gecko/20100101 Firefox/142.0" ,
28- ),
29- ]
20+ return [("network.cookie.cookieBehavior" , "2" )]
3021
3122
3223@pytest .mark .audio
33- @pytest .mark .headed
3424def test_mute_unmute_tab (screenshot , driver : Firefox , video_url : str ):
3525 """C134719, test that tabs can be muted and unmuted"""
3626 tabs = TabBar (driver )
3727 driver .get (video_url )
38- tabs .expect (EC .title_contains ("Top 10" ))
39-
40- play_button = driver .find_element (By .CSS_SELECTOR , PLAY_BUTTON_SELECTOR )
41- play_button .click ()
28+ tabs .expect (EC .title_contains ("mov_bbb.mp4" ))
4229
4330 with driver .context (driver .CONTEXT_CHROME ):
4431 tabs .expect_tab_sound_status (1 , tabs .MEDIA_STATUS .PLAYING )
You can’t perform that action at this time.
0 commit comments