E2E fixtures (#2747)

This commit is contained in:
Omar López authored and GitHub committed 2022-05-13 21:02:10 -06:00
1 parent 68e275ab07
commit 2bb6f33112
21 files changed
+491 -428

No files matched your search

@@ -5,6 +5,8 @@ function chooseEmbedType(page: Page, embedType: string) {
}
async function gotToPreviewTab(page: Page) {
// To prevent early timeouts
await page.waitForTimeout(1000);
await page.locator("[data-testid=embed-tabs]").locator("text=Preview").click();
}
@@ -179,7 +181,7 @@ test.describe("Embed Code Generator Tests", () => {
embedType: "inline",
});
gotToPreviewTab(page);
await gotToPreviewTab(page);
await expectToContainValidPreviewIframe(page, {
embedType: "inline",