Wrote end-to-end cypress tests
This commit is contained in:
4
client/cypress/support/utils.js
Normal file
4
client/cypress/support/utils.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const testid = (strings, ...values) => {
|
||||
const id = strings.map((str, index) => str + (values[index] || '')).join('');
|
||||
return `[data-testid="${id}"]`;
|
||||
};
|
||||
Reference in New Issue
Block a user