Skip to content

Commit

Permalink
Fix cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisM000 committed Jun 24, 2023
1 parent 20c1f1c commit b8c2e0f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions e2e-tests/cypress/cypress/e2e/films.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ beforeEach(() => {

describe('Films page', () => {
it('smoke test: frontpage can be opened', () => {
cy.contains('Películas mierder')
cy.contains('Mierder Movies')
})

it('should contains a film and can be navigate', () => {
cy.findByRole('list')

cy.get('main')
.findByRole('list')
.findByRole('listitem')
.find('article')
.contains('Sweeney Todd: The Demon Barber of Fleet Street')
.click()

Expand Down

0 comments on commit b8c2e0f

Please sign in to comment.