test(backend-test): enable all tests (#3608)

This commit is contained in:
Erez Rokah 2020-04-15 19:32:52 +03:00 committed by GitHub
parent 9f17363bee
commit cae9a570ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -51,6 +51,10 @@ describe('Test Backend Editorial Workflow', () => {
cy.task('setupBackend', { backend: 'test' }); cy.task('setupBackend', { backend: 'test' });
}); });
beforeEach(() => {
cy.task('updateConfig', { collections: [{ publish: true }] });
});
it('successfully loads', () => { it('successfully loads', () => {
login(); login();
}); });
@ -192,7 +196,7 @@ describe('Test Backend Editorial Workflow', () => {
cy.contains('button', 'Publish new entry').should('not.exist'); 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(); login();
createPost(entry1); createPost(entry1);
updateWorkflowStatusInEditor(editorStatus.ready); updateWorkflowStatusInEditor(editorStatus.ready);
@ -200,7 +204,7 @@ describe('Test Backend Editorial Workflow', () => {
publishAndCreateNewEntryInEditor(entry1); publishAndCreateNewEntryInEditor(entry1);
}); });
it.only('can create a new entry, publish and duplicate', () => { it('can create a new entry, publish and duplicate', () => {
login(); login();
createPost(entry1); createPost(entry1);
updateWorkflowStatusInEditor(editorStatus.ready); updateWorkflowStatusInEditor(editorStatus.ready);

View File

@ -23,7 +23,7 @@
"test:e2e": "run-s build:demo test:e2e:run", "test:e2e": "run-s build:demo test:e2e:run",
"test:e2e:ci": "run-s build:demo test:e2e:run-ci", "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: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": "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-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", "test:e2e:exec-dev": "cypress open",