Fix new student test
This commit is contained in:
parent
950fe9c60e
commit
bedbcd6fa0
|
|
@ -10,9 +10,12 @@ describe('New student', () => {
|
|||
schema: schema,
|
||||
});
|
||||
|
||||
|
||||
cy.apolloLogin('hansli', 'test');
|
||||
|
||||
const __typename = "SchoolClassNode";
|
||||
const name = "KF1A";
|
||||
const id = "U2Nob29sQ2xhc3NOb2RlOjI=";
|
||||
|
||||
cy.mockGraphqlOps({
|
||||
operations: {
|
||||
MeQuery: me,
|
||||
|
|
@ -20,9 +23,20 @@ describe('New student', () => {
|
|||
joinClass: {
|
||||
success: true,
|
||||
schoolClass: {
|
||||
id: "U2Nob29sQ2xhc3NOb2RlOjI=",
|
||||
name: "KF1A",
|
||||
__typename: "SchoolClassNode"
|
||||
id,
|
||||
name,
|
||||
__typename
|
||||
}
|
||||
}
|
||||
},
|
||||
MySchoolClassQuery: {
|
||||
me: {
|
||||
...me.me,
|
||||
selectedClass: {
|
||||
__typename,
|
||||
name,
|
||||
id,
|
||||
members: []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue