-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Flaky Protractor tests with OAuth2 #13723
Comments
I don't know, I'm not a Protractor expert like you :) |
I'll look into them now... |
I tried some change too, but didn't fix it yet. My workflow:
|
I typically re-create the failing app locally, then run:
If it passes locally, it's a CI issue and we need to add pauses, wait fors, etc... |
Locally, it passes, I couldn't reproduce. |
The first time I tried it, it didn't work.
I tried again, and it did pass. Can we change the e2e script to try I saw this recently with Protractor when running e2e tests on generated entities. It'd always pause on the edit screens. If I canceled and tried again, it'd pass on that edit screen, then pause/fail on the next one. If you canceled and restarted once for each generated entity, all tests eventually pass. |
Are these running with capabilities: {
browserName: 'firefox',
}, NOTE: I did have to run |
Here's an attempted fix: #13754. |
That's one of the reason we decided to use Cypress. Another solution would be to completely migrate to Cypress in Daily builds, and definitively abandon Protractor there |
I'd be OK with that.
…On Thu, Jan 28, 2021 at 16:46 Pascal Grimaud ***@***.***> wrote:
That's one of the reason we decided to use Cypress.
Protractor is so random
Another solution would be to completely migrate to Cypress in Daily
builds, and definitively abandon Protractor there
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#13723 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAELZANWVCXINMGOO7DNALS4HZM3ANCNFSM4WS6WR4A>
.
|
If Cypress tests prove to be flaky, we can add another implementation in Playwright. 😜 |
@mraible : for your information, I revert your PR here:
Then, I launch 5 NoDatabase builds consecutively. So for me, there is something to do with your PR. |
I'm OK with a revert. None of these tests hit Okta and I tend to recommend Keycloak for CI anyway. |
Thanks, I'll take care of it tonight, after my day work |
Woah! I didn't realize you want to revert all of my changes to support Okta. It works locally, most of the time (or at least, more than before). I'm OK with it for a release, but I'd love to collaborate with you on a blog post to explain the why. :) |
BTW, I'm cool if your reason is "because Okta sucks!" We can do better. We should be better than Keycloak, IMHO. |
@mraible : sorry, I didn't explain well. Let me try again :-D My branch with this commit pascalgrimaud@0a5e996 is only here to confirm that the introduced code makes Protractor to become flaky -> this branch is only for test I don't want to revert all the code. |
Overview of the issue
Since this PR #13530, the Protractor tests failed most of the time.
See:
cc @mraible
Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix
JHipster Version(s)
Current master
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
The text was updated successfully, but these errors were encountered: