From 5fe2ab501f154b4c24729b840b0c87c67300b164 Mon Sep 17 00:00:00 2001 From: Gaurabh Chakraborty <103099666+gaurabhgeekyants@users.noreply.github.com> Date: Wed, 7 Dec 2022 14:35:04 +0530 Subject: [PATCH 1/4] Create cypress-End-to-end-tests.yml --- .../workflows/cypress-End-to-end-tests.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/cypress-End-to-end-tests.yml diff --git a/.github/workflows/cypress-End-to-end-tests.yml b/.github/workflows/cypress-End-to-end-tests.yml new file mode 100644 index 000000000..4411e85be --- /dev/null +++ b/.github/workflows/cypress-End-to-end-tests.yml @@ -0,0 +1,26 @@ +name: End-to-end tests +on: + push: + branches: + - 'cypress_automation' + pull_request: +jobs: + basic-ubuntu-20-v10: + 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@v4.1.0 # use the explicit version number + with: + working-directory: /test-automation-cypress/cypress/e2e/pom + build: npm run build + start: npm start + #test + - name: Cypress tests + uses: ./ + with: + working-directory: /test-automation-cypress/cypress/e2e/pom + build: npx cypress info From 21e047bf9c428b9c7e45b86518d78913d6370837 Mon Sep 17 00:00:00 2001 From: Gaurabh Chakraborty <103099666+gaurabhgeekyants@users.noreply.github.com> Date: Wed, 7 Dec 2022 14:37:36 +0530 Subject: [PATCH 2/4] Update cypress-End-to-end-tests.yml --- .github/workflows/cypress-End-to-end-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cypress-End-to-end-tests.yml b/.github/workflows/cypress-End-to-end-tests.yml index 4411e85be..d32ecd1a2 100644 --- a/.github/workflows/cypress-End-to-end-tests.yml +++ b/.github/workflows/cypress-End-to-end-tests.yml @@ -22,5 +22,6 @@ jobs: - name: Cypress tests uses: ./ with: + node-version: 16 working-directory: /test-automation-cypress/cypress/e2e/pom build: npx cypress info From 45f4946444a7aecd31c717da562297a6b8d8023d Mon Sep 17 00:00:00 2001 From: Gaurabh Chakraborty <103099666+gaurabhgeekyants@users.noreply.github.com> Date: Wed, 7 Dec 2022 14:39:44 +0530 Subject: [PATCH 3/4] Update cypress-End-to-end-tests.yml --- .github/workflows/cypress-End-to-end-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cypress-End-to-end-tests.yml b/.github/workflows/cypress-End-to-end-tests.yml index d32ecd1a2..954193f92 100644 --- a/.github/workflows/cypress-End-to-end-tests.yml +++ b/.github/workflows/cypress-End-to-end-tests.yml @@ -15,7 +15,7 @@ jobs: - name: Cypress run uses: cypress-io/github-action@v4.1.0 # use the explicit version number with: - working-directory: /test-automation-cypress/cypress/e2e/pom + working-directory: /test-automation-cypress build: npm run build start: npm start #test @@ -23,5 +23,5 @@ jobs: uses: ./ with: node-version: 16 - working-directory: /test-automation-cypress/cypress/e2e/pom + working-directory: /test-automation-cypress build: npx cypress info From b436200d22cd718a12b1c6029a1aecb28a3d3663 Mon Sep 17 00:00:00 2001 From: Gaurabh Chakraborty <103099666+gaurabhgeekyants@users.noreply.github.com> Date: Wed, 7 Dec 2022 14:56:21 +0530 Subject: [PATCH 4/4] Update cypress-End-to-end-tests.yml --- .../workflows/cypress-End-to-end-tests.yml | 26 +++++-------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/.github/workflows/cypress-End-to-end-tests.yml b/.github/workflows/cypress-End-to-end-tests.yml index 954193f92..8f620b010 100644 --- a/.github/workflows/cypress-End-to-end-tests.yml +++ b/.github/workflows/cypress-End-to-end-tests.yml @@ -1,27 +1,15 @@ -name: End-to-end tests -on: - push: - branches: - - 'cypress_automation' - pull_request: +name: Cypress tests +on: [push] jobs: - basic-ubuntu-20-v10: + 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@v4.1.0 # use the explicit version number - with: - working-directory: /test-automation-cypress - build: npm run build - start: npm start - #test - - name: Cypress tests - uses: ./ + uses: cypress-io/github-action@v4 with: node-version: 16 - working-directory: /test-automation-cypress - build: npx cypress info + start: npm start + config-file: test-automation-cypress/cypress.config.js + spec: test-automation-cypress/cypress/e2e/pom/checkAllVerticalNavigations.spec.js