Coder Social home page Coder Social logo

synpress-svelte-kit's Introduction

Playwright + Sveltekit + Synpress + Web3Onboard example

Running the project

If you're here I am assuming you know what all three things I am using in this example, if not then probably you can go through thier docs:

# clone the project
git clone <insert_git_url>

# install the dependencies
npm i # or yarn install or pnpm install

Running the tests

Before running the tests you have to install the chromium browser for playwright to use.

# install the browser
npm run install:chromium

and, voila then you can run your tests by using this script

# creates a [wallet cache](https://synpress.io/docs/guides/wallet-cache) and runs the tests
npm run test

Note: for the initial wallet connection you have to manually click on web3onboard popup to connect your wallet. This example is not perfect, but gets the job done ๐Ÿคทโ€โ™‚๏ธ

Configuring the test server

Currently the tests are run in such a way that first it creates a build for your project, and then serves that build to run the tests. If you want to change the serving behavior then you can change the playwright.config.ts.

const config: PlaywrightTestConfig = {
    ...
    webServer: {
        command: 'npm run build && npm run preview', // change this to the command you want to run for serving your app
        port: 4173 // update the port accordingly
    },
    ...
};

synpress-svelte-kit's People

Contributors

souvikmishra avatar

Watchers

 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.