From 5d02b839ee1c45aec2989e6f42c946898a699b2c Mon Sep 17 00:00:00 2001 From: Valtteri Kantanen Date: Tue, 17 Dec 2024 08:34:51 +0200 Subject: [PATCH] Update tests after updating students in the test db --- cypress/e2e/Language_center.js | 6 +++--- cypress/e2e/Study_guidance_groups.js | 2 +- cypress/e2e/Studyprogramme_overview.js | 18 +++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/cypress/e2e/Language_center.js b/cypress/e2e/Language_center.js index b1ca948392..b1332d0712 100644 --- a/cypress/e2e/Language_center.js +++ b/cypress/e2e/Language_center.js @@ -65,7 +65,7 @@ describe('When language center is opened', () => { cy.get('table > tbody > tr:first').within(() => { cy.get('td').should('have.length', 15) cy.get('td').eq(0).contains('All courses total') - const numbers = [36, 9, 34, 755, 15, 40, 6, 48, 1, 24, 1059, 49, 0, 2076] + const numbers = [36, 9, 33, 756, 15, 40, 6, 48, 1, 24, 1059, 49, 0, 2076] numbers.forEach((number, index) => { cy.get('td') .eq(index + 1) @@ -76,12 +76,12 @@ describe('When language center is opened', () => { it('Faculties tab "exceeding" button works', () => { cy.get('[data-cy="difference-button"]').click() - checkNumbers([...new Array(12).fill(0), 1, 227], 15) + checkNumbers([...new Array(12).fill(0), 1, 221], 15) }) it('Faculties tab semester selector changes numbers', () => { chooseSemester('Syksy 2020', 'from') - checkNumbers([28, 6, 28, 495, 4, 10, 2, 33, 0, 9, 535, 34, 0, 1184], 15) + checkNumbers([28, 6, 27, 496, 4, 10, 2, 33, 0, 9, 535, 34, 0, 1184], 15) }) }) diff --git a/cypress/e2e/Study_guidance_groups.js b/cypress/e2e/Study_guidance_groups.js index 4206d1288f..f086a3b37a 100644 --- a/cypress/e2e/Study_guidance_groups.js +++ b/cypress/e2e/Study_guidance_groups.js @@ -141,7 +141,7 @@ describe('Study guidance group tests', () => { 'Transferred from', 'Admission type', 'Gender', - 'Citizenship', + 'Citizenships', 'Curriculum period', 'Latest attainment date', 'Tags', diff --git a/cypress/e2e/Studyprogramme_overview.js b/cypress/e2e/Studyprogramme_overview.js index b66aa07d60..ccc7677685 100644 --- a/cypress/e2e/Studyprogramme_overview.js +++ b/cypress/e2e/Studyprogramme_overview.js @@ -253,14 +253,14 @@ describe('Study programme overview', () => { it('Students of the study programme are shown correctly', () => { const tableContents = [ // [Year, All, Started studying, Present, Absent, Inactive, Graduated, Men, Women, Other/Unknown, Finland, Other] - ['2023 - 2024', 8, 8, 0, 0, 8, 0, 5, 3, 0, 8, 0], + ['2023 - 2024', 8, 8, 0, 0, 8, 0, 5, 3, 0, 8, 1], ['2022 - 2023', 26, 25, 0, 0, 24, 2, 19, 7, 0, 25, 1], - ['2021 - 2022', 38, 29, 0, 0, 33, 5, 29, 9, 0, 35, 3], - ['2020 - 2021', 30, 26, 0, 0, 11, 19, 15, 15, 0, 29, 1], - ['2019 - 2020', 35, 28, 0, 0, 8, 27, 22, 13, 0, 34, 1], + ['2021 - 2022', 38, 29, 0, 0, 33, 5, 29, 9, 0, 36, 4], + ['2020 - 2021', 30, 26, 0, 0, 11, 19, 15, 15, 0, 29, 3], + ['2019 - 2020', 35, 28, 0, 0, 8, 27, 22, 13, 0, 35, 2], ['2018 - 2019', 45, 40, 0, 0, 6, 39, 26, 19, 0, 44, 1], ['2017 - 2018', 47, 41, 0, 0, 5, 42, 31, 16, 0, 47, 0], - ['Total', 229, 197, 0, 0, 95, 134, 147, 82, 0, 222, 7], + ['Total', 229, 197, 0, 0, 95, 134, 147, 82, 0, 224, 12], ] cy.checkTableStats(tableContents, 'StudyTrackOverview') @@ -276,7 +276,7 @@ describe('Study programme overview', () => { const dataForStudyTracks = [ ['Ekonometria, MAT-EKO', 2, 2, 0, 0, 0, 2, 1, 1, 0, 2, 0], - ['Matematiikka, MAT-MAT', 13, 10, 0, 0, 1, 12, 7, 6, 0, 12, 1], + ['Matematiikka, MAT-MAT', 13, 10, 0, 0, 1, 12, 7, 6, 0, 12, 3], ['Tietojenkäsittelyteoria, MAT-TIE', 2, 1, 0, 0, 1, 1, 2, 0, 0, 2, 0], ['Tilastotiede, MAT-TIL', 4, 4, 0, 0, 0, 4, 1, 3, 0, 4, 0], ] @@ -413,11 +413,11 @@ describe('Study programme overview', () => { // [Year, All, Started studying, Present, Absent, Inactive, Graduated, Men, Women, Other/Unknown, Finland, Other] ['2022 - 2023', 3, 3, 0, 0, 1, 2, 2, 1, 0, 3, 0], ['2021 - 2022', 5, 1, 0, 0, 1, 4, 3, 2, 0, 5, 0], - ['2020 - 2021', 13, 10, 0, 0, 1, 12, 7, 6, 0, 12, 1], - ['2019 - 2020', 17, 14, 0, 0, 0, 17, 10, 7, 0, 16, 1], + ['2020 - 2021', 13, 10, 0, 0, 1, 12, 7, 6, 0, 12, 3], + ['2019 - 2020', 17, 14, 0, 0, 0, 17, 10, 7, 0, 17, 1], ['2018 - 2019', 23, 21, 0, 0, 2, 21, 11, 12, 0, 23, 0], ['2017 - 2018', 28, 24, 0, 0, 1, 27, 15, 13, 0, 28, 0], - ['Total', 89, 73, 0, 0, 6, 83, 48, 41, 0, 87, 2], + ['Total', 89, 73, 0, 0, 6, 83, 48, 41, 0, 88, 4], ] cy.checkTableStats(tableContents, 'StudyTrackOverview') })