Skip to content

Commit

Permalink
Fix for snapshot test race condition
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhat Sharma <[email protected]>
  • Loading branch information
Prabhat Sharma committed Aug 16, 2024
1 parent 74c9d98 commit f5200b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ describe("<AssociatedComponentsModal /> spec", () => {
await findByTestId("TestBtn");
await userEvent.click(getByTestId("TestBtn"));
await findByText("Associated component templates");
await findByText("This table contains 1 rows out of 1 rows; Page 1 of 1.");
expect(document.body.children).toMatchSnapshot();
await userEvent.click(document.querySelector(`[aria-label="Unlink test_component_template?"]`) as Element);
await findByText("Unlink from test_template?");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ HTMLCollection [
>
<caption
class="euiScreenReaderOnly euiTableCaption"
/>
>
This table contains 1 rows out of 1 rows; Page 1 of 1.
</caption>
<thead>
<tr>
<th
Expand Down

0 comments on commit f5200b8

Please sign in to comment.