Skip to Content
DocsFeaturesBrowser Testing

Browser Testing

Create and run automated browser tests using Playwright. Define test scenarios with clicks, form fills, and assertions.

Features

Test Editor

Write tests in a simple YAML format:

name: "Login flow test" steps: - goto: "http://localhost:3000/login" - fill: "#email" value: "user@example.com" - fill: "#password" value: "password123" - click: "#login-button" - assert: "#welcome-message" contains: "Welcome"

Run Tests

Execute tests and see results:

  • Pass/fail status
  • Screenshot on failure
  • Console output
  • Execution time

Supported Actions

ActionDescription
gotoNavigate to URL
clickClick element
fillFill input field
assertAssert text content
screenshotTake screenshot

Selectors

Use standard CSS selectors:

  • ID: #login-button
  • Class: .submit-btn
  • Attribute: [type="submit"]
  • Combined: form.login input#email

Test Output

After running tests:

  • โœ… Green checkmark for passed tests
  • โŒ Red X for failed tests
  • Screenshots saved for failures
  • Detailed error messages

Use Cases

  • Regression testing
  • Smoke testing
  • User flow validation
  • Form submission testing

Tips

  • Start with simple tests
  • Test critical user flows
  • Use specific selectors
  • Add assertions to verify results
Last updated on