-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' of github.com:Brain-Defrost/Brain-Defrost_…
…FE into development
- Loading branch information
Showing
5 changed files
with
16 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,18 +106,19 @@ describe('Brain Defrost GamePlay Stories', () => { | |
statusCode: 200, | ||
fixture: 'gameStats' | ||
}).as('getStats') | ||
//stub email address post request | ||
cy.intercept('POST', 'https://brain-defrost-f8afea5ead0a.herokuapp.com/api/v1/games/1/stats/email', | ||
{ | ||
statusCode: 200, | ||
body: '' | ||
}).as('postEmail') | ||
cy.visit('http://localhost:3000/game/results/1') | ||
.get('.send-stats-btn').contains('Send Me The Stats').click() | ||
.get('.form-message').contains('Send me those stats!') | ||
.get('label[for=email]').contains('Enter your Email Address') | ||
.get('#email').should('have.value', '').type('[email protected]').should('have.value', '[email protected]') | ||
.get('.submit-btn').click() | ||
//check that confirmation message is displayed | ||
.get('.form-message').contains('Check your email for the stats!') | ||
.get('.close-btn').click() | ||
.get('.form-modal').should('not.exist') | ||
}) | ||
// it('Allows non-creator player to play game', () => { | ||
|
||
// }) | ||
}) |
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