generator-jhipster: Protractor: e2e tests with Angular are broken
Overview of the issue
Our current e2e tests with Angular are broken The tests failed during create/save entities
See https://dev.azure.com/hipster-labs/jhipster-daily-builds/_build
cc @vishal423
Motivation for or Use Case
All new PRs will fail, so it needed to be fixed as soon as possible That’s why I’m putting a bounty on this
Reproduce the error
Related issues
Suggest a Fix
JHipster Version(s)
JHipster configuration
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
- Checking this box is mandatory (this is just to show you read everything)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 20 (20 by maintainers)
Made PR #10375 for fix
thanks a lot @kaidohallik ! as you spend a lot of time yesterday on this, I propose you to claim the bounty. Don’t hesitate
Just tested with deleting my node_modules and the package-lock, and it seems ok
I was able to reproduce in prod profile as @clement26695 described. When generating output to error chain from https://github.com/jhipster/generator-jhipster/blob/master/generators/entity-client/templates/angular/src/main/webapp/app/entities/entity-management-update.component.ts.ejs#L317 then in my computer in Chrome error message is:
ReferenceError: mXSSAttempts is not definedI tried to reproduce on my computer. It seems that when you click on save when you create an entity, the user is not redirected to the entity list page, which causes the test to fail (the entity is still created). I’ll try to investigate further