From 66cb99d1ed85940a6287a819f3dfbe9b3ab9f0c0 Mon Sep 17 00:00:00 2001 From: Philipp Zehnder Date: Thu, 5 Dec 2024 14:42:10 +0100 Subject: [PATCH] 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" },