Automation Tests with Accessibility Tool using Cypress v10
This guide takes you step-by-step through the process of using TestMu AI's Accessibility Tool with Cypress v10 and above to run automated tests for your website.
NOTE: This documentation is applicable for Cypress v10 and later versions.
Prerequisites
- Your TestMu AI Username and Access key
- Setup your local machine as per your testing framework.
Step-by-Step Guide to Trigger Your Test
Step 1: Setup Your Test Suite
You can use your own project to configure and test it. For demo purposes, we are using the sample repository.
sample repo
Download or Clone the code sample from the TestMu AI GitHub repository to run your tests.
Configure the desired capabilities based on your test requirements. For example:
lambdatest-config.json
loading...
Step 2: Establish User Authentication
Now, you need to export your environment variables LT_USERNAME and LT_ACCESS_KEY that are available in the TestMu AI Profile page.
Run the below mentioned commands in your terminal to setup the CLI and the environment variables.
- Linux / MacOS
- Windows
export LT_USERNAME="undefined"
export LT_ACCESS_KEY="undefined"
set LT_USERNAME="undefined"
set LT_ACCESS_KEY="undefined"