[Telemetry] Flaky test 159929 (#159950)

Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Alejandro Fernández Haro 2023-06-21 01:04:11 +02:00 committed by GitHub
parent f1dc1e1869
commit e72da6dd3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,9 +20,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
const supertest = getService('supertest');
const PageObjects = getPageObjects(['common']);
// Failing: See https://github.com/elastic/kibana/issues/159929
// Failing: See https://github.com/elastic/kibana/issues/159929
describe.skip('Telemetry service', () => {
describe('Telemetry service', () => {
describe('Screenshot mode', () => {
const checkCanSendTelemetry = (): Promise<boolean> => {
return browser.executeAsync<boolean>((cb) => {
@ -71,6 +69,9 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
minor === 0 ? minor : minor - 1
}.${patch}`;
// Navigating first, so we can dismiss the welcome prompt, before deleting the telemetry SO.
await PageObjects.common.navigateToApp('home');
await kbnClient.savedObjects.delete({ type: TELEMETRY_SO_TYPE, id: TELEMETRY_SO_ID });
});