From 5443f4cd770003ef1135ece24759973fa626f18a Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 14 Apr 2023 14:20:48 +0200 Subject: [PATCH] Adjust test and add changelog entry. --- packages/components/CHANGELOG.md | 4 ++++ test/e2e/specs/site-editor/browser-history.spec.js | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index ca0fdfa789dfb4..8d555923e2f34a 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -10,6 +10,10 @@ - `Autocomplete`: Add heading and fix type for `onReplace` in README. ([#49798](https://github.com/WordPress/gutenberg/pull/49798)). +### Internal + +- `Navigation`: Make sure `NavigationMenu` and `NavigationGroup` don't render an empty `aria-labelledby` attribute ([#42495](https://github.com/WordPress/gutenberg/pull/42495)). + ## 23.8.0 (2023-04-12) ### Internal diff --git a/test/e2e/specs/site-editor/browser-history.spec.js b/test/e2e/specs/site-editor/browser-history.spec.js index bbfd2e8c5b86b8..e71a4f8a5cf1cd 100644 --- a/test/e2e/specs/site-editor/browser-history.spec.js +++ b/test/e2e/specs/site-editor/browser-history.spec.js @@ -54,7 +54,10 @@ test.describe( 'Site editor browser history', () => { '/wp-admin/site-editor.php?path=%2Fwp_template%2Fall' ); - const title = page.getByRole( 'heading', { level: 1 } ); + const header = page.getByRole( 'region', { + name: 'Templates list - Header', + } ); + const title = header.getByRole( 'heading', { level: 2 } ); await expect( title ).toHaveText( 'Templates' ); } ); } );