diff --git a/client/cypress/e2e/frontend/modules/videos.cy.ts b/client/cypress/e2e/frontend/modules/videos.cy.ts index 76dd6a2a..5a53a5f7 100644 --- a/client/cypress/e2e/frontend/modules/videos.cy.ts +++ b/client/cypress/e2e/frontend/modules/videos.cy.ts @@ -33,7 +33,6 @@ const videoModule = { }, bookmark: null, __typename: 'ModuleNode', - objectiveGroups: [], chapters: [ { id: 'Q2hhcHRlck5vZGU6Nzc2', diff --git a/client/cypress/e2e/frontend/objectives/objectives-visibility.spec.js b/client/cypress/e2e/frontend/objectives/objectives-visibility.spec.js deleted file mode 100644 index 49ef4546..00000000 --- a/client/cypress/e2e/frontend/objectives/objectives-visibility.spec.js +++ /dev/null @@ -1,87 +0,0 @@ -import { getMe } from '../../../support/helpers'; -import mocks from '../../../fixtures/mocks'; - -const modules = { - 'lohn-und-budget': { - objectiveGroups: { - edges: [ - { - node: { - title: 'LANGUAGE_COMMUNICATION', - objectives: { - edges: [ - { - node: { - text: 'i-am-an-objective', - hiddenFor: { - edges: [], - }, - }, - }, - ], - }, - }, - }, - ], - }, - }, -}; - -const operations = { - MeQuery() { - return getMe({ - schoolClasses: ['FLID2018a'], - teacher: false, - }); - }, - ModulesQuery: modules, - MySchoolClassQuery: { - me: {}, - }, - UpdateLastModule: { - updateLastModule: { - success: true, - }, - }, - SyncModuleVisibility: { - syncModuleVisibility: { - success: true, - }, - }, -}; - -// const mocks = { -// UUID: () => 'Whatever', -// GenericStreamFieldType: () => [], -// ObjectiveGroup: () => ({}), -// Module: () => ({ -// title: 'title', -// slug: 'slug', -// metaTitle: 'metaTitle', -// teaser: 'teaser', -// intro: 'intro', -// assignments: {edges: []}, -// objectiveGroups: {edges: []}, -// id: 'ID', -// }), -// }; - -describe('Objective Visibility', () => { - beforeEach(() => { - cy.task('getSchema').then((schema) => { - cy.mockGraphql({ - schema, - // endpoint: '/api/graphql' - mocks, - operations, - }); - }); - }); - - //todo: finish writing this test, this does nothing - it.skip('should display the correct objectives', () => { - cy.fakeLogin('rachel.green', 'test'); - - cy.visit('/module/lohn-und-budget'); - }); -}); diff --git a/client/cypress/e2e/frontend/objectives/objectives.spec.js b/client/cypress/e2e/frontend/objectives/objectives.spec.js deleted file mode 100644 index e69de29b..00000000 diff --git a/client/cypress/e2e/frontend/portfolio/new-project.spec.js b/client/cypress/e2e/frontend/portfolio/new-project.spec.js index c4bdec3e..cd5c015f 100644 --- a/client/cypress/e2e/frontend/portfolio/new-project.spec.js +++ b/client/cypress/e2e/frontend/portfolio/new-project.spec.js @@ -13,7 +13,6 @@ describe('New project', () => { appearance: 'blue', description: 'This description rocks', slug: 'some-random-title', - objectives: 'Git gud', final: false, schoolClass, student: { diff --git a/client/cypress/e2e/frontend/portfolio/project-page.spec.js b/client/cypress/e2e/frontend/portfolio/project-page.spec.js index c2ced384..ee99ef69 100644 --- a/client/cypress/e2e/frontend/portfolio/project-page.spec.js +++ b/client/cypress/e2e/frontend/portfolio/project-page.spec.js @@ -22,7 +22,6 @@ describe('Project Page', () => { appearance: 'yellow', description: 'I am Groot', slug: 'groot', - objectives: 'Be Groot\nBe awesome', final: false, student: { firstName: 'Rachel', @@ -49,7 +48,6 @@ describe('Project Page', () => { appearance: 'red', description: 'I am Groot', slug: 'groot', - objectives: 'Be Groot\nBe awesome', final: false, student: { firstName: 'Rachel', diff --git a/client/cypress/fixtures/full-modules.json b/client/cypress/fixtures/full-modules.json index c7235f62..4936cb77 100644 --- a/client/cypress/fixtures/full-modules.json +++ b/client/cypress/fixtures/full-modules.json @@ -45,10 +45,6 @@ ], "__typename": "AssignmentNodeConnection" }, - "objectiveGroups": { - "edges": [], - "__typename": "ObjectiveGroupNodeConnection" - }, "chapters": { "edges": [ { @@ -117,10 +113,6 @@ "edges": [], "__typename": "AssignmentNodeConnection" }, - "objectiveGroups": { - "edges": [], - "__typename": "ObjectiveGroupNodeConnection" - }, "chapters": { "edges": [ { @@ -192,10 +184,6 @@ "edges": [], "__typename": "AssignmentNodeConnection" }, - "objectiveGroups": { - "edges": [], - "__typename": "ObjectiveGroupNodeConnection" - }, "chapters": { "edges": [ { @@ -234,10 +222,6 @@ "edges": [], "__typename": "AssignmentNodeConnection" }, - "objectiveGroups": { - "edges": [], - "__typename": "ObjectiveGroupNodeConnection" - }, "chapters": { "edges": [ { diff --git a/client/cypress/fixtures/mocks.ts b/client/cypress/fixtures/mocks.ts index 73d23171..2400af33 100644 --- a/client/cypress/fixtures/mocks.ts +++ b/client/cypress/fixtures/mocks.ts @@ -95,7 +95,6 @@ export default { intro: '', assignments: [], highlights: [], - objectiveGroups: [], id: getModuleId(), bookmark: null, }), diff --git a/client/cypress/fixtures/module-geld.json b/client/cypress/fixtures/module-geld.json index 37f0e55e..78b45aa7 100644 --- a/client/cypress/fixtures/module-geld.json +++ b/client/cypress/fixtures/module-geld.json @@ -13,10 +13,6 @@ "edges": [], "__typename": "AssignmentNodeConnection" }, - "objectiveGroups": { - "edges": [], - "__typename": "ObjectiveGroupNodeConnection" - }, "chapters": { "edges": [ { diff --git a/client/cypress/fixtures/module.json b/client/cypress/fixtures/module.json index c41e0bf7..3e433aaf 100644 --- a/client/cypress/fixtures/module.json +++ b/client/cypress/fixtures/module.json @@ -44,10 +44,6 @@ ], "__typename": "AssignmentNodeConnection" }, - "objectiveGroups": { - "edges": [], - "__typename": "ObjectiveGroupNodeConnection" - }, "chapters": { "edges": [ { diff --git a/client/cypress/fixtures/module.minimal.js b/client/cypress/fixtures/module.minimal.js index 0f174f4f..f9157827 100644 --- a/client/cypress/fixtures/module.minimal.js +++ b/client/cypress/fixtures/module.minimal.js @@ -6,7 +6,6 @@ export default { intro: 'intro', assignments: [], highlights: [], - objectiveGroups: [], id: 'TW9kdWxlTm9kZToxMjM=', chapters: [], topic: { diff --git a/client/cypress/support/helpers.ts b/client/cypress/support/helpers.ts index 5f65bcfe..3e377d1f 100644 --- a/client/cypress/support/helpers.ts +++ b/client/cypress/support/helpers.ts @@ -133,10 +133,6 @@ export const getModules = () => { ], __typename: 'AssignmentNodeConnection', }, - objectiveGroups: { - edges: [], - __typename: 'ObjectiveGroupNodeConnection', - }, chapters: { edges: [ { @@ -207,10 +203,6 @@ export const getModules = () => { edges: [], __typename: 'AssignmentNodeConnection', }, - objectiveGroups: { - edges: [], - __typename: 'ObjectiveGroupNodeConnection', - }, chapters: { edges: [ { @@ -284,10 +276,6 @@ export const getModules = () => { edges: [], __typename: 'AssignmentNodeConnection', }, - objectiveGroups: { - edges: [], - __typename: 'ObjectiveGroupNodeConnection', - }, chapters: { edges: [ { @@ -328,10 +316,6 @@ export const getModules = () => { edges: [], __typename: 'AssignmentNodeConnection', }, - objectiveGroups: { - edges: [], - __typename: 'ObjectiveGroupNodeConnection', - }, chapters: { edges: [ { diff --git a/client/src/App.vue b/client/src/App.vue index 954e7533..464ac1b3 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -37,7 +37,6 @@ const EditRoomEntryWizard = defineAsyncComponent(() => ); const NewProjectEntryWizard = defineAsyncComponent(() => import('@/components/portfolio/NewProjectEntryWizard.vue')); const EditProjectEntryWizard = defineAsyncComponent(() => import('@/components/portfolio/EditProjectEntryWizard.vue')); -const NewObjectiveWizard = defineAsyncComponent(() => import('@/components/objective-groups/NewObjectiveWizard.vue')); const NewNoteWizard = defineAsyncComponent(() => import('@/components/notes/NewNoteWizard.vue')); const EditNoteWizard = defineAsyncComponent(() => import('@/components/notes/EditNoteWizard.vue')); const EditClassNameWizard = defineAsyncComponent(() => import('@/components/school-class/EditClassNameWizard.vue')); @@ -69,7 +68,6 @@ export default { EditRoomEntryWizard, NewProjectEntryWizard, EditProjectEntryWizard, - NewObjectiveWizard, NewNoteWizard, EditNoteWizard, EditClassNameWizard, diff --git a/client/src/components/modules/Module.vue b/client/src/components/modules/Module.vue index 4222df2d..d736be5a 100644 --- a/client/src/components/modules/Module.vue +++ b/client/src/components/modules/Module.vue @@ -60,33 +60,6 @@ /> -