0

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?

Alex Skorkin
  • 4,264
  • 3
  • 25
  • 47

2 Answers2

2

Duplicate names are allowed but we don't recommend them as this is bad practice

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

  • 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