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