From 7715ebec912c4209c2f7321dcd3d7362f5366666 Mon Sep 17 00:00:00 2001 From: Arturo Castillo Delgado Date: Wed, 4 Dec 2024 16:40:03 +0100 Subject: [PATCH] [EuiModal] Clean up test --- .../eui/src/components/modal/modal.test.tsx | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/packages/eui/src/components/modal/modal.test.tsx b/packages/eui/src/components/modal/modal.test.tsx index 3a79e0f082e..2fe65fb83ba 100644 --- a/packages/eui/src/components/modal/modal.test.tsx +++ b/packages/eui/src/components/modal/modal.test.tsx @@ -82,17 +82,15 @@ describe('EuiModal', () => { }); }); - describe('reading order', () => { - test('button is placed after header', () => { - const { getByTestSubject } = render( - null}> - Title - children - - ); + test('button is placed after header', () => { + const { getByTestSubject } = render( + null}> + Title + children + + ); - const header = getByTestSubject('header'); - expect(header.nextElementSibling?.tagName).toBe('BUTTON'); - }); + const header = getByTestSubject('header'); + expect(header.nextElementSibling?.tagName).toBe('BUTTON'); }); });