Files
fauxjira/client/cypress/support/utils.js
2020-01-05 02:54:46 +01:00

5 lines
165 B
JavaScript

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