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'; 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', () => {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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