From 90b2d9bbb0d59adccc8c94fd8c1bd97a66abe4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Szpiech?= Date: Mon, 18 Jul 2022 13:55:31 +0200 Subject: [PATCH] Fix manual workflow (#786) * chore: fix typo * chore: fix flag in workflow * chore: fix if Co-authored-by: Rado --- .../workflows/capsule-cypress-manual-trigger.yml | 12 ++++++------ apps/token-e2e/cypress.config.js | 14 ++++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/capsule-cypress-manual-trigger.yml b/.github/workflows/capsule-cypress-manual-trigger.yml index fce68a98f..92dcd604a 100644 --- a/.github/workflows/capsule-cypress-manual-trigger.yml +++ b/.github/workflows/capsule-cypress-manual-trigger.yml @@ -10,11 +10,11 @@ on: required: true type: choice options: - - explorer - - simple-trading-app - - stats - - token - - trading + - explorer-e2e + - simple-trading-app-e2e + - stats-e2e + - token-e2e + - trading-e2e includeFlows: description: 'Include long flows (if any)?' required: true @@ -117,7 +117,7 @@ jobs: run: yarn install - name: Run Cypress tests - run: yarn nx run-many --target=e2e --project=${{inputs.project}} --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --browser chrome + run: yarn nx run ${{inputs.project}}:e2e --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --browser chrome env: CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }} CYPRESS_SLACK_WEBHOOK: ${{ secrets.CYPRESS_SLACK_WEBHOOK }} diff --git a/apps/token-e2e/cypress.config.js b/apps/token-e2e/cypress.config.js index 9e307e379..56171865b 100644 --- a/apps/token-e2e/cypress.config.js +++ b/apps/token-e2e/cypress.config.js @@ -6,12 +6,14 @@ module.exports = defineConfig({ baseUrl: 'http://localhost:4210', fileServerFolder: '.', fixturesFolder: false, - specPattern: [ - './src/integration/view/**/*.cy.{js,jsx,ts,tsx}', - process.env.CYPRESS_INCLUDE_FLOWS - ? './src/integration/flow/**/*.cy.{js,jsx,ts,tsx}' - : '', - ], + specPattern: + process.env.CYPRESS_INCLUDE_FLOWS === 'true' || + process.env.CYPRESS_INCLUDE_FLOWS === true + ? [ + './src/integration/view/**/*.cy.{js,jsx,ts,tsx}', + './src/integration/flow/**/*.cy.{js,jsx,ts,tsx}', + ] + : ['./src/integration/view/**/*.cy.{js,jsx,ts,tsx}'], modifyObstructiveCode: false, supportFile: './src/support/index.ts', video: true,