Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Protractor tests: random failures #285

Closed
pascalgrimaud opened this issue Feb 7, 2019 · 16 comments · Fixed by #393
Closed

Protractor tests: random failures #285

pascalgrimaud opened this issue Feb 7, 2019 · 16 comments · Fixed by #393
Labels
bug Something isn't working $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ $200 https://www.jhipster.tech/bug-bounties/

Comments

@pascalgrimaud
Copy link
Member

Our protractor tests still failed randomly.

See:

  Account
    ✓ should fail to login with bad password
    1) should login with admin account
    2) should be able to sign up
    3) should load user management

As it is always at the same tests, I suspect there is something to do here.

@sahbi-ktifa sahbi-ktifa added the bug Something isn't working label Feb 7, 2019
@pascalgrimaud
Copy link
Member Author

pascalgrimaud commented Apr 13, 2019

Some improvements have been done here #341
But there are still some work to do before we can close this

@pascalgrimaud
Copy link
Member Author

Regularly, there is a random failure at should delete previously created fake user

  Account
    ✓ should fail to login with bad password
    ✓ should login with admin account (3703ms)
    ✓ should be able to sign up (1858ms)
    ✓ should load user management (2016ms)
    ✓ should activate the new registered user
    ✓ should not be able to sign up if login already taken
    ✓ should not be able to sign up if email already taken
    ✓ should be able to log in with new registered account
    ✓ should login with admin account (1506ms)
    ✓ should fail to update password when using incorrect current password
    ✓ should login with admin account
    ✓ should be able to update password
    ✓ should be able to log in with new password (1988ms)
    ✓ should login with user_test account
    ✓ should be able to change user_test settings
    ✓ should login with admin account
    ✓ should not be able to change admin settings if email already exists
    ✓ should preview details from previously created fake user
    ✓ should edit details from previously created fake user
    1) should delete previously created fake user

@pascalgrimaud
Copy link
Member Author

Another random failure, at should login with admin account

  Account
    ✓ should fail to login with bad password
    1) should login with admin account
    2) should be able to sign up
    ✓ should load user management (1969ms)
    3) should activate the new registered user
    4) should not be able to sign up if login already taken
    5) should not be able to sign up if email already taken
    6) should be able to log in with new registered account
    7) should login with admin account
    8) should fail to update password when using incorrect current password
    9) should login with admin account
    10) should be able to update password
    11) should be able to log in with new password
    12) should login with user_test account
    13) should be able to change user_test settings
    14) should login with admin account
    15) should not be able to change admin settings if email already exists
    16) should preview details from previously created fake user
    17) should edit details from previously created fake user
    18) should delete previously created fake user

@pascalgrimaud pascalgrimaud added the $100 https://www.jhipster.tech/bug-bounties/ label May 10, 2019
@pascalgrimaud
Copy link
Member Author

I'm adding a bounty for this issue, as it's very annoying.
We can migrate completely to Azure because of this.

@vishal423 vishal423 mentioned this issue Jun 16, 2019
4 tasks
@jdubois jdubois added the $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ label Jun 17, 2019
@pascalgrimaud
Copy link
Member Author

@vishal423 : thanks for your hard work but we still have some issue, so I'm reopening this ticket

@pascalgrimaud pascalgrimaud reopened this Jun 23, 2019
@vishal423
Copy link
Contributor

@pascalgrimaud, I do see an open discussion on migration to cypress #401 and being favored by many folks. If we choose to move ahead with protractor, then, I can spend some time this week to analyze remaining intermittent issues. Let me know how you want to proceed ahead on this.

@pascalgrimaud
Copy link
Member Author

Yes, I'm waiting @sahbi-ktifa for that, we'll discuss about it at JHipster Conf, I think

@pascalgrimaud pascalgrimaud added $200 https://www.jhipster.tech/bug-bounties/ and removed $100 https://www.jhipster.tech/bug-bounties/ labels Jul 2, 2019
@pascalgrimaud
Copy link
Member Author

I'm increasing the bounty as it's really annoying since months, and you work so hard to fix this @vishal423
Thanks so much.

Can you wait few days before claiming the bounty plz ?
So we'll be sure Protractor has been improved.

@vishal423
Copy link
Contributor

vishal423 commented Jul 3, 2019

@pascalgrimaud, IMO, we should keep this issue open for a week or two and list down the intermittent issues observed during that time frame. This will help to identify areas that can be improved.

At moment, I see below issues:

   "after all" hook: ret for "should delete last xxx":
 WebDriverError: element click intercepted: Element <li data-v-39b7de9c="" id="account-menu" class="pointer nav-item b-nav-dropdown dropdown" href="javascript:void(0);" active-class="active">...</li> is not clickable at point (1197, 31). Other element would receive the click: <div id="removeEntity" role="dialog" class="modal fade d-block" aria-hidden="true" style="">...</div>

@sahbi-ktifa sahbi-ktifa pinned this issue Jul 8, 2019
@vishal423
Copy link
Contributor

I think we can close this issue as e2e tests seems stable at moment.

@pascalgrimaud
Copy link
Member Author

Yes, don't forget to claim the bounty @vishal423
Thanks so much

@atomfrede atomfrede unpinned this issue Jul 16, 2019
@vishal423
Copy link
Contributor

@pascalgrimaud
Copy link
Member Author

Just approuved
Thanks so much for fixing this @vishal423 !

@vishal423
Copy link
Contributor

thanks @pascalgrimaud I really enjoyed exploring protractor 😄

@jdubois
Copy link
Member

jdubois commented Jul 19, 2019

Bounty paid, thanks & congrats!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ $200 https://www.jhipster.tech/bug-bounties/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants