Skip to content

Commit

Permalink
✅ fixes check on full version (ITISFoundation#6445)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov authored and mrnicegyu11 committed Oct 2, 2024
1 parent 699e05b commit aaee3b2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/e2e-playwright/tests/tip/test_ti_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,15 @@ 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"):
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()
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
), "full version should NOT have a teaser"

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

0 comments on commit aaee3b2

Please sign in to comment.