Skip to content

Commit 78a3908

Browse files
committed
adjust test
1 parent 3c7c866 commit 78a3908

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

tests/integration/support/commands.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,18 @@ Cypress.Commands.add(
169169
checkIfResourceIsRemoved = true,
170170
selectSearchResult = false,
171171
searchInPlainTableText = false,
172+
parentSelector = null,
172173
} = options;
173174

174-
cy.wait(500)
175-
.get('ui5-input[id="search-input"]:visible')
175+
cy.wait(500);
176+
if (parentSelector) {
177+
cy.get(parentSelector)
178+
.find('ui5-input[id="search-input"]:visible')
179+
.find('input')
180+
.type(resourceName);
181+
}
182+
183+
cy.get('ui5-input[id="search-input"]:visible')
176184
.find('input')
177185
.type(resourceName);
178186

tests/integration/tests/kyma-cluster/test-kyma-modules.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,9 @@ context('Test Kyma Modules views', () => {
242242
});
243243

244244
it('Test deleting Modules from List and Details', { retries: 3 }, () => {
245-
cy.get('.modules-list').deleteFromGenericList('Module', 'eventing', {
245+
cy.deleteFromGenericList('Module', 'eventing', {
246246
searchInPlainTableText: true,
247+
parentSelector: '.modules-list',
247248
});
248249

249250
// Uncomment after adding local KLM

0 commit comments

Comments
 (0)