bitque/react-client/cypress/support/utils.js

5 lines
165 B
JavaScript

export const testid = (strings, ...values) => {
const id = strings.map((str, index) => str + (values[index] || '')).join('');
return `[data-testid="${id}"]`;
};