[MGNLTEST-387] Improve PO SubscriptionUiNavigation#goToUserProfilePage Created: 03/Jan/23  Updated: 07/Aug/23  Resolved: 07/Aug/23

Status: Closed
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Christoph Meier Assignee: Harshini Pola
Resolution: Resolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 3h
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[X]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: cucumber-and-selenide-support-by-test-fwk
Work Started:

 Description   

The PO SubscriptionUiNavigation is used for tests in subscription-service-admin-ui/e2e.

Currently the class exists in both

  • subscription-service-ui/e2e
  • saas-test-framework-parent/saas-test-framework

The latter is used for some "smoke-tests" within saas-TF.
At some point we should end up with only one class - deleting ot in one project.

About the task to improve SubscriptionUiNavigation#goToUserProfilePage:

The method currently uses:

new Navigator().to(configuration.getSubscriptionUIBaseUrl()+"/profile");

When doing this manually in a browser, it looks like the whole angular app is reloaded again. This is way it takes so long until the profile page PO is ready.

The solution of this ticket should be to click on the appropriate link of the UI.
Again, when doing this manually, we can see that the profile page is ready immediately.

This should solve the problem of so far required Selenide.sleep in the PO UserProfilePage in assertExists.

Tasks:

  • Resolve it in saas-TF first
  • Apply the fix to subscription-service-ui/e2e as well


 Comments   
Comment by Harshini Pola [ 07/Aug/23 ]

Implemented, verified and merged

Generated at Mon Feb 12 07:48:27 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.