Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Dec 4, 2024
1 parent a2b340d commit fe08862
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion test/e2e/specs/site-editor/template-registration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ test.describe( 'Block template registration', () => {
.getByLabel( 'Dismiss this notice' )
.getByText( `"Author: Admin" reset.` );
await page.getByPlaceholder( 'Search' ).fill( 'Author: admin' );
await page.getByRole( 'button', { name: 'Author: Admin' } ).click();
await page
.locator( '.fields-title-field', { hasText: 'Author: Admin' } )
.click();
const actions = page.getByLabel( 'Actions' );
await actions.first().click();
await page.getByRole( 'menuitem', { name: 'Reset' } ).click();
Expand Down
6 changes: 2 additions & 4 deletions test/performance/specs/site-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,8 @@ test.describe( 'Site Editor Performance', () => {

await metrics.startTracing();
await page
.locator( '.fields-title-field', {
hasText: 'Single Posts',
} )
.click();
.getByText( 'Single Posts', { exact: true } )
.click( { force: true } );
await metrics.stopTracing();

// Get the durations.
Expand Down

0 comments on commit fe08862

Please sign in to comment.