[Feature] Multiple values for testIdAttribute in playwright.config.ts
Hi there ! I'd like to suggest changing the testIdAttribute type from string to an array in order to be able to specify >1 test attribute for locators in the playwright.config.ts. In my application (and I think this situation is quite common), different test attributes can be used on different pages, but at the moment only one can be specified at the config level. Suggested example :
export default defineConfig({
use: {
testIdAttribute: ['data-pw', 'data-ti']
}
});
Thanks in advance for your consideration.
any updates on feedback ? not urgent at all, just curious :)
Bump :)
Bump 👍🏼
Bump :)
Bump :)
Looking for this feature as well!
following
That would be a nice feature