Skip to content
Snippets Groups Projects
Unverified Commit 6e5b6a7b authored by Denis Berezin's avatar Denis Berezin Committed by GitHub
Browse files

Fix flaky ActionViz unit tests (#34250)

parent 70355597
No related branches found
No related tags found
No related merge requests found
......@@ -352,9 +352,7 @@ describe("Actions > ActionViz > Action", () => {
const editorModal = await screen.findByTestId("action-editor-modal");
expect(
within(editorModal).getByText("My Awesome Action"),
).toBeInTheDocument();
await within(editorModal).findByText("My Awesome Action");
const cancelEditButton = within(editorModal).getByText("Cancel");
expect(cancelEditButton).toBeInTheDocument();
......@@ -393,7 +391,9 @@ describe("Actions > ActionViz > Action", () => {
const editorModal = await screen.findByTestId("action-editor-modal");
// edit action title
const actionTitleField = within(editorModal).getByTestId("editable-text");
const actionTitleField = await within(editorModal).findByTestId(
"editable-text",
);
userEvent.type(actionTitleField, updatedTitle);
userEvent.tab(); // blur field
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment