From 34299b863f3cedcf666c080ce5bb8f1b88601672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Ko=C5=82odziejczyk?= Date: Mon, 18 May 2026 11:02:23 +0200 Subject: [PATCH] waiting for index management section loading --- e2e-tests/cypress/e2e/Tenancy.cy.ts | 2 ++ e2e-tests/cypress/support/page-objects/IndexManagement.ts | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/e2e-tests/cypress/e2e/Tenancy.cy.ts b/e2e-tests/cypress/e2e/Tenancy.cy.ts index 632f01f..62139f6 100644 --- a/e2e-tests/cypress/e2e/Tenancy.cy.ts +++ b/e2e-tests/cypress/e2e/Tenancy.cy.ts @@ -12,6 +12,7 @@ import { Dashboard } from '../support/page-objects/Dashboard'; import { TENANCY_QUERY_STRING_KEY } from '../support/types'; import { Spaces } from '../support/page-objects/Spaces'; import { kbnApiAdvancedClient } from '../support/helpers/KbnApiAdvancedClient'; +import { IndexManagement } from '../support/page-objects/IndexManagement'; describe('Tenancy', () => { describe('should run tests', () => { @@ -160,6 +161,7 @@ function runTests({ spacePrefix: '' }); + IndexManagement.waitingForSectionLoadingFinish(); callbackAfterLogin?.(); Spaces.createNewSpace(newSpace); diff --git a/e2e-tests/cypress/support/page-objects/IndexManagement.ts b/e2e-tests/cypress/support/page-objects/IndexManagement.ts index 854fe56..45c6742 100644 --- a/e2e-tests/cypress/support/page-objects/IndexManagement.ts +++ b/e2e-tests/cypress/support/page-objects/IndexManagement.ts @@ -97,13 +97,16 @@ export class IndexManagement { static openDataStreams() { cy.log('Open Data Streams'); - cy.get('[data-test-subj="data_streamsTab"]').click(); } static verifyDataStreamsEmptyPage() { cy.log('Verify data streams empty page'); - cy.contains('[data-test-subj="title"]', "You don't have any data streams yet"); } + + static waitingForSectionLoadingFinish() { + cy.log('Waiting for section loading'); + cy.get('[data-test-subj="sectionLoading"]', { timeout: 30000 }).should('not.exist'); + } }