Skip to content

Commit

Permalink
Try to fix flaky customizer inspector test (#33890)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 authored Aug 5, 2021
1 parent 5e24b5c commit 8706aea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/e2e-tests/specs/widgets/customizing-widgets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@ describe( 'Widgets Customizer', () => {

await expect( inspectorHeading ).not.toBeVisible();

// Wait for the transition to finish to prevent it from
// clicking on the wrong element.
// The transition takes 180ms, 200ms should be enough.
// This is a temporary solution, a more ideal alternative
// would be to disable the transition entirely.
// See https://github.com/WordPress/gutenberg/pull/33875#issuecomment-893122147
// eslint-disable-next-line no-restricted-syntax
await page.waitForTimeout( 200 );

await clickBlockToolbarButton( 'Options' );
showMoreSettingsButton = await find( {
role: 'menuitem',
Expand Down

0 comments on commit 8706aea

Please sign in to comment.