The default behaviour in Testing Library is { exact: true }, while Playwright defaults to { exact: false }.
Naturally this is bound to catch people out. It would be useful to have at least a global setting to change the default to { exact: true }.
See also https://github.com/microsoft/playwright/discussions/18239
The default behaviour in Testing Library is
{ exact: true }, while Playwright defaults to{ exact: false }.Naturally this is bound to catch people out. It would be useful to have at least a global setting to change the default to
{ exact: true }.See also https://github.com/microsoft/playwright/discussions/18239