Skip to content

Commit

Permalink
Th/update/e2e (#189) (#190)
Browse files Browse the repository at this point in the history
WDIO scripts added
  • Loading branch information
tudorgabriel committed Mar 25, 2024
1 parent bd57b81 commit 771ab70
Show file tree
Hide file tree
Showing 36 changed files with 5,570 additions and 840 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/night-e2e-workern.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: WDIO Tests
on:
schedule:
- cron: '0 20 * * *'
jobs:
Slack-Notification:
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: rtCamp/action-slack-notify@master
env:
if: always()
SLACK_ICON_EMOJI: ':robot_face:'
SLACK_USERNAME: WDIO Bot
SLACK_MESSAGE: E2E Night Tests are now running. Stay tuned for updates!
SLACK_TITLE : 'WDIO Template RUN'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
E2E-RUN:
runs-on: ubuntu-latest
needs: Slack-Notification
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Start WDIO
run: npm run wdio-smoke

31 changes: 13 additions & 18 deletions .github/workflows/pre-merge-e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Cypress Tests
on:
name: WDIO Tests
on:
pull_request:
branches: [main]
jobs:
Expand All @@ -11,28 +11,23 @@ jobs:
env:
if: always()
SLACK_ICON_EMOJI: ':robot_face:'
SLACK_USERNAME: Cypress Bot
SLACK_USERNAME: WDIO Bot
SLACK_MESSAGE: E2E tests are now running. Stay tuned for updates!
SLACK_TITLE : 'Cypress'
SLACK_TITLE : 'WDIO Template RUN'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
Cypress-Run:
E2E-RUN:
runs-on: ubuntu-latest
needs: Slack-Notification
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Cypress run
uses: cypress-io/github-action@v4
- uses: actions/setup-node@v3
with:
command: npm run cy:run

- name: Uploading artifact
uses: actions/upload-artifact@v2
if: always()
node-version: 18
- name: Run install
uses: borales/actions-yarn@v4
with:
name: cypress-execution-report
path: |
/home/runner/work/mx-template-dapp/mx-template-dapp/mochawesome-report/mochawesome.html
/home/runner/work/mx-template-dapp/mx-template-dapp/cypress/screenshots
/home/runner/work/mx-template-dapp/mx-template-dapp/cypress/videos
cmd: install
- name: Start WDIO
run: npm run wdio-smoke

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/coverage
screenshots
videos
wdio/node_modules

# production
/build
Expand Down
27 changes: 0 additions & 27 deletions cypress.config.ts

This file was deleted.

4 changes: 0 additions & 4 deletions cypress/assets/globalData.ts

This file was deleted.

1 change: 0 additions & 1 deletion cypress/assets/index.ts

This file was deleted.

19 changes: 0 additions & 19 deletions cypress/assets/testKeystore.json

This file was deleted.

47 changes: 0 additions & 47 deletions cypress/constants/enums.ts

This file was deleted.

1 change: 0 additions & 1 deletion cypress/constants/globalLinks.ts

This file was deleted.

25 changes: 0 additions & 25 deletions cypress/e2e/BatchTransactions/BatchTransactions.cy.ts

This file was deleted.

23 changes: 0 additions & 23 deletions cypress/e2e/BatchTransactions/cancelBatchTransactions.cy.ts

This file was deleted.

33 changes: 0 additions & 33 deletions cypress/e2e/BatchTransactions/helpers.ts

This file was deleted.

48 changes: 0 additions & 48 deletions cypress/e2e/SCTransactions/SCActions.ts

This file was deleted.

45 changes: 0 additions & 45 deletions cypress/e2e/SCTransactions/SCTransaction.cy.ts

This file was deleted.

20 changes: 0 additions & 20 deletions cypress/e2e/SCTransactions/SCTransactionData.ts

This file was deleted.

Loading

0 comments on commit 771ab70

Please sign in to comment.