From cae9a570abd94d38e6066972a22f3fe927f2fb3d Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Wed, 15 Apr 2020 19:32:52 +0300 Subject: [PATCH] test(backend-test): enable all tests (#3608) --- .../integration/editorial_workflow_spec_test_backend.js | 8 ++++++-- package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cypress/integration/editorial_workflow_spec_test_backend.js b/cypress/integration/editorial_workflow_spec_test_backend.js index af23d91f..fe620021 100644 --- a/cypress/integration/editorial_workflow_spec_test_backend.js +++ b/cypress/integration/editorial_workflow_spec_test_backend.js @@ -51,6 +51,10 @@ describe('Test Backend Editorial Workflow', () => { cy.task('setupBackend', { backend: 'test' }); }); + beforeEach(() => { + cy.task('updateConfig', { collections: [{ publish: true }] }); + }); + it('successfully loads', () => { login(); }); @@ -192,7 +196,7 @@ describe('Test Backend Editorial Workflow', () => { cy.contains('button', 'Publish new entry').should('not.exist'); }); - it.only('can create a new entry, publish and create new', () => { + it('can create a new entry, publish and create new', () => { login(); createPost(entry1); updateWorkflowStatusInEditor(editorStatus.ready); @@ -200,7 +204,7 @@ describe('Test Backend Editorial Workflow', () => { publishAndCreateNewEntryInEditor(entry1); }); - it.only('can create a new entry, publish and duplicate', () => { + it('can create a new entry, publish and duplicate', () => { login(); createPost(entry1); updateWorkflowStatusInEditor(editorStatus.ready); diff --git a/package.json b/package.json index 0440c28e..94a1f880 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "test:e2e": "run-s build:demo test:e2e:run", "test:e2e:ci": "run-s build:demo test:e2e:run-ci", "test:e2e:dev": "run-p clean && start-test develop 8080 test:e2e:exec-dev", - "test:e2e:serve": "http-server dev-test", + "test:e2e:serve": "http-server -c-1 dev-test", "test:e2e:exec": "cypress run --browser chrome --headless", "test:e2e:exec-ci": "cypress run --browser chrome --headless --record --parallel --ci-build-id $GITHUB_SHA --group 'GitHub CI' displayName: 'Run Cypress tests'", "test:e2e:exec-dev": "cypress open",