-
Notifications
You must be signed in to change notification settings - Fork 37
feat: Cypress tests for open design #1172
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
Open
simon332114
wants to merge
33
commits into
canada-ca:master
Choose a base branch
from
VilledeMontreal:open-design-tests
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
583a19f
Doing tests on open-design
simon332114 c7ee3b4
Still working on it
simon332114 4b383fa
Fix input test
simon332114 f460959
Merge branch 'master' into open-design-tests
simon332114 7db85ce
Lightboxes test never
simon332114 ee10c04
Continuing tests
simon332114 778debb
Fix designSelect for french page + more tests
simon332114 7ed391a
Design select tested
simon332114 0cc203b
Started reset test and finished fill test
simon332114 f92147c
Reset test done
simon332114 7c47db5
Test for designSelect change
simon332114 297a2d5
Cleanup
simon332114 f6a7464
Working on design table test
simon332114 3c15a4f
Modal lightbox test works
simon332114 c1372fb
Moved tests to more right spec file
simon332114 cc62e64
Added licences.spec.js and more design tests
simon332114 1fdd3de
more design form tests and clarified context fields
simon332114 27fa979
Reorganised design form tests and started submission tests
simon332114 83a0e68
Fixed submit test
simon332114 cc7cd05
Fixed test
simon332114 64da726
Submit test finally works
simon332114 7e9b843
The submit test is still sending things when it shouldn't
simon332114 270fd97
Disabling it for now
simon332114 fded708
Fixed submit test
simon332114 dc463bb
Merge branch 'master' into open-design-tests
simon332114 cb21699
Added URL constant
simon332114 a366e23
Changed form test contexts
simon332114 7bb85bf
Fixed submission test by calling the submitInit method directly
simon332114 0f00d78
Removed form submission entirely since the test concerns validation
simon332114 42a1128
Merge https://github.com/canada-ca/ore-ero into open-design-tests
simon332114 d7f2667
Before lint is runs on it and crashes it
simon332114 6f9a51f
Merge branch 'master' into open-design-tests
simon332114 f02d0f3
Added to the CI build
simon332114 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| context('Licences', () => { | ||
| it ('addMorelicences button should add an element to the list and show the removeMorelicences button', () => { | ||
| cy.visit('http://localhost:4000/ore-ero/en/open-design-form.html'); | ||
| cy.get('#addMorelicences').find('.btn-tabs-more').click(); | ||
| cy.get('#addMorelicences').find('ul > li').should('have.length', 2); | ||
| cy.get('#addMorelicences').find('.btn-tabs-more-remove').should('be.visible'); | ||
| }); | ||
| it ('removeMorelicences button should remove an item from the list and disappear', () => { | ||
| cy.get('#addMorelicences').find('.btn-tabs-more-remove').click(); | ||
| cy.get('#addMorelicences').find('ul > li').should('have.length', 1); | ||
| cy.get('#addMorelicences').find('.btn-tabs-more-remove').should('be.hidden'); | ||
| }); | ||
|
|
||
| it ('There should be available licence options', () => { | ||
| cy.visit('http://localhost:4000/ore-ero/en/open-design-form.html'); | ||
| cy.get('#licencesspdxID').children().should('have.length.greaterThan', 1); | ||
| }); | ||
| }); |
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.
Uh oh!
There was an error while loading. Please reload this page.