[COMPASS-5334] Migrate E2E tests from spectron to webdriverio Created: 01/Dec/21  Updated: 26/Jan/22  Resolved: 24/Jan/22

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Task Priority: Major - P3
Reporter: Le Roux Bodenstein Assignee: Le Roux Bodenstein
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to COMPASS-5121 Add E2E tests for the rest of the smo... Closed
related to COMPASS-5248 Move the current E2E test package to ... Closed
is related to COMPASS-5159 Fix Windows Electron Spectron fs failure Closed
is related to COMPASS-5314 Will Playwright allow us to run E2E t... Closed
Epic Link: COMPASS-5191
Story Points: 5
Documentation Changes: Not Needed
Sprint: Iteration Q, Iteration Reno, Iteration Seoul, Iteration Tokyo

 Description   

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



 Comments   
Comment by Githook User [ 26/Jan/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore(e2e): Port to webdriverio COMPASS-5334 (#2694)
Branch: 1.31-releases
https://github.com/mongodb-js/compass/commit/3b7091d60c3c9495fee82bafce6bd0f7639530ce

Comment by Githook User [ 24/Jan/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore(e2e): Port to webdriverio COMPASS-5334 (#2694)
Branch: COMPASS-5435-add-username-password-auth
https://github.com/mongodb-js/compass/commit/3b7091d60c3c9495fee82bafce6bd0f7639530ce

Comment by Githook User [ 24/Jan/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore(e2e): Port to webdriverio COMPASS-5334 (#2694)
Branch: COMPASS-5409-create-store
https://github.com/mongodb-js/compass/commit/3b7091d60c3c9495fee82bafce6bd0f7639530ce

Comment by Githook User [ 24/Jan/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore(e2e): Port to webdriverio COMPASS-5334 (#2694)
Branch: main
https://github.com/mongodb-js/compass/commit/3b7091d60c3c9495fee82bafce6bd0f7639530ce

Generated at Wed Feb 07 22:39:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.