microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.4k stars 3.63k forks source link

[BUG] generated testId differs on windows and linux #28991

Closed Alexander-Taran closed 9 months ago

Alexander-Taran commented 9 months ago

System info

My guess is that code in this lines behaves differently somehow

Source code

https://github.com/microsoft/playwright/blob/bbe26dbdbb172fcb05750ff5d52c0b6f2a8b311d/packages/playwright/src/common/suiteUtils.ts#L43C12-L55

Steps I believe that running any suite on different platforms will reproduce the inconsistency.

Expected

Testid fields should be the same.

Actual

Testid fields for the same test are different.

Alexander-Taran commented 9 months ago

@dgozman @mxschmitt Thanks, guys!!