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():
21
21
22
22
@pytest .fixture ()
23
23
def 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 1
1
import pytest
2
2
from selenium .webdriver import Firefox
3
- from selenium .webdriver .common .by import By
4
3
from selenium .webdriver .support import expected_conditions as EC
5
4
6
5
from modules .browser_object import TabBar
@@ -18,27 +17,15 @@ def test_case():
18
17
19
18
@pytest .fixture ()
20
19
def 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" )]
30
21
31
22
32
23
@pytest .mark .audio
33
- @pytest .mark .headed
34
24
def test_mute_unmute_tab (screenshot , driver : Firefox , video_url : str ):
35
25
"""C134719, test that tabs can be muted and unmuted"""
36
26
tabs = TabBar (driver )
37
27
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" ))
42
29
43
30
with driver .context (driver .CONTEXT_CHROME ):
44
31
tabs .expect_tab_sound_status (1 , tabs .MEDIA_STATUS .PLAYING )
You can’t perform that action at this time.
0 commit comments