Skip to content

Commit

Permalink
fix inserter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Dec 13, 2023
1 parent e83210a commit f8ed95f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/e2e-test-utils/src/inserter.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ export async function selectGlobalInserterTab( label ) {
}

const activeTab = await page.waitForSelector(
'.block-editor-inserter__tabs button.is-active'
// Targeting a class name is necessary here, because there are likely
// two implementations of the `Tabs` component visible to this test, and
// we want to confirm that it's waiting for the correct one.
'.block-editor-inserter__tabs [role="tab"][aria-selected="true"]'
);

const activeTabLabel = await page.evaluate(
Expand Down

0 comments on commit f8ed95f

Please sign in to comment.