File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 55
66from modules .browser_object import ContextMenu , TabBar
77
8+ # --- Expected Title Constants ---
9+ EXPECTED_MOZILLA_TITLE = "Mozilla"
10+ EXPECTED_ROBOT_TITLE = "Gort!"
11+
812
913@pytest .fixture ()
1014def test_case ():
@@ -66,9 +70,9 @@ def test_change_position_of_pinned_tabs(driver: Firefox):
6670 new_pinned_tab_two_title = driver .title
6771 logging .info ("Tab title: %s" , new_pinned_tab_two_title )
6872
69- assert "Mozilla" in new_pinned_tab_one_title , (
73+ assert EXPECTED_MOZILLA_TITLE in new_pinned_tab_one_title , (
7074 "Mozilla should now be the first pinned tab"
7175 )
72- assert "Gort!" in new_pinned_tab_two_title , (
76+ assert EXPECTED_ROBOT_TITLE in new_pinned_tab_two_title , (
7377 "Robot should now be the second pinned tab"
7478 )
You can’t perform that action at this time.
0 commit comments