Fix frontend tests
This commit is contained in:
parent
e7690d3e49
commit
da85d3dbc2
|
|
@ -1,6 +1,5 @@
|
||||||
import {mockUpdateOnboardingProgress} from '../../support/helpers';
|
import {mockUpdateOnboardingProgress} from '../../support/helpers';
|
||||||
|
|
||||||
const schema = require('../../fixtures/schema.json');
|
|
||||||
const me = require('../../fixtures/me.new-student.json');
|
const me = require('../../fixtures/me.new-student.json');
|
||||||
|
|
||||||
describe('New student', () => {
|
describe('New student', () => {
|
||||||
|
|
|
||||||
|
|
@ -9,19 +9,11 @@ fragment ChapterParts on ChapterNode {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
titleHiddenFor {
|
titleHiddenFor {
|
||||||
edges {
|
id
|
||||||
node {
|
name
|
||||||
id
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
descriptionHiddenFor {
|
descriptionHiddenFor {
|
||||||
edges {
|
id
|
||||||
node {
|
name
|
||||||
id
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
fragment ContentBlockInterfaceParts on ContentBlockInterface {
|
fragment ContentBlockInterfaceParts on ContentBlockInterface {
|
||||||
id
|
|
||||||
title
|
title
|
||||||
type
|
type
|
||||||
contents
|
contents
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
fragment ContentBlockParts on ContentBlockNode {
|
fragment ContentBlockParts on ContentBlockNode {
|
||||||
|
id
|
||||||
slug
|
slug
|
||||||
userCreated
|
userCreated
|
||||||
mine
|
mine
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,7 @@ fragment ObjectiveGroupParts on ObjectiveGroupNode {
|
||||||
title
|
title
|
||||||
displayTitle
|
displayTitle
|
||||||
hiddenFor {
|
hiddenFor {
|
||||||
edges {
|
id
|
||||||
node {
|
name
|
||||||
id
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,19 +4,11 @@ fragment ObjectiveParts on ObjectiveNode {
|
||||||
mine
|
mine
|
||||||
userCreated
|
userCreated
|
||||||
hiddenFor {
|
hiddenFor {
|
||||||
edges {
|
id
|
||||||
node {
|
name
|
||||||
id
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
visibleFor {
|
visibleFor {
|
||||||
edges {
|
id
|
||||||
node {
|
name
|
||||||
id
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ mutation MutateContentBlock($input: MutateContentBlockInput!) {
|
||||||
contentBlock {
|
contentBlock {
|
||||||
...ContentBlockParts
|
...ContentBlockParts
|
||||||
...ContentBlockInterfaceParts
|
...ContentBlockInterfaceParts
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ query SnapshotDetail($id: ID!) {
|
||||||
titleHidden
|
titleHidden
|
||||||
descriptionHidden
|
descriptionHidden
|
||||||
contentBlocks {
|
contentBlocks {
|
||||||
|
id
|
||||||
...ContentBlockInterfaceParts
|
...ContentBlockInterfaceParts
|
||||||
hidden
|
hidden
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ from users.models import User, SchoolClass
|
||||||
MODULE_QUERY = """
|
MODULE_QUERY = """
|
||||||
query ModulesQuery($slug: String!) {
|
query ModulesQuery($slug: String!) {
|
||||||
module(slug: $slug) {
|
module(slug: $slug) {
|
||||||
id
|
id
|
||||||
title
|
title
|
||||||
chapters {
|
chapters {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
|
|
@ -29,7 +29,7 @@ query ModulesQuery($slug: String!) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue