Den test instructions

From different-ai/the-factory · View interactive version

Den test instructions is an AI agent skill from the GitHub repository different-ai/the-factory. Boot up the Den dev stack and the OpenWork desktop app locally, then test common flows like sign-in, dashboard, and telemetry. Triggers when user mentions: - "test den" - "test the app locally" - "boot up den" - "den dev flow" - "test sign in

How to use this skill

Skill file

Den Local Test Instructions

Prerequisites

1. Start the Den stack

From the OpenWork repo root (_repos/openwork):

pnpm dev:den

This starts MySQL (via Docker), runs schema migrations, and launches three services:

Wait for den-api listening on 8788 and Ready in from den-web before proceeding.

2. Seed the demo organization

In a separate terminal, from the same repo root:

pnpm dev:den:seed-demo

This creates:

3. Sign in via browser

  1. Open http://localhost:3005
  2. Click "Sign in"
  3. Enter alex@acme.test and OpenWorkDemo123!
  4. The OTP verification code is printed to the den-api terminal logs:

```

[auth] dev verification email payload for alex@acme.test: {"verificationCode":"832998"}

```

  1. Enter the code. You land on the dashboard.

4. Start the OpenWork desktop app pointing at local Den

In a separate terminal, from the OpenWork repo root:

VITE_DEN_BASE_URL=http://localhost:3005 pnpm dev

This starts the desktop app with the Den connection pointed at your local stack instead of https://app.openworklabs.com.

Available env vars:

5. Common test flows

Sign-in flow

  1. Open the app or http://localhost:3005
  2. Sign in with alex@acme.test / OpenWorkDemo123!
  3. Check the den-api terminal for the OTP code
  4. Verify you land on the dashboard with "Acme Robotics" in the sidebar

Dashboard

  1. After sign-in, verify the dashboard shows org member count and pending invites
  2. Navigate sidebar links: Members, Skill Hubs, Plugins, Billing, Org Settings
  3. Verify each page loads without errors

Telemetry (if the telemetry branch is active)

  1. Check the dashboard home shows "OpenWork users" and "Pending invites" from real org data
  2. Open the enterprise preview section to see the usage insights template
  3. Verify GET /api/den/v1/telemetry/adoption returns real data:

```bash

curl -s http://localhost:3005/api/den/v1/telemetry/adoption -H "Cookie: <session-cookie>" | jq

```

Chrome MCP verification

When verifying UI flows with Chrome MCP:

  1. Navigate to the page under test
  2. Use chrome-devtools_take_snapshot to inspect the accessibility tree
  3. Use chrome-devtools_take_screenshot to capture visual evidence
  4. Check chrome-devtools_list_console_messages for errors
  5. Check chrome-devtools_list_network_requests for failed API calls

6. Teardown

Stop the dev stack with Ctrl+C in the terminal running pnpm dev:den.

To stop MySQL and clean up Docker:

pnpm dev:den:mysql:down

Common Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.