diff --git a/test/e2e/specs/site-editor/title.spec.js b/test/e2e/specs/site-editor/title.spec.js index 6d00c4ad7c3a2a..78a98fedc3ac94 100644 --- a/test/e2e/specs/site-editor/title.spec.js +++ b/test/e2e/specs/site-editor/title.spec.js @@ -23,7 +23,7 @@ test.describe( 'Site editor title', () => { } ); const title = await page.locator( - 'role=region[name="Editor top bar"i] >> role=heading[level=1]' + 'role=region[name="Editor top bar"i] >> role=heading[level=2]' ); await expect( title ).toHaveText( 'Editing template: Index' ); @@ -40,7 +40,7 @@ test.describe( 'Site editor title', () => { } ); const title = await page.locator( - 'role=region[name="Editor top bar"i] >> role=heading[level=1]' + 'role=region[name="Editor top bar"i] >> role=heading[level=2]' ); await expect( title ).toHaveText( 'Editing template part: header' );