Skip to content

Commit

Permalink
Made tests wait for images to load
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlipski committed May 24, 2024
1 parent 906897c commit 8dd798f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/src/end-to-end/images/images.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ test.describe("Check Image Block and Toolbar functionality", () => {
});
await page.click(`[data-test="upload-input"]`);
await page.waitForSelector(`img[src^="https://tmpfiles.org/"]`);
await page.waitForTimeout(500);

await page.click(`img`);

Expand All @@ -51,6 +52,7 @@ test.describe("Check Image Block and Toolbar functionality", () => {
await page.keyboard.type(IMAGE_EMBED_URL);
await page.click(`[data-test="embed-input-button"]`);
await page.waitForSelector(`img[src="${IMAGE_EMBED_URL}"]`);
await page.waitForTimeout(500);

await page.click(`img`);

Expand All @@ -67,6 +69,7 @@ test.describe("Check Image Block and Toolbar functionality", () => {
await page.keyboard.type(IMAGE_EMBED_URL);
await page.click(`[data-test="embed-input-button"]`);
await page.waitForSelector(`img[src="${IMAGE_EMBED_URL}"]`);
await page.waitForTimeout(500);

await page.click(`img`);

Expand Down

0 comments on commit 8dd798f

Please sign in to comment.