From bb75bbef82cd9eaaacbcb9f634bfb8122d743017 Mon Sep 17 00:00:00 2001 From: Philipp Zehnder Date: Fri, 5 Jan 2024 19:15:21 +0100 Subject: [PATCH] fix(#2393): Add timeout to failing time series widget test (#2394) --- ui/cypress/tests/datalake/widgets/timeSeriesSave.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/cypress/tests/datalake/widgets/timeSeriesSave.spec.ts b/ui/cypress/tests/datalake/widgets/timeSeriesSave.spec.ts index 7be0a66603..aabca3d990 100644 --- a/ui/cypress/tests/datalake/widgets/timeSeriesSave.spec.ts +++ b/ui/cypress/tests/datalake/widgets/timeSeriesSave.spec.ts @@ -63,12 +63,12 @@ const runTestCase = (editOption: boolean) => { cy.get('div').contains('Scatter').click(); // Check if scatter plot is displayed - cy.get('g').should('have.class', 'scatterlayer mlayer'); + cy.get('g', { timeout: 10000 }).should('have.class', 'scatterlayer mlayer'); // Change second field from line plot to bar plot cy.get('div').contains('Line').click(); cy.get('div').contains('Bar').click(); // Check if bar plot is displayed - cy.get('g').should('have.class', 'barlayer mlayer'); + cy.get('g', { timeout: 10000 }).should('have.class', 'barlayer mlayer'); };