Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/e2e-playwright/tests/tip/test_ti_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,19 @@ def test_classic_ti_plan( # noqa: PLR0915
create_tip_plan_from_dashboard: Callable[[str], dict[str, Any]],
):
with log_context(logging.INFO, "Checking 'Access TIP' teaser"):
# click to open and expand
page.get_by_test_id("userMenuBtn").click()

if is_product_lite:
page.get_by_test_id("userMenuBtn").click()
page.get_by_test_id("userMenuAccessTIPBtn").click()
assert page.get_by_test_id("tipTeaserWindow").is_visible()
page.get_by_test_id("tipTeaserWindowCloseBtn").click()
else:
assert (
page.get_by_test_id("userMenuBtn").count() == 0
page.get_by_test_id("userMenuAccessTIPBtn").count() == 0
), "full version should NOT have a teaser"
# click to close
page.get_by_test_id("userMenuBtn").click()

# press + button
project_data = create_tip_plan_from_dashboard("newTIPlanButton")
Expand Down
Loading