Skip to content

Commit aaee3b2

Browse files
pcrespovmrnicegyu11
authored andcommitted
✅ fixes check on full version (ITISFoundation#6445)
1 parent 699e05b commit aaee3b2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,15 @@ 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-
page.get_by_test_id("userMenuBtn").click()
98-
page.get_by_test_id("userMenuAccessTIPBtn").click()
99-
assert page.get_by_test_id("tipTeaserWindow").is_visible()
100-
page.get_by_test_id("tipTeaserWindowCloseBtn").click()
97+
if is_product_lite:
98+
page.get_by_test_id("userMenuBtn").click()
99+
page.get_by_test_id("userMenuAccessTIPBtn").click()
100+
assert page.get_by_test_id("tipTeaserWindow").is_visible()
101+
page.get_by_test_id("tipTeaserWindowCloseBtn").click()
102+
else:
103+
assert (
104+
page.get_by_test_id("userMenuBtn").count() == 0
105+
), "full version should NOT have a teaser"
101106

102107
# press + button
103108
project_data = create_tip_plan_from_dashboard("newTIPlanButton")

0 commit comments

Comments
 (0)