Files
onyx/web
..
2024-12-02 01:58:28 +00:00
2025-10-23 10:12:55 -07:00
2025-11-08 10:36:14 -08:00
2025-11-08 10:36:14 -08:00
2025-04-15 23:35:13 +00:00
2025-02-09 23:09:40 +00:00
2025-11-07 18:10:01 -08:00
2024-11-03 23:57:11 +00:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Install node / npm: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm Install all dependencies: npm i

Then, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

Note: if you are having problems accessing the ^, try setting the WEB_DOMAIN env variable to http://127.0.0.1:3000 and accessing it there.

Testing

This testing process will reset your application into a clean state. Don't run these tests if you don't want to do this!

Bring up the entire application.

  1. Install playwright dependencies
npx playwright install
  1. Reset the instance
export PYTEST_IGNORE_SKIP=true
pytest -s tests/integration/tests/playwright/test_playwright.py

If you don't want to reset your local instance, you can still run playwright tests with SKIP_AUTH=true. This is convenient but slightly different from what happens in CI so tests might pass locally and fail in CI.

SKIP_AUTH=true npx playwright test create_and_edit_assistant.spec.ts --project=no-auth
  1. Run playwright
cd web
npx playwright test

To run a single test:

npx playwright test landing-page.spec.ts

If running locally, interactive options can help you see exactly what is happening in the test.

npx playwright test --ui
npx playwright test --headed
  1. Inspect results

By default, playwright.config.ts is configured to output the results to:

web/test-results
  1. Upload results to Chromatic (Optional)

This step would normally not be run by third party developers, but first party devs may use this for local troubleshooting and testing.

cd web
npx chromatic --playwright --project-token={your token here}