testing

Runs browser-automated test plans against live Lovable Preview apps and keeps them synced with code changes.

20|5|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/10K-Digital/lovable-agent-skills --skill testing-10k-digital
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/10K-Digital/lovable-agent-skills/tree/main/plugins/lovable/skills/testing
Command: npx skills add https://github.com/10K-Digital/lovable-agent-skills --skill testing-10k-digital

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Lovable projects lack automated end-to-end verification of the running app, so regressions and broken flows are only discovered manually after deployment. This skill tests the live Preview app via browser automation and keeps test plans synchronized as features are added. ## Core Features & Use Cases - Test Wizard: Scans the codebase (routes, forms, edge functions, roles) and generates standardized test plans, profiles, and a workspace under .lovable-agent/tests/. - Preview Test Execution: Runs test plans against the live Lovable Preview using tokenized URLs or a logged-in browser session, recording pass/fail results with console and network diagnostics. - Test Resync & Maintenance: Detects coverage gaps by diffing the codebase against the last synced commit, and suggests new or updated plans after each feature or deploy. - Use Case: After auto-deploying a new invite-team-member feature, run the smoke suite in Preview and get a report showing a failing step caused by a missing RESEND_API_KEY secret, with a suggested fix. ## Quick Start Ask the agent to run the Lovable test wizard to scan my project and create preview test plans, then execute the smoke suite against my Preview app.

Frequently Asked Questions about testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test a Lovable app in Preview mode automatically?

Run the test wizard to scan your codebase and generate test plans, then execute them with the test-run command. The skill navigates to your Preview URL via browser automation, performs each step, and verifies expected UI, console, and network results.

How do I get a Lovable preview URL with an access token?

Open your Lovable project in preview mode and click the arrow icon next to the preview address bar to open it in a new tab. Copy the full URL containing the __lovable_token parameter; the token is valid for 7 days and is stored gitignored in preview-token.local.

Does preview testing work without being logged in to Lovable?

Yes, tokenized preview URLs work without a login session. If the token expires and you are not logged in, the skill prompts for a fresh URL or falls back to a manual test checklist so testing never blocks.

What happens when the Lovable preview token expires?

Tokens expire after 7 days. The skill checks expiry before each run, silently tries a logged-in browser session first, and otherwise prompts you to paste a fresh preview URL, which it parses and stores securely.

How are test plans kept in sync with new features?

The test-sync command diffs the codebase against the last synced commit recorded in config.json, maps changed files to plan coverage paths, and suggests new or updated plans. After each feature, affected plans can run automatically.

Can automated tests run destructive actions like real payments?

No. Steps involving real payments, bulk emails, or destructive operations on non-test data are marked [MANUAL] in the plan format. Automation stops at those steps and asks the user, or marks the plan blocked when unattended.