Skip to content

Commit

Permalink
[Study Programme] Fixed Cypress broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
santeri0200 committed Jan 13, 2025
1 parent c946cd2 commit 7244060
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cypress/e2e/Studyprogramme_overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ describe('Study programme overview', () => {
const tableContents = [
// [Year, Graduated, Wrote thesis]
...years.map(year => [year, 0, 0]),
[2023, 26, 0],
[2022, 48, 0],
[2021, 47, 66],
[2020, 12, 18],
[2019, 1, 15],
[2023, 26, 5],
[2022, 48, 13],
[2021, 47, 76],
[2020, 12, 23],
[2019, 1, 19],
[2018, 0, 0],
[2017, 0, 1],
]
Expand Down Expand Up @@ -113,11 +113,11 @@ describe('Study programme overview', () => {
const graduatedTableContents = [
// [Year, Graduated, Wrote thesis]
...years.map(year => [year, 0, 0]),
[2023, 24, 0],
[2022, 44, 0],
[2021, 46, 60],
[2020, 11, 17],
[2019, 1, 15],
[2023, 24, 5],
[2022, 44, 12],
[2021, 46, 69],
[2020, 11, 22],
[2019, 1, 18],
[2018, 0, 0],
[2017, 0, 1],
]
Expand Down Expand Up @@ -175,7 +175,7 @@ describe('Study programme overview', () => {
.should('contain', 'Graduated students')
.should('contain', 'Wrote thesis')
.should('contain', 47)
.should('contain', 66)
.should('contain', 76)

cy.get('[data-cy=graduation-times-graph-breakdownBachelor]')
cy.get('[data-cy=GraduationTimeToggle]').click()
Expand Down

0 comments on commit 7244060

Please sign in to comment.