-
-
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
Add cypress as e2e tests framework #12210
Merged
Merged
Changes from all commits
Commits
Show all changes
119 commits
Select commit
Hold shift + click to select a range
25bfbaa
feat: add cypress initial commit
sendilkumarn 9d89606
Move to single Cypress folder
nassimerrahoui 363666e
Migrate to Typescript
nassimerrahoui 571d4bb
[Account] Login page (with Angular)
nassimerrahoui f4fdaf5
[Account] Login page (with React)
nassimerrahoui 8802815
[Account] Register page (with Angular)
nassimerrahoui 2218f81
[Account] Register page (with React)
nassimerrahoui 948a3f0
[Account] Administration pages (with Angular)
nassimerrahoui 258c6be
[Account] Administration pages (with React)
nassimerrahoui babe237
[Account] Settings page (with Angular)
nassimerrahoui 939582d
[Account] Settings page (with React)
nassimerrahoui 8b346fd
[Password] password page (with Angular)
nassimerrahoui c114569
[Password] password page (with React)
nassimerrahoui fff72ef
[Account] Reset initiate/finish page
nassimerrahoui 26bf849
[Account] Reset initiate/finish page
nassimerrahoui 46c9755
[Account] Reset initiate/finish page
nassimerrahoui cf2a279
upgrade Cypress version to 4.11.0
avdev4j 8a6a03b
[OAuth2] add oauth2 commands
nassimerrahoui b486957
[OAuth2] fix generation conditions
nassimerrahoui de529e3
[OAuth2] fix tests
nassimerrahoui a3f765e
Add new Cypress script
avdev4j f448123
Add npm Cypress run script to package.json
avdev4j 9ecc4a2
[angular] Call Cypress in e2e step instead of Protractor
avdev4j 46c049e
[angular] Add Cypress to sample
avdev4j ec437c2
[angular] Avoid conflicts between Cypress and Jest libraries.
avdev4j c25dec4
Move all Angular samples from protractor to Cypress
avdev4j 8d9080f
Move all React samples from protractor to Cypress
avdev4j 17be484
Move all Webflux samples from protractor to Cypress
avdev4j 2ac135f
Move all Azure pipelines build from protractor to Cypress
avdev4j 9d1c193
Rename cypress shell file name to e2e
avdev4j 579172f
Add cypress folder in eslint ignore
avdev4j 572c33e
Add cypress:run in react package.json
avdev4j 703abac
Use loadConfig instead of old way
avdev4j 4b5d1e4
Add cypress as test framework option in jdl
avdev4j 34cdcb3
add default viewport
nassimerrahoui 7daffb5
[Vue] add cypress for vue
nassimerrahoui 04d9625
Improve e2e and app subGen
avdev4j 4b0543d
Add config for running cypress with vue
avdev4j 973e9ab
Improve template
avdev4j 1f5515b
Use Cypress in Vue CI
avdev4j 05cd934
Add cypressTests in loadConfig
avdev4j e568458
Fix tsconfig.json.ejs
avdev4j 617a6e3
Improve package.json scripts
avdev4j 70559d0
Rename e2e folder and compose from client subGen insteadOf app
avdev4j 95bbaeb
Fix method order
avdev4j 09246d1
Move .eslintignore.ejs to the new file-common writer
avdev4j 52b46ea
Move CLIENT_DIST_DIR to default priority
avdev4j 0bdf0cb
fix click in Cypress
nassimerrahoui e67fa0a
reword common file
avdev4j e8d641b
fix removing "allowJs"
avdev4j 8426114
Add webdriver dependency if cypressTests
avdev4j 9e93deb
Fix npm tests
avdev4j cf09497
Fix vue Cypress failing
avdev4j 3c2e787
Mark Protractor label as deprecated
avdev4j 84ced36
Fix typo
avdev4j a9ada84
Upgrade Cypress to 4.12.1
avdev4j 1c4ea0a
Fix data-cy values
avdev4j 6db981a
Add Chrome browser option with react and vue
avdev4j bb4b034
rename Cypress test files
avdev4j f4d0b89
Fix indentation
avdev4j 7656294
Remove unused code
avdev4j a54352b
Avoid to add oauth2 specific code in common case
avdev4j c0478d0
rename kc to keycloack
avdev4j 777535f
camel case convention for data-cy
nassimerrahoui 0bf02a7
Run headless mode when using Chrome browser
avdev4j b6599a6
Improve Cypress TS files
avdev4j d224c37
Add consistency for vue component url
nassimerrahoui 6b13d73
Rework register tests
avdev4j 882b659
Rework login page tests
avdev4j f708af6
Remove line not used in login tests
nassimerrahoui a1f577a
Fix settings test
nassimerrahoui e1f292d
fix tests to match with session authenticate endPoint
avdev4j 299fc18
Preserve cookies for session authentication's type
nassimerrahoui ebf0941
Expect 401 when login fail
nassimerrahoui 9cf6b0f
Fix test login
nassimerrahoui bab59de
Move all Webflux samples from protractor to Cypress
avdev4j 3c71809
fix indentation
avdev4j e990b0d
Launch either Cypress or Protractor
avdev4j 6c61a17
keep at least one Angular build with Protractor
avdev4j d44cb68
Make e2e script to be able to launch both Protractor and Cypress
avdev4j 6258557
Add npm test for cypress files
nassimerrahoui 2dcf061
Improve package.json scripts and use generic JHI_E2E variable in CI
avdev4j 83cda0f
Replace filename _spec by .spec name
nassimerrahoui 16d043b
Add clearCookies to clear state correctly
nassimerrahoui dc05abf
Fix sub generator name in index.js
nassimerrahoui a147f0b
Fix indentation
avdev4j a668a6e
Refactor cypress tests.
mshima 99d943c
Lint fix
mshima dd7511a
Client generator should compose with common.
mshima 0ad6e92
Add oauth2 condition to commands file
nassimerrahoui 983c72f
fix indent
nassimerrahoui 001881e
Add tests for entity-client part
nassimerrahoui c56f93a
Fix load details and edit entity instance
nassimerrahoui 21ed3bc
Remove data-cy entityTableColumnId
nassimerrahoui 34503c5
Add readOnly condition to entity tests
nassimerrahoui 2effa24
Add beforeEach step for oauth2 case
nassimerrahoui 47cf459
Fix indentations and comments
nassimerrahoui d1e93e3
Add insertion and deletion entity tests
nassimerrahoui 1f7124c
Fix random text in entity tests
nassimerrahoui bf98467
Fix entity tests
nassimerrahoui 9bad293
Fix react deletion tests
nassimerrahoui 08cedb0
Remove functions for some fields + use faker
nassimerrahoui 2d86fdb
Fix generateFakeData
nassimerrahoui 534966f
Import faker from files.js + fixes
nassimerrahoui 03765a2
Fix imports in files.js
nassimerrahoui 97c4673
Implement entity generateFakeData for a full validated sample.
mshima ec12d58
Improvements to generateFakeData
mshima 6d0df1b
Fix cypress test.
mshima 11b4a75
Change screenshots folder
mshima 8ac5bd3
Store cypress failure screenshots
mshima dbb5c9d
Fix fake user
mshima 48ad291
Generate a validated full entity sample.
mshima 7a97743
Use timestamp from generateFakeData
mshima dc5f5b2
Scroll to top for a better screenshot
mshima e21f552
Use enum sample
mshima 9a5ac5a
Drop faker from generated package.json
mshima bd588e6
Merge pull request #1 from mshima/skip_ci_cypress
nassimerrahoui ce15c71
Merge pull request #55 from nassimerrahoui/add-cypress
avdev4j 776da07
merge modifications from master
avdev4j File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
variables: | ||
JHI_PROFILE: dev,webpack | ||
JHI_RUN_APP: 1 | ||
JHI_PROTRACTOR: 0 | ||
JHI_CYPRESS: 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rename to JHI_E2E |
||
JHI_JDK: 11 | ||
# if JHI_LIB_BRANCH value is release, use the release from Maven | ||
JHI_LIB_REPO: https://github.com/jhipster/jhipster.git | ||
|
@@ -50,12 +50,12 @@ jobs: | |
JHI_APP: ms-ngx-gateway-eureka-jwt | ||
JHI_ENTITY: sqllight | ||
JHI_PROFILE: prod | ||
JHI_PROTRACTOR: 1 | ||
JHI_CYPRESS: 1 | ||
ms-ngx-gateway-eureka-oauth2: | ||
JHI_APP: ms-ngx-gateway-eureka-oauth2 | ||
JHI_ENTITY: sqllight | ||
JHI_PROFILE: prod | ||
JHI_PROTRACTOR: 1 | ||
JHI_CYPRESS: 1 | ||
ms-ngx-gateway-eureka-uaa: | ||
JHI_APP: ms-ngx-gateway-eureka-uaa | ||
JHI_ENTITY: uaa | ||
|
@@ -69,17 +69,17 @@ jobs: | |
JHI_APP: ms-react-gateway-consul-jwt | ||
JHI_ENTITY: sqllight | ||
JHI_PROFILE: prod | ||
JHI_PROTRACTOR: 1 | ||
JHI_CYPRESS: 1 | ||
ms-react-gateway-consul-oauth2: | ||
JHI_APP: ms-react-gateway-consul-oauth2 | ||
JHI_ENTITY: sqllight | ||
JHI_PROFILE: prod | ||
JHI_PROTRACTOR: 1 | ||
JHI_CYPRESS: 1 | ||
jdl-default: | ||
JHI_APP: jdl-default | ||
JHI_ENTITY: jdl | ||
JHI_PROFILE: prod | ||
JHI_PROTRACTOR: 1 | ||
JHI_CYPRESS: 1 | ||
JHI_TESTCONTAINERS: 1 | ||
steps: | ||
#---------------------------------------------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
keep the old name: 24-tests-e2e.sh