Skip to content

Commit 19c4920

Browse files
committed
test 1976534 - passed locally
1 parent b6baa04 commit 19c4920

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/tabs/test_change_position_of_pinned_tabs.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
from 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()
1014
def 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
)

0 commit comments

Comments
 (0)