Skip to content

Commit

Permalink
Try to fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Feb 11, 2022
1 parent c9ae24b commit b51dbd6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ test.describe( 'Widgets Customizer', () => {
// Expect the heading to be found in the preview iframe.
await expect(
previewFrame.locator(
'css=.widget-content * >> role=heading[name="My Heading"]'
'css=.widget-content >> role=heading[name="My Heading"]'
)
).toBeVisible();

// Expect the search box to be found in the preview iframe.
await expect(
previewFrame.locator(
'css=.widget-content * >> role=searchbox[name="My Search"]'
'css=.widget-content >> role=searchbox[name="My Search"]'
)
).toHaveCount( 1 );
} );
Expand Down

0 comments on commit b51dbd6

Please sign in to comment.