From 556eec55e34da0d2503ab7a8a374c36ac49aa750 Mon Sep 17 00:00:00 2001 From: Eyo Okon Eyo Date: Tue, 14 Apr 2026 10:50:49 +0200 Subject: [PATCH] adjust conditions for validating no refetch for expanded row --- .../apps/discover/cascade_layout/_data_fetching.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/platform/test/functional/apps/discover/cascade_layout/_data_fetching.ts b/src/platform/test/functional/apps/discover/cascade_layout/_data_fetching.ts index 1fd9d3384961e..4dc5ea23dafc1 100644 --- a/src/platform/test/functional/apps/discover/cascade_layout/_data_fetching.ts +++ b/src/platform/test/functional/apps/discover/cascade_layout/_data_fetching.ts @@ -80,12 +80,17 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await expectCascadeRequestTimestampToChange(baseline); const firstTimestamp = await getCascadeRequestTimestamp(); + // close first row so the second row is in view + await discover.toggleCascadeLayoutRow(firstRowId); await discover.toggleCascadeLayoutRow(secondRowId); await expectCascadeRequestTimestampToChange(firstTimestamp); const secondTimestamp = await getCascadeRequestTimestamp(); + // close the just opened second row so the first row is in view + await discover.toggleCascadeLayoutRow(secondRowId); + // reopen previously expanded row await discover.toggleCascadeLayoutRow(firstRowId); await expectCascadeRequestTimestampToStay(secondTimestamp); });