Skip to content

Commit ee4509e

Browse files
Merge pull request #525 from mozilla/vs/fix-deved-new-tab
vs/fix devedition newtab
2 parents dc33688 + 60b421b commit ee4509e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/tabs/test_open_new_tab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ def test_open_new_tab_plus(driver: Firefox):
1818
driver.get("about:robots")
1919
browser.set_chrome_context()
2020
browser.new_tab_by_button()
21-
browser.expect(EC.title_contains("Mozilla Firefox"))
22-
assert driver.title == "Mozilla Firefox"
21+
browser.expect(EC.title_contains("Firefox"))
22+
assert "Firefox" in driver.title, f"Expected title to contain 'Firefox', but got '{driver.title}'"

tests/tabs/test_open_new_tab_keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ def test_open_new_tab_via_keyboard(driver: Firefox, sys_platform: str):
1818
driver.get("about:robots")
1919
browser.set_chrome_context()
2020
browser.new_tab_by_keys(sys_platform)
21-
browser.expect(EC.title_contains("Mozilla Firefox"))
22-
assert driver.title == "Mozilla Firefox"
21+
browser.expect(EC.title_contains("Firefox"))
22+
assert "Firefox" in driver.title, f"Expected title to contain 'Firefox', but got '{driver.title}'"

0 commit comments

Comments
 (0)