🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@appsemble/e2e

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsemble/e2e

End-to-end tests used for testing Appsemble apps in an existing environment.

0.33.3
latest
Source
npm
Version published
Maintainers
3
Created
Source

Appsemble End 2 End Tests

Run end 2 end tests on an Appsemble environment

GitLab CI Prettier

Table of Contents

  • Usage
  • License

Usage

To run end to end tests, run:

npm run e2e

The tests use Playwright.

After each test a video will be saved in the packages/e2e/test-results/{name-test} directory for further inspection.

The end to end tests use the following environment variables:

  • BOT_ACCOUNT_EMAIL — The email address used to login.
  • BOT_ACCOUNT_PASSWORD — The password used to login.
  • CI_MERGE_REQUEST_IID — By default tests are run against the staging environment on https://staging.appsemble.review. If this variable is specified, tests are run against the merge request review environment instead.
  • ACCESS_TOKEN — The access token of the account that's logged in.

Fixtures

Common end-to-end fixtures are defined under the fixtures directory. These are exported for other packages to use, like client apps. This can be done by installing this package and importing test or expect.

Authentication

Some fixtures call the Appsemble API using the Playwright request object. This expects you to have set an access token as environment variable with the name ACCESS_TOKEN beforehand. The easiest way to do this is by setting it in a setup step using the loginUser fixture.

auth.setup.ts

setup('authenticate', async ({ loginUser }) => {
  const accessToken = await loginUser('bot', '12345');
  process.env.ACCESS_TOKEN = accessToken;
});

Contributing

When writing end-to-end tests, have a look at the best practices to help you write solid tests.

License

LGPL-3.0-only © Appsemble

Keywords

app

FAQs

Package last updated on 27 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts