Skip to content

Commit 60bdf8c

Browse files
Hani YacoubHani Yacoub
authored andcommitted
Added another assertion for non-sponsored
1 parent 1bc74c7 commit 60bdf8c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

modules/data/navigation.components.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,11 @@
152152
"selectorData": "urlbarView-row-body-description",
153153
"strategy": "class",
154154
"groups": []
155+
},
156+
157+
"firefox-suggest": {
158+
"selectorData": "div[label='Firefox Suggest'] > span.urlbarView-row-inner, div[label='Firefox Suggest'] + div.urlbarView-row",
159+
"strategy": "css",
160+
"groups": []
155161
}
156162
}

tests/address_bar_and_search/test_preferences_all_toggles_enabled.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ def test_preferences_all_toggles_enabled(driver: Firefox):
4040
# Check if a non-sponsored suggestion is displayed
4141
u.search("wiki", with_enter=False)
4242
with (driver.context(driver.CONTEXT_CHROME)):
43-
assert not nav.get_elements("sponsored-suggestion")
43+
assert not nav.get_elements("sponsored-suggestion")
44+
assert nav.get_element("firefox-suggest").is_displayed()

0 commit comments

Comments
 (0)