mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[E2E][Teachers] Fix broken test
This commit is contained in:
@@ -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']],
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user