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 be familiar with Playwright generator by running codegen
- Run the following
- debug each file individually
yarn playwright tests/dappstaking-transactions.spec.ts
Running test in CI mode
-
Start the portal (the portal should run on http://localhost:8080)
-
Run the following
BASE_URL='http://localhost:8080' yarn playwright:ciWrite test cases
- Create test file or added test cases on existing file in /tests
- Simple UI e2e testing : (assets).spec.ts
- Native Transaction e2e testing : (assets)-transactions.spec.ts
- EVM Transaction e2e testing : (assets)-transactions-evm.spec.ts
