From e8433090232615195a77c366253d19b0e6650b10 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Sat, 7 Dec 2024 07:45:49 +1100 Subject: [PATCH] [8.x] [EuiProvider] Hide unwanted toast until a fix can be done !! (#203244) (#203327) # Backport This will backport the following commits from `main` to `8.x`: - [[EuiProvider] Hide unwanted toast until a fix can be done !! (#203244)](https://github.com/elastic/kibana/pull/203244) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Shahzad --- .../core-chrome-browser-internal/src/chrome_service.tsx | 4 +++- test/plugin_functional/test_suites/shared_ux/eui_provider.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/core/chrome/core-chrome-browser-internal/src/chrome_service.tsx b/packages/core/chrome/core-chrome-browser-internal/src/chrome_service.tsx index 434639b07efdf..511100fff6d40 100644 --- a/packages/core/chrome/core-chrome-browser-internal/src/chrome_service.tsx +++ b/packages/core/chrome/core-chrome-browser-internal/src/chrome_service.tsx @@ -182,6 +182,7 @@ export class ChromeService { }; // Ensure developers are notified if working in a context that lacks the EUI Provider. + // @ts-expect-error private handleEuiDevProviderWarning = (notifications: NotificationsStart) => { const isDev = this.params.coreContext.env.mode.name === 'development'; if (isDev) { @@ -240,7 +241,8 @@ export class ChromeService { }: StartDeps): Promise { this.initVisibility(application); this.handleEuiFullScreenChanges(); - this.handleEuiDevProviderWarning(notifications); + // commented out until https://github.com/elastic/kibana/issues/201805 can be fixed + // this.handleEuiDevProviderWarning(notifications); const globalHelpExtensionMenuLinks$ = new BehaviorSubject( [] diff --git a/test/plugin_functional/test_suites/shared_ux/eui_provider.ts b/test/plugin_functional/test_suites/shared_ux/eui_provider.ts index fd503db46d27d..b35e25bb9121b 100644 --- a/test/plugin_functional/test_suites/shared_ux/eui_provider.ts +++ b/test/plugin_functional/test_suites/shared_ux/eui_provider.ts @@ -15,7 +15,8 @@ export default function ({ getPageObjects, getService }: PluginFunctionalProvide const testSubjects = getService('testSubjects'); const browser = getService('browser'); - describe('EUI Provider Dev Warning', () => { + // skipped until https://github.com/elastic/kibana/issues/201805 is resolved + describe.skip('EUI Provider Dev Warning', () => { it('shows error toast to developer', async () => { const pageTitle = 'EuiProvider test - Elastic';