JSPM

  • Created
  • Published
  • Downloads 39498
  • Score
    100M100P100Q145686F
  • License Apache-2.0

E2E mobile app testing done right, with the Playwright test runner

Package Exports

  • appwright
  • appwright/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (appwright) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Appwright

NPM Version

Appwright is a test runner for e2e testing of mobile apps, based on Playwright and Appium.

Usage

Install

npm i --save-dev appwright
touch appwright.config.ts

Configure

// In appwright.config.ts
import { defineConfig, Platform } from "appwright";
export default defineConfig({
  projects: [
    {
      name: "android",
      use: {
        platform: Platform.ANDROID,
        device: {
          provider: "emulator",
          name: "Google Pixel 8",
          osVersion: "14.0",
        },
        buildPath: "app-release.apk",
      },
    },
  ],
});

Run tests

Appwright currently runs tests on BrowserStack only.

npx appwright test --project android
npx appwright test --project ios

Docs