This directory contains end-to-end tests for ArcadeDB Studio using Playwright.
-
Install dependencies:
npm install
-
Install Playwright browsers:
npx playwright install
- ArcadeDB server running on
http://localhost:2480 - Server configured with username:
rootand password:playwithdata - Beer database with sample data available
# Run tests with automatic server management
npm run test:local
# Run tests in headed mode (visible browser)
npm run test:headed
# Debug tests
npm run test:debug# Install browsers for CI
npm run install-browsers
# Run tests (assumes ArcadeDB server is already running)
npm testNote: In CI, the tests include a global setup that validates server connectivity before running tests. This helps identify server startup issues early.
tests/create-database.spec.ts- Tests database creation functionalitytests/query-beer-database.spec.ts- Tests Beer database querying and graph visualization
playwright.config.ts- Playwright configuration with CI/local mode supportpackage.json- Project dependencies and scripts
The tests are configured to work in GitHub Actions CI:
- Uses JUnit reporter for test result reporting
- Assumes external server management (no webServer configuration)
- Headless mode with failure screenshots and videos
- Generates test artifacts for debugging failures