Giter VIP home page Giter VIP logo

astar-apps's Introduction

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 be 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

BASE_URL='http://localhost:8080' 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 testing : (assets)-transactions.spec.ts
    • EVM Transaction e2e testing : (assets)-transactions-evm.spec.ts

astar-apps's People

Contributors

impelcrypto avatar bobo-k2 avatar sirius651 avatar gluneau avatar niklabh avatar hoonsubin avatar dependabot[bot] avatar ayumitk avatar ehsanhajian avatar kahonnohak avatar gunit2481 avatar kingsleydon avatar hqwangningbo avatar pedroapfilho avatar rares-munteanu-gl avatar guigou12358 avatar guoyizhang avatar hugh-onf avatar josip-simunovic88 avatar radiumb avatar yashirooooo avatar bld75 avatar ahmetzturk avatar alex-nax avatar uandysmith avatar ashutoshvarma avatar bvotteler avatar juminstock avatar mrshiposha avatar kvhnuke avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.