[MGNLTEST-225] Allow running UI tests on Firefox Created: 25/Apr/22  Updated: 09/Nov/23

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

Type: Task Priority: Low
Reporter: Federico Grilli Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: foundation_team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2022-04-28 at 18.22.11.png    
Issue Links:
duplicate
duplicates MGNLTEST-212 Play with different browsers ... and... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: Stabilise integration tests
Team: Foundation
Work Started:

 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

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