Skip to content

Latest commit

 

History

History
83 lines (55 loc) · 2.48 KB

README.md

File metadata and controls

83 lines (55 loc) · 2.48 KB

astar-cover

License
Twitter URL Twitter URL YouTube Discord Telegram Medium

Astar Portal

Astar Portal App - the application for using everything that Astar Network offers. This project is made with Vue 3 + TypeScript + Quasar.

Usage

Ensure that you have Yarn and Node.js 18.x.

# install the dependencies
yarn

# run the local dev page
yarn dev

# build the project
yarn build

E2E Testing

For E2E testing, we utilize chopsticks and playwright to mandatorily write test cases that test all of business logic.

Setup chopsticks

npx @acala-network/chopsticks@latest xcm -p=tests/chopsticks/astar.yml -p=tests/chopsticks/acala.yml -r=tests/chopsticks/polkadot.yml

Running tests locally in debug mode

  • Start the portal (the portal should run on http://localhost:8080)

  • You need to familiar with Playwright generator by running codegen

yarn playwright:codegen
  • Run the following
yarn playwright
  • debug each file individually
yarn playwright tests/dappstaking-transactions.spec.ts

Running test in CI mode

yarn playwright:ci

Write test cases

  • Create test file or added test cases on existing file in /tests
    • Simple UI e2e testing : (assets).spec.ts
    • Native Transaction e2e teting : (assets)-transactions.spec.ts
    • EVM Transaction e2e testing : (assets)-transactions-evm.spec.ts