Skip to content

Commit

Permalink
Add wait commands
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelvaara committed Dec 19, 2024
1 parent 14b382e commit c2e3351
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cypress/template/sidebar-alpha.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ describe('Alphabetical index', () => {
// Go to YSO vocab home page
cy.visit('/yso/en/')
// Check that letter pagination exists and has the right number of items
cy.wait(20000)
cy.get('#tab-alphabetical').find('.pagination li').should('have.length', 23)
// Check that the first letter is correct
cy.get('#tab-alphabetical').find('.pagination li').first().invoke('text').should('contain', 'A')
Expand All @@ -17,6 +18,7 @@ describe('Alphabetical index', () => {
// Click on alphabetical index tab
cy.get('#alphabetical').click()
// Check that letter pagination exists and has the right number of items
cy.wait(20000);
cy.get('#tab-alphabetical').find('.pagination li').should('have.length', 23)
// Check that the first letter is correct
cy.get('#tab-alphabetical').find('.pagination li').first().invoke('text').should('contain', 'A')
Expand Down

0 comments on commit c2e3351

Please sign in to comment.