Fix frontend tests
This commit is contained in:
parent
e7690d3e49
commit
da85d3dbc2
|
|
@ -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', () => {
|
||||
|
|
|
|||
|
|
@ -9,19 +9,11 @@ fragment ChapterParts on ChapterNode {
|
|||
}
|
||||
}
|
||||
titleHiddenFor {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
id
|
||||
name
|
||||
}
|
||||
descriptionHiddenFor {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
fragment ContentBlockInterfaceParts on ContentBlockInterface {
|
||||
id
|
||||
title
|
||||
type
|
||||
contents
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
fragment ContentBlockParts on ContentBlockNode {
|
||||
id
|
||||
slug
|
||||
userCreated
|
||||
mine
|
||||
|
|
|
|||
|
|
@ -3,11 +3,7 @@ fragment ObjectiveGroupParts on ObjectiveGroupNode {
|
|||
title
|
||||
displayTitle
|
||||
hiddenFor {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,19 +4,11 @@ fragment ObjectiveParts on ObjectiveNode {
|
|||
mine
|
||||
userCreated
|
||||
hiddenFor {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
id
|
||||
name
|
||||
}
|
||||
visibleFor {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ mutation MutateContentBlock($input: MutateContentBlockInput!) {
|
|||
contentBlock {
|
||||
...ContentBlockParts
|
||||
...ContentBlockInterfaceParts
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ query SnapshotDetail($id: ID!) {
|
|||
titleHidden
|
||||
descriptionHidden
|
||||
contentBlocks {
|
||||
id
|
||||
...ContentBlockInterfaceParts
|
||||
hidden
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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!) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue