We use testcafe for e2e tests and currently we are fixing flaky tests. During this we noticed that we use duplicated names for some fixtures and tests. Should we use unique names for fixtureName and testName or duplicated names are allowed?
Asked
Active
Viewed 100 times
0
-
Please provide enough code so others can better understand or reproduce the problem. – Community Sep 21 '21 at 06:19
2 Answers
2
Duplicate names are allowed but we don't recommend them as this is bad practice

AlexanderMoiseev
- 556
- 2
- 2
1
Nothing in the documentation against it and the practice is allowed, but it's always best to be concise and unique: https://testcafe.io/documentation/402831/guides/basic-guides/organize-tests#fixtures

Justin Braden
- 103
- 9
-
Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-ask). – Community Sep 15 '21 at 21:59