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

5 lines
165 B
JavaScript
Raw Normal View History

2020-03-28 21:41:16 +01:00
export const testid = (strings, ...values) => {
const id = strings.map((str, index) => str + (values[index] || '')).join('');
return `[data-testid="${id}"]`;
};