Skip to content

Commit

Permalink
[Population statistics] Try to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Jul 3, 2024
1 parent 3dd40cb commit c88029c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/Population_statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ describe('Population Statistics tests', () => {
.then($parentDiv => {
if (!$parentDiv.hasClass('active')) cy.contains('Students (170)').click()
})
cy.get('[data-cy=student-table-tabs]').contains('Tags').click()
cy.get('[data-cy=student-table-tabs]').within(() => {
cy.contains('Tags').click()
})
cy.contains('No tags defined. You can define them here.').find('a').click()
cy.contains('Tags').click()
cy.contains('Tietojenkäsittelytieteen kandiohjelma')
Expand Down

0 comments on commit c88029c

Please sign in to comment.