Skip to content

Commit b6e2b2a

Browse files
committed
fix tests broken by panelui refactor
1 parent c53b2fd commit b6e2b2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/preferences/test_firefox_home_on_launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_firefox_home_on_launch(driver: Firefox, sys_platform: str):
3838
# make sure that the option was selected correctly
3939
assert drop_down.get_attribute("label") == "Firefox Home (Default)"
4040
panel_ui.open_panel_menu()
41-
panel_ui.select_panel_setting("panel-ui-new-window")
41+
panel_ui.click_on("panel-ui-new-window")
4242
# wait for the number of tabs and switch
4343
tabs.wait_for_num_tabs(2)
4444
driver.switch_to.window(driver.window_handles[-1])

tests/security_and_privacy/test_private_window_from_panelui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ def test_private_window_from_panelui(driver: Firefox):
1414
"""C101660 - Private Browsing can be successfully opened via the Hamburger menu"""
1515
panelui = PanelUi(driver)
1616
panelui.open_panel_menu()
17-
panelui.select_panel_setting("new-private-window-option")
17+
panelui.click_on("new-private-window-option")
1818
panelui.switch_to_new_window()
1919
AboutPrivatebrowsing(driver).wait_for_page_to_load()

0 commit comments

Comments
 (0)