This is an automated email from the ASF dual-hosted git repository. dominikriemer pushed a commit to branch improve-dataset-selection-charts in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 39b396d9380aa45b0f4ac7de6bab0b3103f44d85 Author: Dominik Riemer <[email protected]> AuthorDate: Sat Jun 13 13:24:54 2026 +0200 Fix cypress tests --- ui/cypress/support/utils/chart/ChartUtils.ts | 13 +++++-------- ui/cypress/tests/userManagement/testUserRoleDataset.spec.ts | 3 +-- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ui/cypress/support/utils/chart/ChartUtils.ts b/ui/cypress/support/utils/chart/ChartUtils.ts index 0f7788377a..12a38e78f1 100644 --- a/ui/cypress/support/utils/chart/ChartUtils.ts +++ b/ui/cypress/support/utils/chart/ChartUtils.ts @@ -493,19 +493,16 @@ export class ChartUtils { $body.find('[data-cy="data-explorer-select-data-set"]').length ) { cy.dataCy('data-explorer-select-data-set') - .click() - .get('mat-option') - .contains(dataSet) - .click(); + .clear() + .type(dataSet); + cy.get('mat-option').contains(dataSet).click(); } }); } public static assertSelectDataSet(dataSet: string) { - cy.dataCy('data-explorer-select-data-set') - .click() - .get('mat-option') - .should('contain.text', dataSet); + cy.dataCy('data-explorer-select-data-set').clear().type(dataSet); + cy.get('mat-option').should('contain.text', dataSet); } /** diff --git a/ui/cypress/tests/userManagement/testUserRoleDataset.spec.ts b/ui/cypress/tests/userManagement/testUserRoleDataset.spec.ts index ab6217fa6f..25819aa64f 100644 --- a/ui/cypress/tests/userManagement/testUserRoleDataset.spec.ts +++ b/ui/cypress/tests/userManagement/testUserRoleDataset.spec.ts @@ -172,8 +172,7 @@ describe('Test Dataset Permissions', () => { cy.get('sp-alert-banner').should('be.visible'); ChartBtns.discardDataExplorerWidgetBtn().click(); } else { - cy.dataCy('data-explorer-select-data-set').click(); - cy.get('mat-option').contains(datasetName).click(); + ChartUtils.selectDataSet(datasetName); ChartBtns.discardDataExplorerWidgetBtn().click(); ChartUtils.addDataViewAndTableWidget(datasetName, true); ChartUtils.saveDataViewConfiguration(false, false, 'test');
