cosmos-explorer/test/utils/waitForExplorer.ts
2021-07-21 16:22:31 -07:00

10 lines
226 B
TypeScript

import { Frame } from "playwright";
export const waitForExplorer = async (): Promise<Frame> => {
await page.waitForSelector("iframe");
await page.waitForTimeout(5000);
return page.frame({
name: "explorer",
});
};