You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2022/05/29 20:02:47 UTC

[incubator-streampipes] branch dev updated: [hotfix] Fix datalake smoke test

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

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


The following commit(s) were added to refs/heads/dev by this push:
     new 4a321f9a2 [hotfix] Fix datalake smoke test
4a321f9a2 is described below

commit 4a321f9a2dae540c8fd3bd728d090281b9d1c2e3
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Sun May 29 22:02:36 2022 +0200

    [hotfix] Fix datalake smoke test
---
 ui/cypress/support/utils/DataLakeUtils.ts                    | 12 ++++++------
 .../tests/datalake/widgetDataConfiguration.smoke.spec.ts     |  1 +
 .../panel/data-explorer-dashboard-panel.component.html       |  3 ++-
 3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/ui/cypress/support/utils/DataLakeUtils.ts b/ui/cypress/support/utils/DataLakeUtils.ts
index 39b29cdb0..ccd596e7c 100644
--- a/ui/cypress/support/utils/DataLakeUtils.ts
+++ b/ui/cypress/support/utils/DataLakeUtils.ts
@@ -100,7 +100,6 @@ export class DataLakeUtils {
         .click();
 
     this.editDataView(name);
-    // cy.get('div').contains(name).parent().click();
 
   }
 
@@ -131,10 +130,8 @@ export class DataLakeUtils {
   public static saveAndReEditWidget(dataViewName: string) {
     // Save configuration
     DataLakeUtils.saveDataExplorerWidgetConfiguration();
-    DataLakeUtils.clickStartTab();
+    DataLakeUtils.goBackToOverview();
     DataLakeUtils.editDataView(dataViewName);
-    // Edit widget again
-    DataLakeUtils.editWidget('datalake_configuration');
   }
 
   public static clickTab(tabName: string) {
@@ -142,10 +139,13 @@ export class DataLakeUtils {
     cy.get('div').contains(tabName).parent().click();
   }
 
-  public static clickStartTab() {
-    this.clickTab('Start');
+
+  public static goBackToOverview() {
+    cy.dataCy('save-data-explorer-go-back-to-overview')
+        .click();
   }
 
+
   public static addNewWidget() {
     cy.dataCy('add-new-widget')
         .click();
diff --git a/ui/cypress/tests/datalake/widgetDataConfiguration.smoke.spec.ts b/ui/cypress/tests/datalake/widgetDataConfiguration.smoke.spec.ts
index 4dab10acc..c055c63cc 100644
--- a/ui/cypress/tests/datalake/widgetDataConfiguration.smoke.spec.ts
+++ b/ui/cypress/tests/datalake/widgetDataConfiguration.smoke.spec.ts
@@ -82,6 +82,7 @@ describe('Test Table View in Data Explorer', () => {
     /**
      * Test groupBy configuration and if it is persisted correctly
      */
+    cy.wait(1000);
     DataLakeUtils.clickGroupBy('randomtext');
     cy.wait(1000);
     cy.dataCy('data-explorer-table-row-randomtext', { timeout: 10000 }).first({ timeout: 10000 }).contains('a', { timeout: 10000 });
diff --git a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html
index 8fb64a0c4..c8805f19c 100644
--- a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html
+++ b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html
@@ -28,7 +28,8 @@
                         color="accent"
                         matTooltip="Back"
                         (click)="goBackToOverview()"
-                        class="edit-menu-btn">
+                        class="edit-menu-btn"
+                        data-cy="save-data-explorer-go-back-to-overview">
                     <mat-icon>arrow_back</mat-icon>
                 </button>
             </div>