Skip to content

Commit bf7c328

Browse files
committed
Update example.com hyperlink
1 parent 7a9b3b0 commit bf7c328

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

SELECTOR_INFO.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ Location: Any non-linked content space inside example.com page
18331833
Path to .json: modules/data/exemple_page.components.json
18341834
```
18351835
```
1836-
Selector Name: more-information
1836+
Selector Name: learn-more
18371837
Selector Data: "Learn more"
18381838
Description: "Learn more" link
18391839
Location: The hyperlink positioned in the middle of example.com page
@@ -3238,7 +3238,7 @@ Path to .json: modules/data/panel_ui.components.json
32383238
```
32393239
```
32403240
Selector name: panel-ui-history-recently-closed-reopen-tabs
3241-
Selector Data: toolbarbutton[class='subviewbutton subviewbutton-nav'][label='Recently closed tabs']
3241+
Selector Data: toolbarbutton[class='restoreallitem subviewbutton panel-subview-footer-button']
32423242
Description: Recently closed reopen tabs
32433243
Location: On the hamburger menu > History
32443244
Path to .json: modules/data/panel_ui.components.json

modules/data/example_page.components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
]
1515
},
1616

17-
"more-information": {
17+
"learn-more": {
1818
"selectorData": "Learn more",
1919
"strategy": "link_text",
2020
"groups": []

tests/menus/test_hyperlink_context_menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_open_link_in_new_window(driver: Firefox):
2020
example.open()
2121

2222
# Right-click the hyperlink
23-
example.context_click("more-information")
23+
example.context_click("learn-more")
2424

2525
# Click on the open in new window option
2626
hyperlink_context.click_and_hide_menu("context-menu-open-link-in-new-window")

tests/menus/test_tab_context_menu_close.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,27 +93,29 @@ def test_copy_link(driver: Firefox):
9393
nav = Navigation(driver)
9494
hyperlink_context = ContextMenu(driver)
9595
tabs = TabBar(driver)
96-
example = ExamplePage(driver).open()
96+
example = ExamplePage(driver)
9797

98-
# right click the hyperlink
98+
example.open()
99+
100+
# Right-click the hyperlink
99101
sleep(1)
100102
example.context_click("learn-more")
101103

102-
# click on the open in new window option
104+
# Click on the open in new window option
103105
sleep(1)
104106
hyperlink_context.click_and_hide_menu("context-menu-copy-link")
105107

106-
# open a new tab
108+
# Open a new tab
107109
tabs.new_tab_by_button()
108110
tabs.wait_for_num_tabs(2)
109111
sleep(1)
110112
driver.switch_to.window(driver.window_handles[1])
111113

112-
# # context click and paste
114+
# Context click and paste
113115
search_bar = nav.get_awesome_bar()
114116
nav.context_click(search_bar)
115117

116-
# paste and go
118+
# Paste and go
117119
nav.click_and_hide_menu("context-menu-paste-and-go")
118120

119121
example.title_contains(example.MORE_INFO_TITLE)

0 commit comments

Comments
 (0)