A test is an automated way to check that your application works correctly. Think of it as a robot that follows instructions to click buttons, fill forms, and verify that everything behaves as expected.

How tests work

Tests have two main parts: Actions - What to do
  • Click buttons
  • Fill out forms
  • Navigate between pages
  • Upload files
Verifications - What to check
  • Did the right page load?
  • Is the success message showing?
  • Did the data save correctly?

Simple examples

Example 1: Login test
  1. Go to the login page
  2. Enter username and password
  3. Click the login button
  4. Verify you’re redirected to the dashboard
Example 2: Contact form test
  1. Navigate to the contact page
  2. Fill in name, email, and message
  3. Click submit
  4. Check that a success message appears

Best practices

  • Start simple - Test the most important user flows first
  • Be specific - Clearly describe what you’re testing and why
  • Test real scenarios - Use realistic data and user behaviors
  • Keep tests focused - Each test should verify one main thing

Getting started

You can create tests by:
  • Recording - Let Keystone watch you use your app
  • Describing - Tell Keystone what you want to test in plain language
  • Building - Use our visual interface to construct tests step by step