8000 Gateway: Integration Playwright Test Stability. by sk-enya · Pull Request #555 · bobanetwork/gateway · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Gateway: Integration Playwright Test Stability. #555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 63 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
b2c89b2
change:
sk-enya May 26, 2024
4888a31
added testid to label of address
sk-enya May 26, 2024
63b24e8
change:
sk-enya May 29, 2024
5fdca79
change: test spanshot fixes with fix for workflow dispatch.
sk-enya May 29, 2024
32b0242
change:
sk-enya May 29, 2024
7610db9
change:
sk-enya May 29, 2024
1e2d350
change:
sk-enya May 30, 2024
0004d89
- written integration test for deposit eth on sepolia.
sk-enya May 30, 2024
b9028cf
change:
sk-enya May 30, 2024
32beef1
update success modal design
sk-enya May 30, 2024
eefb264
modal fixes
sk-enya May 30, 2024
91fdeab
test timeout fixes to wait and pass the test for all scenario
sk-enya May 30, 2024
0d59b25
updated spec file name
sk-enya May 30, 2024
44891a3
change:
sk-enya May 30, 2024
750bbc6
change: removed lookup price reducer, action, selector.
sk-enya May 30, 2024
975ebd4
cleanup import
sk-enya May 30, 2024
4c8a0ef
change:
sk-enya May 30, 2024
90c892b
change:
sk-enya May 30, 2024
9ba163a
change:
sk-enya May 31, 2024
4cb3432
moove common code to separate functions
sk-enya May 31, 2024
6f158dc
change:
sk-enya May 31, 2024
9feff6d
change:
sk-enya May 31, 2024
153625b
- update snapshosts unit test
sk-enya May 31, 2024
224c474
fix broken test issues of timeout.
sk-enya Jun 1, 2024
ecbd3d7
change:
sk-enya Jun 1, 2024
8210a62
change: light bridge deposit.
sk-enya Jun 1, 2024
f873503
Merge branch 'main' of github.com-enya:bobanetwork/gateway into featu…
sk-enya Jun 4, 2024
28d498b
Merge branch 'main' of github.com-enya:bobanetwork/gateway into featu…
sk-enya Jul 5, 2024
4796eb5
updated yarn lock
sk-enya Jul 5, 2024
6675384
updated the readme & token actions
sk-enya Jul 13, 2024
054ce0c
e2e: fixes for light bridge deposit / withdrawal
sk-enya Jul 13, 2024
fdb46d9
ignore skip test.
sk-enya Jul 13, 2024
c1fb4c6
change: updated e2e yml and clean up cypress code.
sk-enya Jul 13, 2024
a78658d
updated pipeline to build on fly.
sk-enya Jul 13, 2024
3bbff14
updated labeler path
sk-enya Jul 13, 2024
517ffa0
updated broken action
sk-enya Jul 13, 2024
f69d99b
change: cleanup git actions.
sk-enya Jul 13, 2024
2e3fc1c
change: updated playwright install browser.
sk-enya Jul 13, 2024
bdabaaa
fix duplicated server setup for Xvfb
sk-enya Jul 13, 2024
2464e52
fix duplicated server setup for Xvfb
sk-enya Jul 13, 2024
05c144d
change: updated pull request labeler.
sk-enya Jul 13, 2024
7669172
added chown root
sk-enya Jul 13, 2024
9356c62
e2e test fixes.
sk-enya Jul 13, 2024
fb17e48
e2e test fixes.
sk-enya Jul 13, 2024
2dbebe6
change:
sk-enya Jul 14, 2024
f2dd3f8
change: labeler files
sk-enya Jul 14, 2024
274eb14
change: updated labeler names
sk-enya Jul 14, 2024
ea3645e
updated viewport and desktop chrome with only 1 test trial
sk-enya Jul 14, 2024
e926530
override forbid only for test
sk-enya Jul 14, 2024
c03d783
removed only and enable all the specs
sk-enya Jul 15, 2024
e38dc99
spec rentension policy
sk-enya Jul 15, 2024
bdd6f09
updated yml with removal of xvfb server
sk-enya Jul 15, 2024
1b26294
updated the playwright config and frozen package for installation.
sk-enya Jul 15, 2024
9bfd4cf
fixes installation
sk-enya Jul 15, 2024
2fa2ac6
reverted the playwright installation.
sk-enya Jul 15, 2024
302c3ed
only chromium and single deps.
sk-enya Jul 15, 2024
7487b2e
change in config
sk-enya Jul 16, 2024
aeb5a14
updated config:
sk-enya Jul 16, 2024
8cbaac2
change: updated xvfb, fluxbox
sk-enya Jul 16, 2024
1493fcc
skip on CI
sk-enya Jul 16, 2024
100f2b8
enable forbid only and running all specs.
sk-enya Jul 16, 2024
6f586d1
confirm button resolving fixes.
sk-enya Jul 16, 2024
3a91a88
git workflow name change
sk-enya Jul 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,4 @@ REACT_APP_GATEWAY_DATA_BRANCH=
##### WebWallet #####
#####################
# to disable the walletConnect set below flat to 1.
# REACT_APP_DISABLE_WALLETCONNECT=1

######################
#### Cypress Test ####
######################

#Debuging port for cypress as 3000 will be busy to run the application.
CYPRESS_REMOTE_DEBUGGING_PORT=9222
#Starting network for wallet.
NETWORK_NAME=sepolia
#Secret phrase to connect to metamask account.
SECRET_WORDS=
#Transaction hash for account to validate history page.
CYPRESS_TEST_TX_HASH=
# To enable the video output of cypres test
CYPRESS_ENABLE_VIDEO=
# REACT_APP_DISABLE_WALLETCONNECT=1
3 changes: 0 additions & 3 deletions .github/label-requires-reviews.yml

This file was deleted.

32 changes: 7 additions & 25 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
---
2-reviewers:
- '.github/**/*'
- './*'
- changed-files:
- any-glob-to-any-file: ./**

M-ci:
- any: ['.github/**/*']
E2E-Test:
- changed-files:
- any-glob-to-any-file: ./e2e-tests/**

M-l2geth:
- any: ['l2geth/**/*']

M-integration:
- any: ['integration-tests/**/*']

M-batch-submitter:
- any: ['packages/batch-submitter/**/*']

M-contracts:
- any: ['packages/contracts/**/*']

M-core-utils:
- any: ['packages/core-utils/**/*']

M-dtl:
- any: ['packages/data-transport-layer/**/*']

M-ops:
- any: ['ops/**/*']
release:
- base-branch: 'master'
5 changes: 0 additions & 5 deletions .github/pull.yml

This file was deleted.

85 changes: 47 additions & 38 deletions .github/workflows/end2end-test.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,74 @@
name: End2End test (non-headless)
permissions: read-all
name: Integration Test

on:
on:
push:
branches: ['main', 'master']
pull_request:

jobs:
End-to-End-Test:
name: Integration Test
e2e-test:
name: Playwright Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/checkout@v4
- name: Setup Node 16
uses: actions/setup-node@v4
with:
node-version: 16.17.0
cache: 'yarn'
- name: Setup Cache Node Modules, Cypress
id: cache-node-modules
uses: actions/cache@v3
with:
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Install dependencies
run: yarn
- uses: actions/cache/save@v3
if: ${{steps.cache-node-modules.outputs.cache-hit != 'true'}}
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install linux deps
- name: Install linux deps (xvfb / fluxbox)
run: |
sudo apt-get install --no-install-recommends -y \
fluxbox \
xvfb
- name: Run E2E Test (non-headless)
- name: Install yarn dependencies
run: yarn
- name: Build Gateway Project
working-directory: ./
run: |
Xvfb :0 -screen 0 1024x768x24 -listen tcp -ac &
fluxbox & yarn test:integration
yarn && yarn build:prod
env:
REACT_APP_POLL_INTERVAL: 15000
REACT_APP_GAS_POLL_INTERVAL: 30000
SKIP_PREFLIGHT_CHECK: true
REACT_APP_WALLET_VERSION: 0.14.8
REACT_APP_ENV: prod
REACT_APP_STATUS: normal
CYPRESS_REMOTE_DEBUGGING_PORT: 9222
NETWORK_NAME: 'sepolia'
REACT_APP_WALLET_VERSION: 0.14.9
REACT_APP_ENV: local
REACT_APP_ENABLE_ANCHORAGE: true
REACT_APP_WC_PROJECT_ID: ${{secrets.WC_PROJECT_ID}}
REACT_APP_GA4_MEASUREMENT_ID: ${{secrets.GA4_MEASUREMENT_ID}}
REACT_APP_SENTRY_DSN: ${{secrets.SENTRY_DSN}}
- name: Setup Node 18
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install PNPM deps e2e-tests
working-directory: ./e2e-tests
run: |
npm install -g pnpm && pnpm install --frozen-lockfile && npx playwright install
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run e2e test (headful)
working-directory: ./e2e-tests
run: |
Xvfb :0 -screen 0 1024x768x24 -listen tcp -ac &
fluxbox &
pnpm start:server &
pnpm test
env:
PASSWORD: ${{secrets.PASSWORD}}
NETWORK: 'sepolia'
SECRET_WORDS: ${{secrets.SECRET_WORDS}}
METAMASK_VERSION: 10.25.0
DISPLAY: :0.0
CYPRESS_ENABLE_VIDEO: true
- name: Upload Archive e2e artifacts
uses: actions/upload-artifact@v4
if: always()
if: ${{ !cancelled() }}
with:
name: e2e-archive
name: e2e-reports
retention-days: 3
path: |
./cypress/videos/
./cypress/screenshots/
./e2e-tests/videos/
./e2e-tests/playwright-report/
./e2e-tests/test-results/
continue-on-error: true
16 changes: 0 additions & 16 deletions .github/workflows/label-requires-reviews.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: "Pull Request Labeler"
on:
- pull_request_target
Expand All @@ -10,4 +9,4 @@ jobs:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml
configuration-path: ../.github/labeler.yml
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/cypress/videos
/cypress/screenshots

.DS_Store
node_modules
results
Expand Down
2 changes: 1 addition & 1 deletion buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ phases:

build:
commands:
- REACT_APP_WALLET_VERSION=$(git rev-parse --short HEAD) yarn build:prod
- REACT_APP_WALLET_VERSION=$(git rev-parse --short HEAD) yarn build

artifacts:
# include all files required to run the application
Expand Down
21 changes: 0 additions & 21 deletions cypress.config.ts

This file was deleted.

3 changes: 0 additions & 3 deletions cypress/.gitignore

This file was deleted.

Loading
Loading
0