From 982b6079ad031513ae37e22cf460ccaf53970ee9 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 18 Jul 2022 12:17:03 +0200 Subject: [PATCH] Adjust e2e test. --- test/e2e/specs/site-editor/title.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/specs/site-editor/title.spec.js b/test/e2e/specs/site-editor/title.spec.js index 6d00c4ad7c3a2..78a98fedc3ac9 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' );