Skip to content

Commit

Permalink
Add second test
Browse files Browse the repository at this point in the history
  • Loading branch information
skitterm committed Dec 18, 2023
1 parent 9ea7751 commit f45add4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions cypress/e2e/spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ describe('template spec', () => {
cy.title().should('equal', 'Mealdrop - find your next meal')
})

// it('creates a new order', () => {
// cy.visit('http://localhost:3000/restaurants/2')
it('creates a new order', () => {
cy.visit('http://localhost:3000/restaurants/2')

// cy.wait(1000)
// // @ts-expect-error as
// cy.takeChromaticArchive()
cy.wait(1000)
// @ts-expect-error as
cy.takeChromaticArchive()

// cy.contains('h4', 'Fries').click()
cy.contains('h4', 'Fries').click()

// cy.get('[data-testid="modal"]').should('be.visible')
// // @ts-expect-error
// cy.takeChromaticArchive()
cy.get('[data-testid="modal"]').should('be.visible')
// @ts-expect-error
cy.takeChromaticArchive()

// cy.contains('button', /add for €2\.50/).click()
cy.contains('button', /add for €2\.50/).click()

// cy.contains('[data-testid="header"] span', '€2.50').should('be.visible')
// })
cy.contains('[data-testid="header"] span', '€2.50').should('be.visible')
})
})

0 comments on commit f45add4

Please sign in to comment.