Verify actions allow you to validate the state and content of your application, ensuring that elements are present, content is correct, and states are as expected.
1

Type Verify

Begin by typing Verify to author a verify action.
2

Write Your Assertion

Note what element/state you want to check.
3

Execute Code and View Results

After executing your verify action, you can view the result of your assertion.

Basic Usage

Common Testing Flows

Best Practices

  1. Be Specific: Use clear, specific selectors and expected values
  2. Timing: Add appropriate waits before verifications when needed
  3. Error Messages: Include meaningful error messages for failures
  4. State Management: Verify important state changes after actions
  5. Multiple Conditions: Combine verifications when needed

example of combined verifications

  1. Dynamic Content: Use flexible matching when appropriate

example of flexible matching

  1. Complex Validation: Use JavaScript for advanced verification

example of javascript for verification

Troubleshooting

When a verification fails, Spur provides:
  • Detailed error messages
  • Screenshots of the failure state
  • DOM state at time of failure
  • Console logs and network requests
This information helps quickly identify and fix issues in your tests.