Skip to content

Commit

Permalink
PaletteEdit: Fix another flaky test (#61818)
Browse files Browse the repository at this point in the history
Co-authored-by: tyxla <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
4 people authored May 21, 2024
1 parent 1a12b1e commit 560d3f6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/components/src/palette-edit/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,13 @@ describe( 'PaletteEdit', () => {
name: 'Color options',
} )
);
expect(
screen.getByRole( 'button', {
name: 'Reset colors',
} )
).toBeVisible();
await waitFor( () => {
expect(
screen.getByRole( 'button', {
name: 'Reset colors',
} )
).toBeVisible();
} );
} );

it( 'does not show a reset colors option when `canReset` is disabled', async () => {
Expand Down

1 comment on commit 560d3f6

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 560d3f6.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9173877226
📝 Reported issues:

Please sign in to comment.