mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 20:08:13 +08:00
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:
@@ -29,6 +29,17 @@ describe("did launch", () => {
|
||||
);
|
||||
expect(element).toBe(data.title);
|
||||
});
|
||||
|
||||
test("terms of service, if they are there", async () => {
|
||||
try {
|
||||
await utils.clickOn("tos-cookies-accept", { timeout: 500 });
|
||||
} catch {
|
||||
console.warn("No terms of service footer detected.")
|
||||
}
|
||||
page.waitFor(50); // give the footer a chance to disappear
|
||||
const result = await page.$("[data-testid='tos-cookies-accept']");
|
||||
expect(result).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
describe("metadata loads", () => {
|
||||
|
||||
Reference in New Issue
Block a user