Fix frontend tests

This commit is contained in:
Ramon Wenger 2021-05-06 10:59:32 +02:00
parent e7690d3e49
commit da85d3dbc2
9 changed files with 16 additions and 37 deletions

View File

@ -1,6 +1,5 @@
import {mockUpdateOnboardingProgress} from '../../support/helpers';
const schema = require('../../fixtures/schema.json');
const me = require('../../fixtures/me.new-student.json');
describe('New student', () => {

View File

@ -9,19 +9,11 @@ fragment ChapterParts on ChapterNode {
}
}
titleHiddenFor {
edges {
node {
id
name
}
}
id
name
}
descriptionHiddenFor {
edges {
node {
id
name
}
}
id
name
}
}

View File

@ -1,5 +1,4 @@
fragment ContentBlockInterfaceParts on ContentBlockInterface {
id
title
type
contents

View File

@ -1,4 +1,5 @@
fragment ContentBlockParts on ContentBlockNode {
id
slug
userCreated
mine

View File

@ -3,11 +3,7 @@ fragment ObjectiveGroupParts on ObjectiveGroupNode {
title
displayTitle
hiddenFor {
edges {
node {
id
name
}
}
id
name
}
}

View File

@ -4,19 +4,11 @@ fragment ObjectiveParts on ObjectiveNode {
mine
userCreated
hiddenFor {
edges {
node {
id
name
}
}
id
name
}
visibleFor {
edges {
node {
id
name
}
}
id
name
}
}

View File

@ -6,7 +6,6 @@ mutation MutateContentBlock($input: MutateContentBlockInput!) {
contentBlock {
...ContentBlockParts
...ContentBlockInterfaceParts
}
}
}

View File

@ -14,6 +14,7 @@ query SnapshotDetail($id: ID!) {
titleHidden
descriptionHidden
contentBlocks {
id
...ContentBlockInterfaceParts
hidden
}

View File

@ -11,9 +11,9 @@ from users.models import User, SchoolClass
MODULE_QUERY = """
query ModulesQuery($slug: String!) {
module(slug: $slug) {
id
title
chapters {
id
title
chapters {
edges {
node {
id
@ -29,7 +29,7 @@ query ModulesQuery($slug: String!) {
}
}
}
}
}
}
}
"""