Update schema for new cypress test
This commit is contained in:
parent
7b66d9b71b
commit
e2b3fdaece
File diff suppressed because one or more lines are too long
|
|
@ -144,10 +144,27 @@ describe('Class Management', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('changes class name', () => {
|
it('changes class name', () => {
|
||||||
cy.visit('/me/my-class');
|
|
||||||
|
|
||||||
let className = 'Gotta have class';
|
let className = 'Gotta have class';
|
||||||
|
|
||||||
|
cy.mockGraphqlOps({
|
||||||
|
operations: {
|
||||||
|
MeQuery: me,
|
||||||
|
MySchoolClassQuery: selectedClass,
|
||||||
|
UpdateSchoolClass: {
|
||||||
|
updateSchoolClass: {
|
||||||
|
success: true,
|
||||||
|
schoolClass: {
|
||||||
|
name: className,
|
||||||
|
__typename: 'SchoolClassNode'
|
||||||
|
},
|
||||||
|
__typename: 'UpdateSchoolClassPayload'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
cy.visit('/me/my-class');
|
||||||
|
|
||||||
cy.get('[data-cy=edit-class-name-link]').click();
|
cy.get('[data-cy=edit-class-name-link]').click();
|
||||||
cy.get('[data-cy=edit-class-name-input]').type('{selectall}{backspace}').type(className);
|
cy.get('[data-cy=edit-class-name-input]').type('{selectall}{backspace}').type(className);
|
||||||
cy.get('[data-cy=modal-save-button]').click();
|
cy.get('[data-cy=modal-save-button]').click();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue