cleanup and initial TDD (fail)
This commit is contained in:
18
cypress/e2e/listing-restaurants.cy.js
Normal file
18
cypress/e2e/listing-restaurants.cy.js
Normal file
@ -0,0 +1,18 @@
|
||||
describe('Listing Restaurants', () =>
|
||||
{
|
||||
it('shows restaurants from the server', () =>
|
||||
{
|
||||
const sushiPlace = "Sushi Place";
|
||||
const pizzaPlace = "Pizza Place";
|
||||
|
||||
cy.intercept('GET', 'https://api.outsidein.dev/*/restaurants',
|
||||
[
|
||||
{id: 850, name: sushiPlace},
|
||||
{id: 851, name: pizzaPlace}
|
||||
]);
|
||||
|
||||
cy.visit('/');
|
||||
cy.contains(sushiPlace);
|
||||
cy.contains(pizzaPlace);
|
||||
})
|
||||
})
|
@ -1,6 +0,0 @@
|
||||
describe('Smoke Test', () => {
|
||||
it('can view the home page', () => {
|
||||
cy.visit('/');
|
||||
cy.contains('Learn React');
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user