Skip to content

Commit

Permalink
Fix for snapshot test race condition (#1113) (#1114)
Browse files Browse the repository at this point in the history
(cherry picked from commit 883da5a)

Signed-off-by: Prabhat Sharma <ptsharma@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Prabhat Sharma <ptsharma@amazon.com>
  • Loading branch information
3 people committed Aug 19, 2024
1 parent ff07d27 commit a1ce9bb
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 a1ce9bb

Please sign in to comment.