From 80ca85dbaaef32105eace1f86121f039ede9f01c Mon Sep 17 00:00:00 2001 From: Mitchell Austin Date: Tue, 18 Feb 2025 21:31:05 -0800 Subject: [PATCH] Update Block template registration e2e test --- test/e2e/specs/site-editor/template-registration.spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e/specs/site-editor/template-registration.spec.js b/test/e2e/specs/site-editor/template-registration.spec.js index 4f35d81737ae29..21e28832e37025 100644 --- a/test/e2e/specs/site-editor/template-registration.spec.js +++ b/test/e2e/specs/site-editor/template-registration.spec.js @@ -84,7 +84,10 @@ test.describe( 'Block template registration', () => { const searchResults = page.getByLabel( 'Actions' ); await searchResults.first().click(); await page.getByRole( 'menuitem', { name: 'Reset' } ).click(); - await page.getByRole( 'button', { name: 'Reset' } ).click(); + await page + .getByRole( 'dialog' ) + .getByRole( 'button', { name: 'Reset' } ) + .click(); await expect( resetNotice ).toBeVisible(); await expect( savedButton ).toBeVisible();