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

zehnder pushed a commit to branch 3933-test-editadaptervaluesandfields-fails
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to 
refs/heads/3933-test-editadaptervaluesandfields-fails by this push:
     new bbc8ba4e20 fix(#3933): Fix failing test
bbc8ba4e20 is described below

commit bbc8ba4e202ed50ae1a2daf52fa92c232da32533
Author: Philipp Zehnder <[email protected]>
AuthorDate: Mon Nov 17 12:50:59 2025 +0100

    fix(#3933): Fix failing test
---
 .../tests/connect/editAdapterValuesAndFields.spec.ts      | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/ui/cypress/tests/connect/editAdapterValuesAndFields.spec.ts 
b/ui/cypress/tests/connect/editAdapterValuesAndFields.spec.ts
index 7b00e8261f..9def245019 100644
--- a/ui/cypress/tests/connect/editAdapterValuesAndFields.spec.ts
+++ b/ui/cypress/tests/connect/editAdapterValuesAndFields.spec.ts
@@ -89,8 +89,11 @@ describe('Test Edit Adapter', () => {
         );
 
         // Delete inserted values in edit field
-        ConnectBtns.runtimeNameInput().clear();
-        cy.get('[id="domainproperty"]').clear();
+        ConnectBtns.runtimeNameInput().clear().type('test-density');
+        cy.get('[id="domainproperty"]')
+            .clear()
+            .type('http://schema.org/Numbers');
+
         ConnectBtns.changeRuntimeType()
             .click()
             .get('mat-option')
@@ -98,10 +101,11 @@ describe('Test Edit Adapter', () => {
             .click();
         cy.dataCy('connect-schema-correction-value').clear();
         ConnectBtns.saveEditProperty().click();
-        cy.get('[class="general-panel"]').should(
+        ConnectEventSchemaUtils.schemaPreviewResultEvent().should(
             'include.text',
             'test-property-1',
         );
+
         ConnectBtns.schemaNextBtn().click();
         ConnectBtns.storeEditAdapter().click();
         ConnectUtils.closeAdapterPreview();
@@ -109,6 +113,7 @@ describe('Test Edit Adapter', () => {
         // Configure adapter with pressure instead of flowrate
         ConnectBtns.openActionsMenu('Test Adapter');
         ConnectBtns.editAdapter().click();
+
         const newUserConfiguration = AdapterBuilder.create(
             'Machine_Data_Simulator',
         )
@@ -117,11 +122,11 @@ describe('Test Edit Adapter', () => {
             .build();
         ConnectUtils.configureAdapter(newUserConfiguration);
 
-        // Check if given property still exists and close view afterwards
-        cy.get('[class="general-panel"]').should(
+        ConnectEventSchemaUtils.schemaPreviewResultEvent().should(
             'include.text',
             'test-property-1',
         );
+
         ConnectBtns.schemaNextBtn().click();
         ConnectBtns.storeEditAdapter().click();
         ConnectUtils.closeAdapterPreview();

Reply via email to