cosmos-explorer/test/utils/waitForExplorer.ts

10 lines
226 B
TypeScript
Raw Normal View History

2021-07-22 00:22:31 +01:00
import { Frame } from "playwright";
export const waitForExplorer = async (): Promise<Frame> => {
await page.waitForSelector("iframe");
await page.waitForTimeout(5000);
return page.frame({
name: "explorer",
});
};