You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2026/06/22 18:37:13 UTC
(streampipes) branch fix-edit-adapter-flaky-test created (now 50abfc96e7)
This is an automated email from the ASF dual-hosted git repository.
dominikriemer pushed a change to branch fix-edit-adapter-flaky-test
in repository https://gitbox.apache.org/repos/asf/streampipes.git
at 50abfc96e7 fix: Flaky edit adapter persistence test
This branch includes the following new commits:
new 50abfc96e7 fix: Flaky edit adapter persistence test
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(streampipes) 01/01: fix: Flaky edit adapter persistence test
Posted by ri...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dominikriemer pushed a commit to branch fix-edit-adapter-flaky-test
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 50abfc96e7fd19ee08c2a1d9cd0774da024dbff3
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Mon Jun 22 20:36:51 2026 +0200
fix: Flaky edit adapter persistence test
---
ui/cypress/support/utils/chart/ChartBtns.ts | 16 +++++++++++-----
ui/cypress/support/utils/chart/ChartUtils.ts | 22 +++++++++++++++-------
ui/cypress/tests/connect/editAdapter.smoke.spec.ts | 4 +---
.../datalake-configuration.component.html | 2 +-
4 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/ui/cypress/support/utils/chart/ChartBtns.ts b/ui/cypress/support/utils/chart/ChartBtns.ts
index 0d29bd966d..8e9d43cdf7 100644
--- a/ui/cypress/support/utils/chart/ChartBtns.ts
+++ b/ui/cypress/support/utils/chart/ChartBtns.ts
@@ -347,17 +347,23 @@ export class ChartBtns {
}
public static datalakeNumberEvents() {
- return cy.dataCy('datalake-number-of-events', { timeout: 10000 });
+ return cy.dataCy('datalake-number-of-events', { timeout: 30000 });
}
public static datalakeTotalCountBtn() {
return cy.dataCy('datalake-total-count-button', { timeout: 10000 });
}
- public static datalakeNumberOfEventsSpinner() {
- return cy.dataCy('datalake-number-of-events-spinner', {
- timeout: 30000,
- });
+ public static datalakeTotalCountValue() {
+ return cy.dataCy('datalake-total-count-value', { timeout: 30000 });
+ }
+
+ public static datalakeTotalCountControl() {
+ return cy.get(
+ '[data-cy="datalake-total-count-button"], ' +
+ '[data-cy="datalake-total-count-value"]',
+ { timeout: 30000 },
+ );
}
public static dashboardAssetCheckboxBtn() {
diff --git a/ui/cypress/support/utils/chart/ChartUtils.ts b/ui/cypress/support/utils/chart/ChartUtils.ts
index 8a103127bc..e3cf9567b7 100644
--- a/ui/cypress/support/utils/chart/ChartUtils.ts
+++ b/ui/cypress/support/utils/chart/ChartUtils.ts
@@ -805,14 +805,22 @@ export class ChartUtils {
return currentDate;
}
- public static getDatalakeNumberOfEvents(): Cypress.Chainable<number> {
- ChartBtns.datalakeTotalCountBtn().should('be.visible').click();
- ChartBtns.datalakeTotalCountBtn().should('not.exist');
- ChartBtns.datalakeNumberOfEventsSpinner().should('not.exist');
-
- return cy
- .dataCy('datalake-number-of-events', { timeout: 10000 })
+ public static getDatalakeNumberOfEvents(
+ greaterThan?: number,
+ ): Cypress.Chainable<number> {
+ return ChartBtns.datalakeTotalCountControl()
+ .should('be.visible')
+ .click()
+ .then(() => ChartBtns.datalakeTotalCountValue())
.should('be.visible')
+ .should($value => {
+ const count = Number($value.text().replaceAll(',', '').trim());
+
+ expect(Number.isNaN(count)).to.equal(false);
+ if (greaterThan !== undefined) {
+ expect(count).to.be.greaterThan(greaterThan);
+ }
+ })
.invoke('text')
.then(text => Number(text.replaceAll(',', '').trim()));
}
diff --git a/ui/cypress/tests/connect/editAdapter.smoke.spec.ts b/ui/cypress/tests/connect/editAdapter.smoke.spec.ts
index d7e7977365..19618503ff 100644
--- a/ui/cypress/tests/connect/editAdapter.smoke.spec.ts
+++ b/ui/cypress/tests/connect/editAdapter.smoke.spec.ts
@@ -115,9 +115,7 @@ describe('Test Edit Adapter', () => {
cy.wait(3000);
ChartUtils.goToDatalakeConfiguration();
- ChartUtils.getDatalakeNumberOfEvents().then(newValue => {
- expect(newValue).to.be.greaterThan(initialValue);
- });
+ ChartUtils.getDatalakeNumberOfEvents(initialValue);
});
});
diff --git a/ui/src/app/dataset/components/datalake-configuration/datalake-configuration.component.html b/ui/src/app/dataset/components/datalake-configuration/datalake-configuration.component.html
index 72c6816298..3b3e882896 100644
--- a/ui/src/app/dataset/components/datalake-configuration/datalake-configuration.component.html
+++ b/ui/src/app/dataset/components/datalake-configuration/datalake-configuration.component.html
@@ -143,7 +143,7 @@
<sp-label
tone="neutral"
class="cursor-pointer"
- data-cy="datalake-total-count-button"
+ data-cy="datalake-total-count-value"
minWidth="100px"
[labelText]="
configurationEntry.eventsTotal