Skip to content

Commit

Permalink
[Students] Add a test for Bachelor Honours visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Jun 24, 2024
1 parent 3079039 commit e607d34
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cypress/e2e/Students.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ describe('Students tests', () => {
.and('include', 'https://sisu.helsinki.fi/tutor/role/staff/student/hy-hlo-84830887/basic/basic-info')
})

it('Bachelor Honours section is shown', () => {
cy.get('.prompt').type(student.studentnumber)
cy.contains('td a', student.studentnumber).click()
cy.contains('h4', 'Bachelor Honours')
cy.contains('.tag.label', 'Not qualified for Honours')
cy.contains('.tag.label', 'Has not graduated')
})

it('Searching with bad inputs doesnt yield results', () => {
cy.get('.prompt').type('SWAG LITTINEN')
cy.contains('Student number').should('not.exist')
Expand Down

0 comments on commit e607d34

Please sign in to comment.