[E2E][Teachers] Fix broken test

This commit is contained in:
Aaro Koivukangas
2026-07-07 12:14:26 +03:00
parent cb21c675c2
commit c0246550bb
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ describe('Teachers page tests', () => {
cy.cs('Search').click()
cy.cs('teacher-search').type(teacher1.split(' ')[0])
cy.get('table tbody tr').should('have.length', 4)
cy.get('table tbody tr').eq(1).contains('td', teacher1)
cy.get('table tbody tr').eq(2).contains('td', teacher1)
})
it('Can check teacher page', () => {
@@ -21,6 +21,7 @@ export const getTeachersBySearchTerm = async (searchTerm: string) => {
[Op.and]: searchTerms.map(term => ({ [Op.iLike]: `%${term}%` })),
},
},
order: [['name', 'ASC']],
})
}