Skip to content

Commit 82d7713

Browse files
committed
Try w3schools sample test video
1 parent 3551c0a commit 82d7713

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

tests/tabs/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ def add_to_prefs_list():
2121

2222
@pytest.fixture()
2323
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"

tests/tabs/test_mute_tabs.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import pytest
22
from selenium.webdriver import Firefox
3-
from selenium.webdriver.common.by import By
43
from selenium.webdriver.support import expected_conditions as EC
54

65
from modules.browser_object import TabBar
@@ -18,27 +17,15 @@ def test_case():
1817

1918
@pytest.fixture()
2019
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")]
3021

3122

3223
@pytest.mark.audio
33-
@pytest.mark.headed
3424
def 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)

0 commit comments

Comments
 (0)