gradio/ui/packages/app/snapshots/blocks_layout.spec.ts
pngwn 669ee42c8f
fix space embeds using src attribute (#3065)
* change ports in dev mode

* changelog

* correctly detect space embeds

* changelog

* formatting
2023-01-27 14:39:36 +00:00

19 lines
463 B
TypeScript

import { test, expect, Page } from "@playwright/test";
function mock_demo(page: Page, demo: string) {
return page.route("**/config", (route) => {
return route.fulfill({
headers: {
"Access-Control-Allow-Origin": "*"
},
path: `../../../demo/${demo}/config.json`
});
});
}
test("blocks layout", async ({ page }) => {
await mock_demo(page, "blocks_layout");
await page.goto("http://localhost:9876");
await expect(page).toHaveScreenshot();
});