Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5334

Migrate E2E tests from spectron to webdriverio

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 5
    • Not Needed
    • Iteration Q, Iteration Reno, Iteration Seoul, Iteration Tokyo

      We did an investigation and confirmed that playwright will allow our e2e tests to run on windows again. Spectron is also going to stop working in newer versions of electron and be discontinued soon. Playwright is where the momentum is and, while this is admittedly subjective, is much nicer to code against anyway.

       

      UNFORTUNATELY even though the initial investigation ran fine on Windows, we couldn't get compass running with playwright on windows (not locally and not on evergreen but bizarrely it didn't have the same problem on github actions) and after a week of trying to debug it gave up. Spectron is built on webdriverio, so it was relatively straightforward to port over to webdriverio. Now that spectron is officially deprecated webdriverio is listed as one of the official options anyway: https://www.electronjs.org/docs/latest/tutorial/automated-testing#with-webdriverio

            Assignee:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: