Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

250
Views
How to avoid "Duplicate test titles are not allowed" error in playwright-test?

Context: In long E2E test flows there are certain steps that are duplicated like moving in-between "Product" vs "shipping" vs "Payment method" tabs in an online order workflow.

Problem: In Playwright-Test, duplicate test titles are not allowed as "error" (not as a warning) which is painful for someone who is migrating test scripts from other testing frameworks like "Jasmine" (as in my scenario) where duplicate test titles were allowed.

Desired Solution : Is there a solution, where this error can be avoided on the configuration level (preferably as a warning) without changing 100s of scripts manually? Thanks!

enter image description here

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Not sure that you can make it with config, since there is a valid question how you are going to create report in paralel run for non unique test descriptions in playwright...

But one thing you can do, you can make your test unique just by adding some parameter in description. In e.g. test ID, or if tests are data driven, put iterator as pat of the test name.

Or make some wraper that will overload test method and will add one unique parametar to the test every time.

about 4 years ago · Juan Pablo Isaza Report

0

A big thank you to Playwright Team , this is being addressed in next release(v1.23) as feature.

https://github.com/microsoft/playwright/issues/13969

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!