From f51ae0936813c11681ca028469887679273f8d33 Mon Sep 17 00:00:00 2001 From: pivi Date: Mon, 6 Nov 2023 10:07:03 +0100 Subject: [PATCH] COnfigure Synpress Ci --- .github/workflows/test.yml | 20 +++++++++++++++++++- cypress/e2e/login.spec.ts | 4 +--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c920da8e..e4385294 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: pull_request: jobs: - test: + test-build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -18,3 +18,21 @@ jobs: run: npm ci - name: build run: npm run build + + test-synpress-e2e: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: "npm" + - name: Install dependencies + run: npm ci + - name: Set Environment Variables + run: | + echo "NETWORK_NAME=mainnet" >> $GITHUB_ENV + echo "SECRET_WORDS="blade blade harbor surface since fossil say police pool ribbon degree endorse"" >> $GITHUB_ENV + - name: synpress-e2e + run: npm run synpress + diff --git a/cypress/e2e/login.spec.ts b/cypress/e2e/login.spec.ts index 9aacb1d7..a56f84be 100644 --- a/cypress/e2e/login.spec.ts +++ b/cypress/e2e/login.spec.ts @@ -1,6 +1,4 @@ -//TODO: add CI testing - -describe('Bridge | Connect | MestaMask | Connect And Switch', () => { +describe('Bridge | Connect | MestaMask | Connect', () => { afterEach(() => { cy.disconnectMetamaskWalletFromDapp(); });