Skip to content

Commit

Permalink
e2e: fixes wrong sequence in classic tip (ITISFoundation#6450)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov authored Sep 25, 2024
1 parent ae23ce3 commit e08b486
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit e08b486

Please sign in to comment.