-
Notifications
You must be signed in to change notification settings - Fork 114
Replace Protractor with other end-to-end testing utilities #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is getting a tad more pressing. Recent builds are now failing with:
Indirectly that's caused by Protractor, Selenium, and the version of webdriver-manager they use. We can see if this is still patchable without replacing Protractor, but I expect more of these cases in the future. |
Seems that Chrome started publishing their versions xml at a different location starting with v115, and removed the old option in v116 entirely, which is why In that issue a workaround is linked, which works for me locally on Windows. But it feels super fragile, temporary, and hacky to make this a more permanent solution, and I hesitate putting in work to have that hack inside this repo. I also tried how easy it would be to switch to Playwright or Cypress. The latter got somewhere but still not very far in limited time. I think Cypress is the way to go but either I or a community member would need to put in some time to make that work. For now I'll let the e2e tests fail for a while longer, while I think about the approach to take. In the mean time if someone feels like porting this codebase's e2e tests to Cypress I'd welcome a PR. |
After a frustrating few hours this is NightwatchJS running a simple test. Things missing include a way to run the tests with one command (somehow `npm run e2e` won't trigger running the Angular server). In addition, the Nightwatch documentation feels lacking or visibly broken (white text on light backgrounds?!), so please consider this commit a WIP at best. I will preserve it for the moment though, though maybe I'll later go back to either Cypress or Playwright after all. See #142
Tried to introduce Nightwatch as a replacement, but it has been a frustrating experience. Publishing the branch for reference, but I think I'll give Playwright another go first, some time later. |
Protractor used to be the default E2E (end to end) testing solution for Angular, but the Angular team has moved on. This is the announcement from the Protractor pages:
Which means this sample will have to change over to something else as well.
The E2E tests are actually a little important to me, because they give me enough confidence to easily keep doing security and Angular version upgrades. On the other hand, I don't want a overblown solution for a small sample like this.
If anyone from the community would decide to pick this up before I do (which is quite welcome of course!), I recommend posting a suggested solution here first before going at it, just to make sure the direction is one I want for this sample.
The text was updated successfully, but these errors were encountered: