Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub cypress tests #278

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/e2e_deployment_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: End-to-end tests
on: deployment
jobs:
cypress-run:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v2
14 changes: 0 additions & 14 deletions .github/workflows/vercel_deployment_tests.yml

This file was deleted.

7 changes: 2 additions & 5 deletions cypress/integration/gosub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ describe('Subroutine workflow block', () => {
cy.get('mat-toolbar > button mat-icon').contains('settings').click();
cy.get("#mat-expansion-panel-header-0").click();
//cy.pause();
cy.get("#mat-input-0").clear().type("s");
cy.get(".mat-option-text").contains("someAdapterB")
cy.get("#mat-input-0").clear().type("someAdapterB");
cy.get("#mat-input-1").clear();
cy.get(".mat-option-text").contains("madeUpFlowIDB")
cy.get("#mat-input-0").clear().type("s").type("o").get(".mat-option-text", {timeout: 1000}).contains("someAdapterB")
cy.get("#mat-input-0").clear().type("someAdapterB").get("#mat-input-1").clear().get(".mat-option-text", {timeout: 1000}).contains("madeUpFlowIDB")
});

});
Expand Down
8 changes: 2 additions & 6 deletions cypress/integration/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@ describe('workspace-project App', () => {
cy.get('app-root mat-toolbar').contains('menu').click();
cy.contains('workflow builder').click();
cy.contains('settings');
cy.get('mat-toolbar > button mat-icon').contains('settings').click();
cy.get('app-workflow-sidenav').contains('delete_forever').click();
cy.get('app-workflow-sidenav').contains('Mapping').should('not.exist');
cy.get('app-workflow-sidenav').contains('Add Task').click();
cy.contains('Select Task');
cy.get('mat-dialog-container').contains('Mapping').click();
cy.get('mat-toolbar > button mat-icon').contains('settings').click().get('app-workflow-sidenav').contains('delete_forever').click().get('app-workflow-sidenav').contains('Mapping').should('not.exist').pause();
cy.get('app-workflow-sidenav').contains('Add Task').click().contains('Select Task').get('mat-dialog-container').contains('Mapping').click();
cy.get('app-add-block-dialog .mat-dialog-actions').contains('Add Task').click();
cy.get('app-workflow-sidenav').contains('Mapping');
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"e2e:serve_and_retest_on_change": "start-server-and-test serve:dev http://localhost:4200 'npm run e2e:retest_on_change'",
"e2e:retest_on_change": "nodemon -e js,jsx,ts,tsx,css,scss --exec 'ng test -- --watch=false; cypress run --headed --no-exit'",
"e2e:autorun": "ng test -- --watch=false; cypress run --headed --no-exit",
"e2e:serve_and_test": "npx cypress install; start-server-and-test serve:dev http://localhost:4200 'ng test -- --watch=false; cypress run'"
"e2e:serve_and_test": "start-server-and-test serve:dev http://localhost:4200 'cypress run'"
},
"private": true,
"dependencies": {
Expand Down