Fix cypress tests
This commit is contained in:
parent
2e51fe5c11
commit
6a98a5b3ad
|
|
@ -3,9 +3,9 @@ import { getMinimalMe } from '../../../support/helpers';
|
||||||
// const operations = {
|
// const operations = {
|
||||||
// MeQuery: getMinimalMe({isTeacher: false}),
|
// MeQuery: getMinimalMe({isTeacher: false}),
|
||||||
// };
|
// };
|
||||||
const MeQuery = getMinimalMe();
|
const MeQuery = getMinimalMe({ isTeacher: false });
|
||||||
|
|
||||||
describe('Content Blocks', () => {
|
describe('Assignment in Module', () => {
|
||||||
const slug = 'some-module';
|
const slug = 'some-module';
|
||||||
const assignment = {
|
const assignment = {
|
||||||
id: 'abc',
|
id: 'abc',
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@ const getOperations = ({ final, readOnly, classReadOnly = false }) => ({
|
||||||
MeQuery: {
|
MeQuery: {
|
||||||
me: {
|
me: {
|
||||||
readOnly,
|
readOnly,
|
||||||
|
isTeacher: false,
|
||||||
|
permissions: [],
|
||||||
selectedClass: {
|
selectedClass: {
|
||||||
id: 'selectedClassId',
|
id: 'selectedClassId',
|
||||||
readOnly: classReadOnly,
|
readOnly: classReadOnly,
|
||||||
|
|
@ -46,6 +48,7 @@ const getOperations = ({ final, readOnly, classReadOnly = false }) => ({
|
||||||
ModuleDetailsQuery: {
|
ModuleDetailsQuery: {
|
||||||
module,
|
module,
|
||||||
},
|
},
|
||||||
|
ModuleEditModeQuery: {},
|
||||||
UpdateLastModule: {},
|
UpdateLastModule: {},
|
||||||
AssignmentQuery: {
|
AssignmentQuery: {
|
||||||
assignment: {
|
assignment: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue