Fix smoke tests to work with remote deployments of cellxgene (#1469)

* Add test for terms of service

* Add workaround for chromium CSP require-trusted-types-for error
This commit is contained in:
Matt Weiden
2020-05-12 13:01:57 -07:00
committed by GitHub
parent c1bf491a96
commit e55595cc55
3 changed files with 17 additions and 2 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ export const puppeteerUtils = (page) => ({
},
async clickOn(testid, options = {}) {
await this.waitByID(testid);
const click = await page.click(`[data-testid='${testid}']`, options);
await this.waitByID(testid, options);
const click = await page.click(`[data-testid='${testid}']`);
await page.waitFor(50);
return click;
},