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

zehnder pushed a commit to branch 3372-fix-cypress-test-timerangeselectorsspects
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to 
refs/heads/3372-fix-cypress-test-timerangeselectorsspects by this push:
     new 66cb99d1ed fix(#3372): Try to reproduce ci error
66cb99d1ed is described below

commit 66cb99d1ed85940a6287a819f3dfbe9b3ab9f0c0
Author: Philipp Zehnder <[email protected]>
AuthorDate: Thu Dec 5 14:42:10 2024 +0100

    fix(#3372): Try to reproduce ci error
---
 ui/cypress/tests/datalake/timeRangeSelectors.spec.ts | 1 +
 ui/package.json                                      | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ui/cypress/tests/datalake/timeRangeSelectors.spec.ts 
b/ui/cypress/tests/datalake/timeRangeSelectors.spec.ts
index 21a1604fb3..8c20887d53 100644
--- a/ui/cypress/tests/datalake/timeRangeSelectors.spec.ts
+++ b/ui/cypress/tests/datalake/timeRangeSelectors.spec.ts
@@ -123,6 +123,7 @@ function getLocalizedDateString(date: Date) {
 }
 
 function getLocalizedTimeString(date: Date) {
+    // date.toISOString().substr(11, 8); // idea for fix of test
     return date.toLocaleTimeString().slice(0, 8);
 }
 
diff --git a/ui/package.json b/ui/package.json
index a0b9eb57ff..7be2dd3efd 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -24,7 +24,7 @@
     "format:fix": "prettier --write .",
     "lint-staged": "lint-staged",
     "test-cypress-open": "cypress open --env DEVELOPMENT=true",
-    "test-cypress-smoke": "npx cypress run --spec 
'cypress/tests/**/*.smoke.spec.ts'",
+    "test-cypress-smoke": "npx cypress run --spec 
'cypress/tests/datalake/timeRangeSelectors.spec.ts'",
     "test-cypress-all": "npx cypress run --spec 'cypress/tests/**/*.spec.ts'",
     "prepare": "cd ../ && husky install ./ui/.husky"
   },

Reply via email to