From 126afa714c5d0821578109a5e47d56eaf616af35 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 4 Apr 2023 10:12:21 +0200 Subject: [PATCH] Adjust test. --- test/e2e/specs/editor/various/list-view.spec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/e2e/specs/editor/various/list-view.spec.js b/test/e2e/specs/editor/various/list-view.spec.js index 906159c944d1e..aaf5a996b85e7 100644 --- a/test/e2e/specs/editor/various/list-view.spec.js +++ b/test/e2e/specs/editor/various/list-view.spec.js @@ -474,9 +474,11 @@ test.describe( 'List View', () => { await pageUtils.pressKeys( 'shift+Tab' ); await pageUtils.pressKeys( 'shift+Tab' ); await expect( - editor.canvas.getByRole( 'button', { - name: 'Close Document Overview Sidebar', - } ) + editor.canvas + .getByRole( 'region', { name: 'Document Overview' } ) + .getByRole( 'button', { + name: 'Close', + } ) ).toBeFocused(); // Close List View and ensure it's closed.