Skip to main content

Overview

The Preview Editor combines test authoring with live execution feedback, allowing you to validate test steps as you write them. The Spursor (Spur Cursor) AI agent executes your instructions in a live browser environment, providing immediate visibility into how your tests perform.

Getting Started

1

Open Preview Editor

Navigate to the test you want to edit and click Open in Preview Editor.
Openpe
2

Configure Viewport

Select the viewport for your test session - either Desktop or Mobile. This determines the screen dimensions the Spursor agent will use during test execution.You can reference the Viewports for detailed information on viewport configurations.
Screenshot2026 02 04at12 56 28PM
3

Enter the Editing Environment

The Preview Editor launches an interactive test authoring environment with multiple capabilities accessible through different tabs and panels.
Screenshot2026 02 04at12 57 20PM
This section onsists of several key components that work together to provide comprehensive test authoring and debugging capabilities.
Screenshot2026 02 04at1 38 56PM
Write and execute test steps in the left panel. The editor supports adding, editing, and running individual steps or complete test sequences.
Screenshot2026 02 04at1 44 12PM
Configure test dependencies and tear down tests to control test execution order. The Dependencies panel allows you to establish relationships between tests.
Screenshot2026 02 04at3 44 21PM
Configure test metadata and expected outcomes in the Details panel. This section allows you to add descriptive information about your test.
Screenshot2026 02 04at3 43 45PM
Watch the Spursor AI agent execute your test steps in real-time within a live browser environment. The sandbox displays exactly what the agent sees and does during test execution.
User interactions in this sandbox are not recorded. Any changes made by the user in this sandbox browser will not be incorporated into testing.
Screenshot2026 02 04at2 42 56PM
Preview Mode allows you to review the Spursor agent’s planned actions before execution.
Previewmode
View the Spursor agent’s thought process when evaluating and executing test steps. Agent logs provide insight into how Spursor interprets your instructions and decides on actions.
Screenshot2026 02 04at3 26 31PM
View real-time console logs generated when running tests, including warnings, errors, and debug messages from the browser.
Screenshot2026 02 04at3 28 52PM
View real-time network activity during test execution, including API requests, response status codes, methods, and domains.
Screenshot2026 02 04at3 34 07PM
View extracted or generated values saved in the testing environment. These values can be accessed and used in subsequent test steps.
Screenshot2026 02 04at3 37 48PM
Access page and window dimensions to aid test step creation. View current scroll position, page dimensions, and window size. You can also scroll within the Spursor Sandbox and access the page position directly.
Screenshot2026 02 04at3 20 08PM
View technical session information and connection status for the test execution environment. The Admin tab displays session initialization details, WebSocket connections, and other backend communications.
Screenshot2026 02 04at3 20 39PM
View the complete action history for your test session. The Actions tab displays all actions performed by the Spursor agent during test execution.
Screenshot2026 02 04at3 21 18PM

Key Benefits

Resolving Test Step Issues

Preview Editor allows you to walk through the agent’s exact execution process, identifying and resolving issues with test steps in real-time.

Transparency in AI Decision Making

Provides complete visibility into how Spursor interprets and executes your instructions, helping you understand the AI agent’s decision-making process.

Prompting Practice & Learning

By observing how the AI responds to different instructions in real-time, you can improve your prompting skills and learn the most effective ways to communicate with the agent.

Quality Assurance

Preview Mode ensures that each step executes exactly as intended, reducing errors and improving test reliability. You maintain full control over the agent’s actions before execution.