Uploaded image for project: 'Magnolia Test Framework'
  1. Magnolia Test Framework
  2. MGNLTEST-439

JUnit5-ext. Selenium goTo authorInstance can be skipped

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Neutral
    • 1.4.6
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              cmeier Christoph Meier
              cmeier Christoph Meier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Work Started:

                Checklists

                  Task DoR

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 5.5h
                    5.5h