Skip to content

Commit

Permalink
fix invite student test (#5594)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpelay authored Jun 4, 2024
1 parent 663a364 commit 34d63fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {loginForTeacher, logout, login} from '../../tools/login/login.js'

it('Is able to add student by name', () => {
cy.intercept('/invite-student').as('invite')
loginForTeacher();
let student = 'student5'

Expand All @@ -27,8 +28,8 @@ it('Is able to add student by name', () => {
cy.getDataCy('invite_student').click();
cy.getDataCy('modal_prompt_input').type(student);
cy.getDataCy('modal_ok_button').click();

cy.wait(500);
cy.wait('@invite')

login(student, "123456");

cy.getDataCy('user_dropdown').click();
Expand Down

0 comments on commit 34d63fb

Please sign in to comment.