Skip to content

Commit 6c7d6bb

Browse files
committed
merge changes in
2 parents 256e7c0 + a5b9278 commit 6c7d6bb

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

modules/data/navigation.components.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,18 @@
224224
"groups": []
225225
},
226226

227+
"search-result-url": {
228+
"selectorData": ".urlbarView-title.urlbarView-overflowable[is-url='']",
229+
"strategy": "css",
230+
"groups": []
231+
},
232+
233+
"search-result-action-term": {
234+
"selectorData": ".urlbarView-action",
235+
"strategy": "css",
236+
"groups": []
237+
},
238+
227239
"refresh-button": {
228240
"selectorData": "reload-button",
229241
"strategy": "id",
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
from selenium.webdriver import Firefox
2+
3+
from modules.browser_object import Navigation
4+
from modules.browser_object_panel_ui import PanelUi
5+
6+
YOUTUBE_URL = "https://www.youtube.com/"
7+
FACEBOOK_URL = "https://www.facebook.com/"
8+
AMAZON_URL = "https://www.amazon.com/"
9+
10+
WEBSITES = [YOUTUBE_URL, FACEBOOK_URL, AMAZON_URL]
11+
12+
13+
def test_websites_visited_in_private_browser_not_displayed_in_awesome_bar(
14+
driver: Firefox,
15+
):
16+
"""
17+
C101665 - Verify the visited websites from the Private Browsing session are not displayed inside the normal session
18+
Awesome Bar
19+
"""
20+
21+
initial_window_handle = driver.current_window_handle
22+
nav = Navigation(driver)
23+
panel_ui = PanelUi(driver)
24+
25+
panel_ui.open_private_window()
26+
panel_ui.switch_to_new_window()
27+
28+
for url in WEBSITES:
29+
driver.get(url)
30+
31+
driver.switch_to.window(initial_window_handle)
32+
33+
for url in WEBSITES:
34+
nav.type_in_awesome_bar(url)
35+
url_element = nav.get_element("search-result-url")
36+
action_element = nav.get_element("search-result-action-term")
37+
38+
# Check that the URLS are displayed in search results with the term "Visit"
39+
assert (url_element.text, action_element.text) == (url, "Visit")
40+
41+
nav.clear_awesome_bar()

0 commit comments

Comments
 (0)