cleanup and initial TDD (fail)

This commit is contained in:
2024-04-24 11:35:35 -04:00
parent 319611a40d
commit 79eeac6e5c
11 changed files with 25 additions and 114 deletions

View 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);
})
})

View File

@ -1,6 +0,0 @@
describe('Smoke Test', () => {
it('can view the home page', () => {
cy.visit('/');
cy.contains('Learn React');
})
})