[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: |
|
||||||||||||||||||||
| 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 |
| Comment by Githook User [ 24/Jan/22 ] |
|
Author: {'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}Message: chore(e2e): Port to webdriverio |
| Comment by Githook User [ 24/Jan/22 ] |
|
Author: {'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}Message: chore(e2e): Port to webdriverio |
| Comment by Githook User [ 24/Jan/22 ] |
|
Author: {'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}Message: chore(e2e): Port to webdriverio |