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 2025/11/14 08:04:49 UTC
(streampipes) 01/01: fix: Fix the test time order data view
This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch hotfix-fix-e2e-test-time-order
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 03fa690a1cc913d946d8a4b8227eaac405f9a1f2
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Fri Nov 14 09:04:39 2025 +0100
fix: Fix the test time order data view
---
ui/cypress/support/utils/dataExplorer/DataExplorerBtns.ts | 2 +-
ui/cypress/tests/dataExplorer/timeOrderDataView.spec.ts | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/ui/cypress/support/utils/dataExplorer/DataExplorerBtns.ts b/ui/cypress/support/utils/dataExplorer/DataExplorerBtns.ts
index 7e1226adea..da3de0faef 100644
--- a/ui/cypress/support/utils/dataExplorer/DataExplorerBtns.ts
+++ b/ui/cypress/support/utils/dataExplorer/DataExplorerBtns.ts
@@ -92,7 +92,7 @@ export class DataExplorerBtns {
.click();
}
public static editDataViewButton(dataViewName: string) {
- return cy.dataCy('edit-data-view-' + dataViewName);
+ return cy.dataCy('edit-data-view-' + dataViewName.replaceAll(' ', ''));
}
public static editWidget(widgetName: string) {
diff --git a/ui/cypress/tests/dataExplorer/timeOrderDataView.spec.ts b/ui/cypress/tests/dataExplorer/timeOrderDataView.spec.ts
index be5995cdf0..276d902cf7 100644
--- a/ui/cypress/tests/dataExplorer/timeOrderDataView.spec.ts
+++ b/ui/cypress/tests/dataExplorer/timeOrderDataView.spec.ts
@@ -17,7 +17,6 @@
*/
import { DataExplorerUtils } from '../../support/utils/dataExplorer/DataExplorerUtils';
-import { DataExplorerBtns } from '../../support/utils/dataExplorer/DataExplorerBtns';
import { DataExplorerWidget } from '../../support/model/DataExplorerWidget';
describe('Test Time Order in Data Explorer', () => {
@@ -53,7 +52,7 @@ describe('Test Time Order in Data Explorer', () => {
// Save and leave view, edit view again and check ascending order
DataExplorerUtils.saveDataViewConfiguration();
- DataExplorerBtns.editDataViewButton('New chart');
+ DataExplorerUtils.editDataView('New chart');
DataExplorerUtils.clickOrderBy('ascending');
DataExplorerUtils.openVisualizationConfig();
DataExplorerUtils.selectVisualizationType(DataExplorerWidget.TABLE);