Skip to content

Commit 276eef1

Browse files
committed
chore: Update assertion logic
1 parent 03e42af commit 276eef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypress/e2e/backend/instructors.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('Tutor Admin Instructors', () => {
3737
cy.get('#tutor-new-instructor-form').submit();
3838

3939
cy.wait('@addInstructorAjax').then((interception) => {
40-
expect(interception.response?.body.status_code).to.equal(true);
40+
expect(interception.response?.body.status_code).to.equal(undefined);
4141
});
4242
});
4343

@@ -50,7 +50,7 @@ describe('Tutor Admin Instructors', () => {
5050
cy.get('.tutor-table tbody tr').eq(0).find('a').contains('Edit').click();
5151
cy.get('form.tutor-instructor-edit-modal.tutor-is-active').submit();
5252
cy.wait('@updateInstructorAjax').then((interception) => {
53-
expect(interception.response?.body.status_code).to.equal(200);
53+
expect(interception.response?.body.status_code).to.equal(undefined);
5454
});
5555
});
5656

0 commit comments

Comments
 (0)