Skip to content

Commit

Permalink
Update test selector
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Oct 8, 2024
1 parent 9601c78 commit 59e8b7d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/performance/specs/site-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,12 @@ test.describe( 'Site Editor Performance', () => {
}

await metrics.startTracing();
await page.getByText( 'Single Posts', { exact: true } ).click();
await page
.getByRole( 'button', {
name: 'Single Posts',
exact: true,
} )
.click();
await metrics.stopTracing();

// Get the durations.
Expand Down

0 comments on commit 59e8b7d

Please sign in to comment.