diff --git a/tests/integration/support/commands.js b/tests/integration/support/commands.js index cc1a72361f..68578fff0e 100644 --- a/tests/integration/support/commands.js +++ b/tests/integration/support/commands.js @@ -61,6 +61,7 @@ Cypress.Commands.add('filterWithNoValue', { prevSubject: true }, $elements => Cypress.Commands.add('goToNamespaceDetails', () => { // Go to the details of namespace cy.getLeftNav() + .find('ui5-side-navigation-item') .contains('Namespaces') .click(); diff --git a/tests/integration/tests/cluster/test-command-palette.spec.js b/tests/integration/tests/cluster/test-command-palette.spec.js index 9528687ccc..b0881dea1e 100644 --- a/tests/integration/tests/cluster/test-command-palette.spec.js +++ b/tests/integration/tests/cluster/test-command-palette.spec.js @@ -149,9 +149,8 @@ context('Test Command Palette navigation', () => { getQueryInput().type('pref'); // autocomplete - cy.get('body') - .tab() - .type('{enter}', { force: true }); + cy.get('body').tab(); + getQueryInput().type('{enter}', { force: true }); cy.contains('Cluster interaction').should('be.visible'); diff --git a/tests/integration/tests/namespace/test-settings.spec.js b/tests/integration/tests/namespace/test-settings.spec.js index 826e40e075..dda048aa31 100644 --- a/tests/integration/tests/namespace/test-settings.spec.js +++ b/tests/integration/tests/namespace/test-settings.spec.js @@ -123,6 +123,7 @@ context('Test app settings and preferences', () => { .click(); cy.getLeftNav() + .find('ui5-side-navigation-item') .contains('Namespaces') .click();