Add manual UX tests (#699)

This commit is contained in:
Charlotte Weaver
2019-04-08 13:23:17 -07:00
committed by GitHub
parent 71505abe4c
commit c9a8e3ea42
6 changed files with 141 additions and 5 deletions
+8 -4
View File
@@ -1,11 +1,15 @@
export const puppeteerUtils = puppeteerPage => ({
async waitByID(testid) {
return await puppeteerPage.waitForSelector(`[data-testid='${testid}']`);
async waitByID(testid, props = {}) {
return await puppeteerPage.waitForSelector(
`[data-testid='${testid}']`,
props
);
},
async waitByClass(testclass) {
async waitByClass(testclass, props = {}) {
return await puppeteerPage.waitForSelector(
`[data-testclass='${testclass}']`
`[data-testclass='${testclass}']`,
props
);
},