Skip to content

Commit

Permalink
cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NogaNHS committed Jan 25, 2024
1 parent e3da160 commit 03258bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/cypress/e2e/0-ndr-core-tests/feedback_page.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ describe('Feedback Page', () => {
fillInForm(mockInputData);

cy.get('#submit-feedback').click();
cy.intercept('POST', '/Feedback*', {
statusCode: 200,
}).as('feedback');

// TODO: when backend call for sending email is implemented,
// intercept the call and check that payload data is the same as mockInputData
Expand All @@ -104,7 +107,9 @@ describe('Feedback Page', () => {
fillInForm(mockInputData);

cy.get('#submit-feedback').click();

cy.intercept('POST', '/Feedback*', {
statusCode: 200,
}).as('feedback');
cy.get('.app-homepage-content h1', { timeout: 5000 }).should(
'have.text',
'We’ve received your feedback',
Expand Down

0 comments on commit 03258bc

Please sign in to comment.