-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
25 additions
and
16 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,16 +46,16 @@ describe('Travel-Study Trip Registration Form Page', () => { | |
// Confirm form exists | ||
cy.get('[id="su-embed"]').should('exist'); | ||
cy.get('form').should('exist'); | ||
|
||
// Confirm that the user's name is prefilled | ||
cy.get('[data-fieldid="DigitalName"]').should('contain.value', 'Teri Dactyl'); | ||
|
||
// Confirm email is prefilled | ||
cy.get('[data-fieldid="ContactEmail"]').should('contain.value', '[email protected]'); | ||
|
||
// Confirm phone number is prefilled | ||
cy.get('[data-fieldid="PhoneNumber"]').should('contain.value', '4081111111'); | ||
|
||
// Fill required questions | ||
cy.get('[data-fieldid="Pre-TripExtension__0"]').first().check({force: true}); | ||
cy.get('[data-fieldid="Post-TripExtension__0"]').first().check({force: true}); | ||
|
@@ -70,7 +70,7 @@ describe('Travel-Study Trip Registration Form Page', () => { | |
|
||
// Visit the membership form page URL | ||
cy.visit('/travel-study/destinations/finland-2022/finland-reg-form/form'); | ||
|
||
// Confirm that the URL redirect to the expected URL | ||
cy.url().should('include', '/travel-study/destinations/finland-2022/finland-reg-form'); | ||
cy.reload(); // Needed for local Gatsby build | ||
|
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