Skip to content

Commit 6b7f9f8

Browse files
pcrespovmrnicegyu11
authored andcommitted
e2e: fixes wrong sequence in classic tip (ITISFoundation#6450)
1 parent 02a7908 commit 6b7f9f8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/e2e-playwright/tests/tip/test_ti_plan.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,19 @@ def test_classic_ti_plan( # noqa: PLR0915
9494
create_tip_plan_from_dashboard: Callable[[str], dict[str, Any]],
9595
):
9696
with log_context(logging.INFO, "Checking 'Access TIP' teaser"):
97+
# click to open and expand
98+
page.get_by_test_id("userMenuBtn").click()
99+
97100
if is_product_lite:
98-
page.get_by_test_id("userMenuBtn").click()
99101
page.get_by_test_id("userMenuAccessTIPBtn").click()
100102
assert page.get_by_test_id("tipTeaserWindow").is_visible()
101103
page.get_by_test_id("tipTeaserWindowCloseBtn").click()
102104
else:
103105
assert (
104-
page.get_by_test_id("userMenuBtn").count() == 0
106+
page.get_by_test_id("userMenuAccessTIPBtn").count() == 0
105107
), "full version should NOT have a teaser"
108+
# click to close
109+
page.get_by_test_id("userMenuBtn").click()
106110

107111
# press + button
108112
project_data = create_tip_plan_from_dashboard("newTIPlanButton")

0 commit comments

Comments
 (0)