Skip to content

LambdaTest/cypress-example-kitchensink

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

952 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Run Cypress Tests on TestMu AI (Formerly LambdaTest)

Made by TestMu AI Community

Getting Started

TestMu AI (Formerly LambdaTest) is the world's first full-stack AI Agentic Quality Engineering platform that empowers teams to test intelligently, smarter, and ship faster. Built for scale, it offers a full-stack testing cloud with 10K+ real devices and 3,000+ browsers. With AI-native test management, MCP servers, and agent-based automation, TestMu AI supports Selenium, Appium, Playwright, and all major frameworks.

With TestMu AI (Formerly LambdaTest), you can run Cypress Tests across real browsers and operating systems.

Prerequisites

  • Node.js and npm (latest stable)
  • A TestMu AI (Formerly LambdaTest) account with your username and access key

Prerequisites

  • Node.js and npm (latest stable)
  • A TestMu AI (Formerly LambdaTest) account with your username and access key

Prerequisites

  • Node.js and npm (latest stable)
  • A TestMu AI (Formerly LambdaTest) account with your username and access key

Table of Contents πŸ—

Pre-requisites

Before we get started, make sure to clone the TestMu AI (Formerly LambdaTest) Cypress Cloud Repo. You can run your first Cypress test on the TestMu AI (Formerly LambdaTest) platform in a few simple steps:

  • Step 1: Clone the TestMu AI (Formerly LambdaTest)-Cypress Cloud repo and navigate to the cloned directory.

    git clone https://github.com/LambdaTest/Cypress-Cloud
    cd Cypress-Cloud
  • Step 2: Installing the TestMu AI (Formerly LambdaTest) CLI - You need to install the TestMu AI (Formerly LambdaTest)-Cypress CLI package with the help of npm, using the below command:

    npm install -g lambdatest-cypress-cli
  • Step 3: Setup configurations on which you want to run your test - Once you have installed the TestMu AI (Formerly LambdaTest)-Cypress CLI, now you need to setup the configuration. You can do that using the below command:

    lambdatest-cypress init

Running Your First Cypress Test On TestMu AI (Formerly LambdaTest)

Test Scenario: To demonstrate Cypress testing on TestMu AI (Formerly LambdaTest), we will use the Cypress Kitchen Sink Example.

  1. Clone the TestMu AI (Formerly LambdaTest) Cypress Cloud GitHub repo and switch to the cloned directory.
git clone https://github.com/LambdaTest/Cypress-Cloud
cd Cypress-Cloud
  1. Setup the TestMu AI (Formerly LambdaTest)-Cypress CLI and configure the configuration file, as shown in the pre-requisites before. A file named lambdatest-config.json is generated in your project using the below command:
lambdatest-cypress init

Here, we have used the below configuration as default and generated it in the lambdatest-config.json file. You need to set up the authentication by using TestMu AI (Formerly LambdaTest) credentials. You can check the Authentication documentation for more details about authentication.

{
  "lambdatest_auth": {
    "username": "<YOUR_LAMBDATEST_USERNAME>",
    "access_key": "<Your LambdaTest access key>"
  },
  "browsers": [
    {
      "browser": "Chrome",
      "platform": "Windows 10",
      "versions": ["latest"]
    },
    {
      "browser": "Firefox",
      "platform": "Windows 10",
      "versions": ["latest"]
    }
  ],
  "run_settings": {
    "cypress_config_file": "cypress.json",
    "build_name": "build-name",
    "parallels": 1,
    "specs": "./*.spec.js",
    "ignore_files": "",
    "npm_dependencies": {
      "cypress": "6.1.0"
    },
    "feature_file_suppport": false
  },
  "tunnel_settings": {
    "tunnel": false,
    "tunnelName": null
  }
}

Also in run-settings section you need to specify the path of your spec.js file on which you want to run the test on. Here we will pass the path of a sample to do spec.js file for our demo.

"specs": "./cypress/integration/1-getting-started/todo.spec.js"

In this demo, all occurences of http://localhost:8080 have been replaced with https://example.cypress.io to prevent running the Cypress tests locally. Alternatively, if you want to run your tests locally, refer to the Run Cypress tests locally section below.

  1. Execute your tests using the following command in the terminal:
lambdatest-cypress run

View Your Cypress Testing Result

As soon as the tests starts executing, you can view them running. Visit your TestMu AI (Formerly LambdaTest) Automation Dashboard.

For each test, you can view the live video feed, screenshots for each test run, console logs, terminal logs and do much more using the TestMu AI (Formerly LambdaTest) platform.

If the test gets executed successfully, you will see a green tick on the Timeline view and a "Completed" message on the Automation logs view of your Automation dashboard. If not, then you will see a red cross and a "Failed" message respectively.

Running Your Cypress Tests Locally

To run your tests locally on the TestMu AI (Formerly LambdaTest) platform, you need to setup TestMu AI (Formerly LambdaTest) tunnel, and execute commands using the CLI, or download UnderPass, our GUI based desktop app. Once you have the TestMu AI (Formerly LambdaTest) tunnel or Underpass set up and started, you can use the TestMu AI (Formerly LambdaTest) platform to run your Cypress tests locally.

Now you need to activate the tunnel capability in the lambdatest_config.json file under the section "connection_settings" as shown below:

  "connection_settings": {
    "tunnel": true,
    "tunnel_name": "lt-cypress-tunnel"
  },

You can provide the name of the TestMu AI (Formerly LambdaTest) tunnel as per your requirements.

Authentication

Authenticate your Cypress test runs in the following ways -

  1. Set up the environment variables. (or)
  2. Utilizing the CLI params. (or)
  3. Mention yourusername and access key in the lambdatest-config.json.

Warning: We use the following order of precedence to determine which auth credentials to use if you use more than one option to pass your auth credentials:

CLI arguments > Options set in lambdatest-config.json > Environment variables

Utilizing CLI Params:

The following args can be used while running tests using the run command.

Arg Shorthand Accepted values
--username -u Your TestMu AI (Formerly LambdaTest) username
--key -k Your TestMu AI (Formerly LambdaTest) access key

For example -

 lambdatest-cypress run --username YOUR_USERNAME --key YOUR_ACCESS_KEY

Using lambdatest-config.json:

The auth option will help you in specifying your username and access key. You can find your username and access key in the TestMu AI (Formerly LambdaTest) Automation Dashboard. Both, the auth credentials set in environment variables and the ones mentioned in the lambdatest-config.json file will get overridden.

The options supported in the auth are as follows:

Arg Accepted values
username Your TestMu AI (Formerly LambdaTest) username
access_key Your TestMu AI (Formerly LambdaTest) access key

For example -

"lambdatest_auth": {
      "username": "<your username>",
      "access_key": "<your access key>"
   },

Setup the Environment Variables:

While utilizing the CLI params, you can set up the following environment variables.

Env variable Accepted values
LT_USERNAME Your TestMu AI (Formerly LambdaTest) username
LT_ACCESS_KEY Your TestMu AI (Formerly LambdaTest) access key

Or you can also set environment variables using following commands:

  • For Linux/macOS:
export LT_USERNAME="YOUR_USERNAME" export LT_ACCESS_KEY="YOUR ACCESS KEY"
  • For Windows:
set LT_USERNAME="YOUR_USERNAME" set LT_ACCESS_KEY="YOUR ACCESS KEY"

Note - By doing so, the auth credentials you use in your lambdatest-config.json file will get overridden only if these options are not provided in lambdatest-config.json.

Tutorials πŸ“™

Check out our latest tutorials on Cypress automation testing πŸ‘‡

  • Cypress Vs Selenium: Which is Better in 2022?
  • Introduction to Cypress Test Automation Framework
  • Scalable and Reliable Cross Browser Testing with Cypress
  • Now Run Your Cypress Tests on TestMu AI (Formerly LambdaTest)
  • How to Perform Cypress Testing at Scale with TestMu AI (Formerly LambdaTest)
  • Complete Guide to Cypress Visual Regression Testing
  • How to Fill and Submit Forms in Cypress
  • How to Find HTML Elements Using Cypress Locators
  • Handling Touch and Mouse Events in Cypress [Tutorial]
  • How to Find Broken Links using Cypress [With Examples]
  • Web Performance Testing with Cypress and Google Lighthouse

For video tutorials on Cypress testing, please refer to our Cypress Testing Tutorial Playlist. ▢️

Subscribe To Our TestMu AI (Formerly LambdaTest) YouTube Channel πŸ”” and keep up-to-date on the latest video tutorial around Cypress.

Documentation & Resources πŸ“š

Visit the following links to learn more about TestMu AI (Formerly LambdaTest)'s features, setup and tutorials around test automation, mobile app testing, responsive testing, and manual testing.

  • TestMu AI (Formerly LambdaTest) Documentation
  • TestMu AI (Formerly LambdaTest) Blog
  • TestMu AI (Formerly LambdaTest) Learning Hub

TestMu AI (Formerly LambdaTest) Community

Connect with testers and developers in the TestMu AI Community. Ask questions, share what you are building, and discuss best practices in test automation and DevOps.

TestMu AI (Formerly LambdaTest) Certifications

Earn free TestMu AI Certifications for testers, developers, and QA engineers. Validate your skills in Selenium, Cypress, Playwright, Appium, Espresso and more. Industry-recognized, shareable on LinkedIn, and built by practitioners, not marketers.

Learning Resources by TestMu AI (Formerly LambdaTest)

Learn modern testing through tutorials, guides, videos, and weekly updates:

LambdaTest is Now TestMu AI

On January 12, 2026, LambdaTest evolved to TestMu AI, the world's first fully autonomous Agentic AI Quality Engineering Platform.

Same team. Same infrastructure. Same customer accounts. All existing LambdaTest logins, scripts, capabilities, and integrations continue to work without change.

Γ° Find the new home for LambdaTest.

How LambdaTest Evolved into TestMu AI

In 2017, we launched LambdaTest with a simple mission: make testing fast, reliable, and accessible. As LambdaTest grew, we expanded into Test Intelligence, Visual Regression Testing, Accessibility Testing, API Testing, and Performance Testing, covering the full depth of the testing lifecycle.

As software development entered the AI era, testing had to evolve, too. We rebuilt the architecture to be AI-native from the ground up, with autonomous agents that plan, author, execute, analyze, and optimize tests while keeping humans in the loop. The platform integrates with your repos, CI, IDEs, and terminals, continuously learning from every code change and development signal.

That evolution earned a new name: TestMu AI, built for an AI-first future of quality engineering. TestMu is not a new name for us. It is the name of our annual community conference, which has brought together 100,000+ quality engineers to discuss how AI would reshape testing, long before that became an industry norm.

What started as a high-performance cloud testing platform has transformed into an AI-native, multi-agent system powering a connected, end-to-end quality layer. That evolution defined a new identity: LambdaTest evolved into TestMu AI, built for an AI-first future of quality engineering.

Support

Got a question? Email support@testmuai.com or chat with us 24x7 from our chat portal.

Packages

 
 
 

Contributors

Languages

  • HTML 70.7%
  • JavaScript 27.1%
  • CSS 1.7%
  • Other 0.5%