Skip to content

Commit

Permalink
Try exact true again.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Oct 14, 2024
1 parent b691c1b commit 632bbc3
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions test/performance/specs/post-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,10 @@ test.describe( 'Post Editor Performance', () => {
// Go to the test page.
await admin.editPost( draftId );
await perfUtils.disableAutosave();
const globalInserterToggle = page
.getByRole( 'region', { name: 'Editor top bar' } )
.getByRole( 'button', {
name: 'Block Inserter',
} );
const globalInserterToggle = page.getByRole( 'button', {
name: 'Block Inserter',
exact: true,
} );

const samples = 10;
const throwaway = 1;
Expand Down Expand Up @@ -426,11 +425,10 @@ test.describe( 'Post Editor Performance', () => {
// Go to the test page.
await admin.editPost( draftId );
await perfUtils.disableAutosave();
const globalInserterToggle = page
.getByRole( 'region', { name: 'Editor top bar' } )
.getByRole( 'button', {
name: 'Block Inserter',
} );
const globalInserterToggle = page.getByRole( 'button', {
name: 'Block Inserter',
exact: true,
} );
// Open Inserter.
await globalInserterToggle.click();

Expand Down Expand Up @@ -487,11 +485,10 @@ test.describe( 'Post Editor Performance', () => {
await admin.editPost( draftId );
await perfUtils.disableAutosave();

const globalInserterToggle = page
.getByRole( 'region', { name: 'Editor top bar' } )
.getByRole( 'button', {
name: 'Block Inserter',
} );
const globalInserterToggle = page.getByRole( 'button', {
name: 'Block Inserter',
exact: true,
} );
const paragraphBlockItem = page.locator(
'.block-editor-inserter__menu .editor-block-list-item-paragraph'
);
Expand Down Expand Up @@ -541,11 +538,10 @@ test.describe( 'Post Editor Performance', () => {
test( 'Run the test', async ( { page, admin, perfUtils } ) => {
await admin.createNewPost();
await perfUtils.disableAutosave();
const globalInserterToggle = page
.getByRole( 'region', { name: 'Editor top bar' } )
.getByRole( 'button', {
name: 'Block Inserter',
} );
const globalInserterToggle = page.getByRole( 'button', {
name: 'Block Inserter',
exact: true,
} );

const testPatterns = [
{
Expand Down

0 comments on commit 632bbc3

Please sign in to comment.