Skip to content

Commit d340c07

Browse files
authored
test(admin): wait for editor content in conflict test (emdash-cms#2942)
1 parent b6271ad commit d340c07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/admin/tests/editor-save-conflict.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ async function renderEditPage() {
162162
params: { collection: "posts", id: "post_1" },
163163
});
164164
const screen = await render(<TestApp />);
165-
await expect.element(screen.getByRole("button", { name: "Publish", exact: true })).toBeVisible();
165+
await expect.element(screen.getByRole("textbox", { name: "Title" })).toBeVisible();
166166
return screen;
167167
}
168168

0 commit comments

Comments
 (0)