From 01ab4e5f2fa3f9218dc1966b290aeb53070cf442 Mon Sep 17 00:00:00 2001 From: Fraz Arshad Date: Tue, 26 Mar 2024 14:08:19 +0500 Subject: [PATCH 1/2] ci: added scheduled run to github workflow --- .github/workflows/e2e.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 90b5a941..680fa7ff 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -7,6 +7,8 @@ on: pull_request: branches: - main + schedule: + - cron: '0 0 * * *' jobs: e2e: From cb982fb4b619d27e517da66aa2a4953e6cc7a230 Mon Sep 17 00:00:00 2001 From: Fraz Arshad Date: Tue, 26 Mar 2024 14:08:59 +0500 Subject: [PATCH 2/2] test: removed setupWallet to prevent setting up twice --- test/e2e/specs/test.spec.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/e2e/specs/test.spec.js b/test/e2e/specs/test.spec.js index 34fc67a1..e4545347 100644 --- a/test/e2e/specs/test.spec.js +++ b/test/e2e/specs/test.spec.js @@ -1,15 +1,11 @@ /* eslint-disable ui-testing/no-disabled-tests */ describe('Wallet App Test Cases', () => { context('Test commands', () => { - it(`should setup Keplr account and connect with Agoric Chain`, () => { - cy.setupWallet().then((setupFinished) => { - expect(setupFinished).to.be.true; + it(`should connect with Agoric Chain`, () => { + cy.visit('/'); - cy.visit('/'); - - cy.acceptAccess().then((taskCompleted) => { - expect(taskCompleted).to.be.true; - }); + cy.acceptAccess().then((taskCompleted) => { + expect(taskCompleted).to.be.true; }); });