Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
ntsekouras committed Dec 5, 2024
commit 88c82197380c1368f144ef618bcd144f4552456b
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: 5 additions & 1 deletion test/performance/specs/site-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ test.describe( 'Site Editor Performance', () => {
}

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

// Get the durations.
Expand Down