[MGNLTEST-439] JUnit5-ext. Selenium goTo authorInstance can be skipped Created: 21/Sep/23  Updated: 18/Oct/23  Resolved: 16/Oct/23

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

Type: Task Priority: Neutral
Reporter: Christoph Meier Assignee: Christoph Meier
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 5.5h
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Work Started:

 Description   

When writing JUnit5 UI-tests with core-TF using the info.magnolia.test.selenium.Selenium - the extensions navigates automatically to ManoliaAuthor - assuming the author is on localhostĀ 

navigateToUrl(Instance.DIRECT_AUTHOR, ".magnolia/admincentral");

See https://git.magnolia-cms.com/projects/PLATFORM/repos/test-framework/browse/magnolia-test-framework/src/main/java/info/magnolia/test/selenium/Selenium.java#208

That's not always what we want.
If the host is not local - we can set the env.variables host.name and public.port - then at least we do not end up with an error, but the URL is still wrong ...

Thus - to work around this - let's allow to skip that initial
navigateToUrl(Instance.DIRECT_AUTHOR, ".magnolia/admincentral");
and let the test decide where to navigate first.


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