Skip to main contentA 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
- Go to the login page
- Enter username and password
- Click the login button
- Verify you’re redirected to the dashboard
Example 2: Contact form test
- Navigate to the contact page
- Fill in name, email, and message
- Click submit
- 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