nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.85k stars 1.34k forks source link

added thrown error for duplicate testcases in describe instance #4302

Open badra022 opened 5 days ago

badra022 commented 5 days ago

Description

duplicate testcases inside describe instance that have same testName runs only the second test function for each time, this behavior should not be allowed so the user should have a thrown error explaining this to make test names inside the describe suite unique

Proof of work

here it shows the error when you write two tests with the same name inside the describe test suite Screenshot 2024-11-16 140401

Thanks in advance for your contribution. Please follow the below steps in submitting a pull request, as it will help us with reviewing it quicker.

CLAassistant commented 5 days ago

CLA assistant check
All committers have signed the CLA.

garg3133 commented 3 days ago

@badra022 Thanks for this PR. Could you please sign the CLA as well?

badra022 commented 2 days ago

just signed it, thanks @garg3133