-
Notifications
You must be signed in to change notification settings - Fork 63
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
ci(e2e): e2e with playwright #1171
Conversation
8efa659
to
4ad6263
Compare
4ad6263
to
c14661a
Compare
3808b66
to
717755a
Compare
# Conflicts: # packages/js/package-lock.json
Tests are passing, but we now have "2 flaky tests" tagged from playwright. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is exciting! I'm not done testing it out, but I wanted to post what I had so far.
I did run into a problem in testing, which is that if you ctrl+C
out of running the tests, it leaves bsLocal
running, for me it was on port 45690. Then if you try running them again, Browserstack can't start because there's already something running on the port.
Fixed! |
# Conflicts: # packages/js/package-lock.json
@BethanyBerkowitz Thanks for the detailed review. I went through all your comments. Feel free to go for a new review round :) |
Also, I added this #1188 to look at the flaky tests after we merge this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it! Especially the pros/cons writeup—thanks for that. I'm sold on playwright. :)
tbh, I'd be OK with testing latest browsers if we ever had to compromise, but it's cool that we can also do the minimum versions. 👌
💯 |
I'll wait for @BethanyBerkowitz's review before merging, since there were more than a few changes since the first review 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay, thanks so much @subzero10!
I still get test failures when running locally, but since you've got a separate issue open for flakiness I think this one is ready to go.
I'm curious, have you tried running the tests only with playwright (i.e. disable the browserstack browsers and unset any browserstack env variables)? |
Mmm yeah I still get a bunch of failures -- 36 on my most recent run 🤔
|
That's very strange. Which nodejs version are you using? |
Looks like I was on 16.13.0, but I also get a bunch of failures on 20.3.1. |
@subzero10 I tried running the playwright tests just in Firefox using Happy to look further into this, but I figured you have much more knowledge than me in this area and may have a sense of what's wrong? |
FYI, I'm running on node 16 as well. |
Thanks for the insight! Yes, I can look into it! I remember adding a safeguard about this but it may not be working all the time. |
OK, I know why this could happen, but I don't understand why.
However, I don't see why the |
Well, I'm not sure what you did in #1190 that could fix my problem, but the Firefox tests no longer error for me! |
Status
Ready
Description
I decided to give playwright a go and see how it performs versus our current integration tests.
Karma vs Playwright
Karma/Jasmine
Pros:
Cons:
Playwright
Pros:
Cons:
Todos
server.js
)