Skip to content

Test Cases — Generate Playwright, Gherkin & POM Tests

InsightJet generates test cases from ticket runs, crawled screens, component discovery and plain-language requests in the chat. You can also create, edit, organize, and export them manually.

Every test case is available in five output formats:

Full TypeScript test scripts ready to run:

test('should submit contact form', async ({ page }) => {
await page.goto('https://example.com/contact');
await page.fill('[data-test="name-input"]', 'John Doe');
await page.fill('[data-test="email-input"]', 'john@example.com');
await page.click('[data-test="submit-button"]');
await expect(page.locator('.success-message')).toBeVisible();
});

Test cases can come from four sources:

Ticket runs

A goal that passed in a ticket run can be kept with Save as Test Case, built from the steps that were recorded.

States tab

Select components on a crawled screen and click Generate test cases for selected. These are grouped by the page they came from.

Component Discovery

Interactive discovery captures real DOM mutations — what changes when you click a button, fill a form, or hover an element. Test cases generated from discovery data include precise selectors and expected outcomes.

Natural Language

Describe what you want to test in plain English via the AI Chat, and InsightJet generates structured test cases. You can also paste Jira stories or requirements.


Navigate to the Test Cases tab in the workspace. You’ll see three view modes:

A flat list of all test cases with search, filtering, and sorting:

  • Search by name or description
  • Filter by priority (High, Medium, Low)
  • Sort by created date, name, or priority

Test cases automatically organized by the source URL/page they were generated from. Each screen group is collapsible and shows the page URL.

Your own organizational structure. Create groups like “Authentication Tests”, “Checkout Flow”, or “Smoke Tests” and assign test cases to them.


Run Component Discovery on interactive elements, then click Generate Test Cases from the discovery results.

Each test case supports inline and detail editing:

  • Name and description — click to edit inline
  • Priority — select from dropdown
  • Tags — add or remove labels
  • Code — view and copy all five formats from the detail panel

Each test case keeps its earlier versions. Open the Versions tab of a test case to see them. More actions → History lists its runs.

Duplicate any test case to create a variant — useful for testing the same flow with different data or conditions.

Individual or batch delete with confirmation. Deleting a test case also removes its execution history.


When test cases are generated from a crawl, InsightJet automatically creates groups based on the page URL (e.g., example.com/dashboard, example.com/login).

  1. Create a group — click New Group or ask the AI chat: “Create a group called Authentication Tests”
  2. Assign test cases — drag and drop, use the context menu, or ask the AI chat: “Move all login tests to the Auth group”
  3. Rename or delete — manage groups from the group header menu

Drag and drop test cases within groups to set a custom display order. The order is persisted across sessions.


Select multiple test cases using checkboxes, then use the toolbar actions:

ActionWhat it does
Batch ExecuteRun selected tests against your target URL with options for parallel execution, video recording, and stop-on-failure
DownloadExport as ZIP file in your chosen format (Playwright, Gherkin, JSON DSL, or all formats)
Commit to GitHubPush selected test cases to your connected GitHub repository in a single commit
DeleteRemove selected test cases with confirmation

Push test cases directly to a GitHub repository:

  1. Connect GitHub in Settings → Integrations → GitHub, under Publish tests
  2. Select test cases using checkboxes
  3. Choose format — Playwright, Gherkin, JSON DSL, or all formats
  4. Select repository and branch
  5. Commit — all files are created in a single commit

Files are organized by group/screen and named to prevent collisions:

tests/
dashboard/
login-flow-123.spec.ts
user-validation-124.spec.ts
checkout/
payment-workflow-125.feature

InsightJet indexes all test cases with vector embeddings for intelligent search:

  • Search by meaning: “find tests about authentication” matches test cases about login, signup, password reset — not just those with “authentication” in the name
  • Find similar tests: identify potential duplicates or related coverage
  • AI-powered organization: bulk assign to groups based on semantic similarity

Embeddings are generated automatically when test cases are created and updated in the background.


  • Run discovery first — test cases from discovery data include real selectors and DOM mutations, producing higher quality tests
  • Review selectors — InsightJet prefers data-test attributes, falling back to ARIA roles and specific classes
  • Use POM format for large applications — keeps test maintenance manageable
  • Organize by feature — create custom groups that match your team’s feature areas
  • Export early — integrate generated tests into your CI/CD pipeline via GitHub or webhook
  • Use the AI chat for bulk operations — “move all checkout tests to the Payments group” is faster than drag-and-drop for large sets