Skip to content

Commit f0c93b3

Browse files
committed
create selector for customize_firefox.components.json
1 parent d55cd47 commit f0c93b3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

modules/data/customize_firefox.components.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,11 @@
2222
"selectorData": "wrapper-search-container",
2323
"strategy": "id",
2424
"groups": []
25+
},
26+
27+
"customize-page": {
28+
"selectorData": "customization-container",
29+
"strategy": "id",
30+
"groups": []
2531
}
2632
}

tests/tabs/test_display_customize_button.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import pytest
22
from selenium.webdriver import Firefox
3-
from selenium.webdriver.common.by import By
43

54
from modules.browser_object_panel_ui import PanelUi
65
from modules.browser_object_tabbar import TabBar
76
from modules.page_object import ExamplePage
7+
from modules.page_object_customize_firefox import CustomizeFirefox
88

99

1010
@pytest.fixture()
@@ -20,6 +20,7 @@ def test_customize_button_displayed_in_tab_bar(driver: Firefox):
2020

2121
panel_ui = PanelUi(driver)
2222
tabs = TabBar(driver)
23+
custom_page = CustomizeFirefox(driver)
2324

2425
# Open an initial example page
2526
example = ExamplePage(driver)
@@ -43,5 +44,5 @@ def test_customize_button_displayed_in_tab_bar(driver: Firefox):
4344
# Verify that the customize firefox tab is opened and correct
4445
example.switch_to_new_tab()
4546
with driver.context(driver.CONTEXT_CHROME):
46-
element = driver.find_element(By.ID, "customization-container")
47+
element = custom_page.get_element("customize-page")
4748
assert element, "element not found"

0 commit comments

Comments
 (0)