mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
add few tests for correct localStorage behaviour
This commit is contained in:
@@ -41,6 +41,17 @@ describe('Instructor review page', () => {
|
||||
cy.visit('/instructorreviewpage')
|
||||
})
|
||||
|
||||
it('shows the correct students to give reviews for without waiting', () => {
|
||||
cy.get("h2").should('contain', "Timo *Teppo Tellervo Testaaja")
|
||||
cy.get("h2").should('contain', "Donald John Trump")
|
||||
})
|
||||
|
||||
it('shows the correct students to give reviews for', () => {
|
||||
cy.wait(500)
|
||||
cy.get("h2").should('contain', "Timo *Teppo Tellervo Testaaja")
|
||||
cy.get("h2").should('contain', "Donald John Trump")
|
||||
})
|
||||
|
||||
it('requires text fields to be filled', () => {
|
||||
submitInstructorReview()
|
||||
// submit not successfull, still on same page
|
||||
|
||||
Reference in New Issue
Block a user