Skip to content

Testing ​

This guide explains how to run Cobalt's end-to-end (E2E) test suite locally.

Requirements ​

Operating system ​

The following operating systems are supported. Other distributions are not officially supported and may not work or may require manual adjustments to the installer.

OSSupported versions
Ubuntu22.04 LTS or newer
Debian13 (Trixie) or newer

npm ​

Required for installing Playwright.

bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
\. "$HOME/.nvm/nvm.sh"
nvm install 24
bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
\. "$HOME/.nvm/nvm.sh"
nvm install 24

Quick start ​

WARNING

Make sure the dashboard and all required containers are running before executing tests.

  1. Navigate to the tests directory:
bash
cd tests
  1. Install dependencies:
bash
npm install
  1. Create your .env file from the example:
bash
cp .env.example .env
  1. Fill in the .env file with your current login credentials and the link from your dashboard.

  2. Run all E2E tests:

bash
npm run test:e2e