Skip to content

Instantly share code, notes, and snippets.

@bmitchinson
Created July 10, 2020 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmitchinson/fd2ad473067f0740be63e049515091c9 to your computer and use it in GitHub Desktop.
Save bmitchinson/fd2ad473067f0740be63e049515091c9 to your computer and use it in GitHub Desktop.
context('Form is rendered on a valid route', function() {
before(() => {
cy.server();
cy.route('POST', '/session', 'fixture:postSessionResponse').as('postSession');
cy.visit('/feedback/1/6');
cy.wait('@postSession');
});
it('Displays all the menu item review components', function() {
cy.get('#tomato\\ bisque');
cy.get('#chicken\\ strips');
});
it('Displays the service review component', function() {
cy.get('#service');
});
it('Displays the atmosphere review component', function() {
cy.get('#atmosphere');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment