This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new a731c89561 fix: Add timeout to cypress tests (#3498)
a731c89561 is described below

commit a731c895611080344bd66dda27d1c9a77fea59ca
Author: Dominik Riemer <[email protected]>
AuthorDate: Fri Feb 21 14:05:18 2025 +0100

    fix: Add timeout to cypress tests (#3498)
---
 ui/cypress/support/utils/connect/ConnectUtils.ts                    | 2 +-
 ...ipeline.spec.ts => editAdapterSettingsAndPipeline.smoke.spec.ts} | 6 ++++--
 ...ditOpcAdapters.spec.ts => startAndEditOpcAdapters.smoke.spec.ts} | 0
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ui/cypress/support/utils/connect/ConnectUtils.ts 
b/ui/cypress/support/utils/connect/ConnectUtils.ts
index 40956ebffb..7b9458feaa 100644
--- a/ui/cypress/support/utils/connect/ConnectUtils.ts
+++ b/ui/cypress/support/utils/connect/ConnectUtils.ts
@@ -386,7 +386,7 @@ export class ConnectUtils {
             amountOfProperties,
         );
 
-        cy.dataCy('live-preview-table-no-data', { timout: 1000 }).should(
+        cy.dataCy('live-preview-table-no-data', { timout: 5000 }).should(
             'not.exist',
         );
     }
diff --git a/ui/cypress/tests/connect/editAdapterSettingsAndPipeline.spec.ts 
b/ui/cypress/tests/connect/editAdapterSettingsAndPipeline.smoke.spec.ts
similarity index 97%
rename from ui/cypress/tests/connect/editAdapterSettingsAndPipeline.spec.ts
rename to ui/cypress/tests/connect/editAdapterSettingsAndPipeline.smoke.spec.ts
index 7accd731de..62b3f062f2 100644
--- a/ui/cypress/tests/connect/editAdapterSettingsAndPipeline.spec.ts
+++ b/ui/cypress/tests/connect/editAdapterSettingsAndPipeline.smoke.spec.ts
@@ -93,10 +93,12 @@ describe('Test Edit Adapter and Pipeline', () => {
         cy.dataCy('sp-editor-save-pipeline').click();
         
cy.dataCy('sp-editor-checkbox-navigate-to-overview').children().click();
         cy.dataCy('sp-editor-apply').click();
-        cy.dataCy('sp-navigate-to-pipeline-overview').click();
+        cy.dataCy('sp-navigate-to-pipeline-overview', {
+            timeout: 7000,
+        }).click();
 
         // Visit dashboard
-        cy.wait(1000);
+        cy.wait(5000);
         DataLakeUtils.goToDatalake();
         DataLakeUtils.createAndEditDataView();
 
diff --git a/ui/cypress/tests/connect/opcua/startAndEditOpcAdapters.spec.ts 
b/ui/cypress/tests/connect/opcua/startAndEditOpcAdapters.smoke.spec.ts
similarity index 100%
rename from ui/cypress/tests/connect/opcua/startAndEditOpcAdapters.spec.ts
rename to ui/cypress/tests/connect/opcua/startAndEditOpcAdapters.smoke.spec.ts

Reply via email to