ChatGPT + Cypress Tests

Miktad Öztürk
2 min readJan 18, 2023

In this article, I would like to tell you how I made the Cypress tests by asking ChatGPT.

If you want to watch the video, the link is here:

First of all I would like to start asking this question:

Can you give me information about Cypress?

ChatGPT’s answer:

Second question about login page testing:

Can you write the commands for the login test of Saucedemo.com using the Cypress test tool?

ChatGPT’s answer:

Explained all steps

Third question about Custom commands and page object model:

Could you please give an example with custom commands or page objects?

ChatGPT’s answer:

Last question about Cucumber framework with Cypress:

Can you do these using the cucumber framework?

ChatGPT’s answer:

Conclusion, in this article, I tried to explain to you simply what ChatGPT can do with Cypress. You can share your experiences by making more specific experiments.

--

--