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