Skip to content

Commit 3c19080

Browse files
committed
fix: make the media playwright tests fail later
1 parent d73ab8d commit 3c19080

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/context-editor/playwright/media.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { EDITOR_WITH_IMAGE_STORY } from "./constants";
66
import { getProsemirrorState } from "./utils";
77

88
const clickImageNode = async (page: Page) => {
9-
// Have to click twice in playwright for some reason
10-
await page.getByRole("button", { name: "image", exact: true }).click();
9+
// await page.getByRole("button", { name: "image", exact: true }).click();
1110
await page.getByRole("button", { name: "image", exact: true }).click();
1211
};
1312

@@ -31,6 +30,7 @@ test.describe("images", () => {
3130
align: "right",
3231
fullResolution: true,
3332
};
33+
3434
await page.getByRole("textbox", { name: "Source" }).fill(expected.src);
3535
await page.getByRole("textbox", { name: "Alt text" }).fill(expected.alt);
3636
await page.getByRole("textbox", { name: "Link to" }).fill(expected.linkTo);
@@ -48,7 +48,8 @@ test.describe("images", () => {
4848
});
4949

5050
test("can add and remove caption, credit, license fields", async ({ page }) => {
51-
await clickImageNode(page);
51+
// await clickImageNode(page);
52+
await page.getByRole("button", { name: "figure", exact: true }).first().click();
5253
await page.getByTestId("attribute-panel").waitFor();
5354
await expect(page.getByRole("button", { name: "figcaption" })).toHaveCount(0);
5455
const figureParts = [

0 commit comments

Comments
 (0)