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

Allow running UI tests on Firefox

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Low
    • None
    • None

    Description

      Currently our UI tests run on Chrome only, even though Selenium would easily support FF.
      Allow switching between the two browsers via configuration, in hopes FF would yield more stability and speed of execution.

      DEV NOTES

      Stopped progress as I stumbled upon an issue with CodeField#setValue.
      Under the hood, the field uses a textarea as input and FF driver doesn't like it. I tried setting the capability moz:webdriverClick to false as suggested in the StackOverflow post below but then a whole slew of tests started to fail.
      https://stackoverflow.com/questions/49864965/org-openqa-selenium-elementnotinteractableexception-element-is-not-reachable-by/49872160#49872160

      Furthermore, given we apparently reached a certain ITs stability after DEV-1938, this ticket has become less urgent.

       

      To test locally (e.g. IntelliJ)

      • set SELENIUM_BROWSER=firefox in .env to build the selenium standalone image
      • run test by passing -Dselenium.browser=firefox argument in the configuration

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                fgrilli Federico Grilli
                Foundation
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Work Started:

                  Checklists

                    Task DoR