diff --git a/src/components/toast/__snapshots__/global_toast_list.test.tsx.snap b/src/components/toast/__snapshots__/global_toast_list.test.tsx.snap index e7aef92e3e3..b9b1f969a8e 100644 --- a/src/components/toast/__snapshots__/global_toast_list.test.tsx.snap +++ b/src/components/toast/__snapshots__/global_toast_list.test.tsx.snap @@ -6,7 +6,7 @@ exports[`EuiGlobalToastList is rendered 1`] = ` aria-live="polite" class="euiGlobalToastList testClass1 testClass2 emotion-euiGlobalToastList-right-euiTestCss" data-test-subj="test subject string" - role="region" + role="log" /> `; @@ -14,7 +14,7 @@ exports[`EuiGlobalToastList props side can be changed to left 1`] = `
{ expect(sharedProps.dismissToast).toHaveBeenCalledTimes(TOAST_COUNT); }); }); + + test('role', () => { + const { queryByRole } = render( + {}} + toastLifeTimeMs={5} + role="alert" + /> + ); + + expect(queryByRole('alert')).toBeInTheDocument(); + expect(queryByRole('log')).not.toBeInTheDocument(); + }); }); });