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 cabe74f15 fix: Fix tests that are only flaky during CI (#2409)
cabe74f15 is described below
commit cabe74f157a34bb708673c9e1342b4e83d6530cc
Author: Dominik Riemer <[email protected]>
AuthorDate: Tue Jan 9 11:16:49 2024 +0100
fix: Fix tests that are only flaky during CI (#2409)
---
ui/cypress/support/utils/datalake/DataLakeUtils.ts | 9 +++++----
.../{2d-correlation.spec.ts => 2d-correlation.smoke.spec.ts} | 0
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ui/cypress/support/utils/datalake/DataLakeUtils.ts
b/ui/cypress/support/utils/datalake/DataLakeUtils.ts
index 9b567b31f..619e5dd62 100644
--- a/ui/cypress/support/utils/datalake/DataLakeUtils.ts
+++ b/ui/cypress/support/utils/datalake/DataLakeUtils.ts
@@ -316,9 +316,9 @@ export class DataLakeUtils {
public static selectTimeRange(from: Date, to: Date) {
DataLakeUtils.setTimeInput('time-range-from', from);
- DataLakeUtils.clickSetTime();
+ DataLakeUtils.clickCancelTime();
DataLakeUtils.setTimeInput('time-range-to', to);
- DataLakeUtils.clickSetTime();
+ DataLakeUtils.clickCancelTime();
}
public static setTimeInput(field: string, date: Date) {
@@ -327,8 +327,9 @@ export class DataLakeUtils {
.type(DataLakeUtils.makeTimeString(date), { force: true });
}
- public static clickSetTime() {
- cy.get('.owl-dt-container-buttons > button:nth-child(2)').click();
+ public static clickCancelTime() {
+ cy.get('.owl-dt-container-buttons > button:nth-child(1)').click();
+ cy.wait(1000);
}
public static makeTimeString(date: Date) {
diff --git a/ui/cypress/tests/datalake/widgets/2d-correlation.spec.ts
b/ui/cypress/tests/datalake/widgets/2d-correlation.smoke.spec.ts
similarity index 100%
rename from ui/cypress/tests/datalake/widgets/2d-correlation.spec.ts
rename to ui/cypress/tests/datalake/widgets/2d-correlation.smoke.spec.ts