Skip to content

Commit 39bcb04

Browse files
shawonshawon
authored andcommitted
fix multiple clicks
1 parent e215245 commit 39bcb04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eform-client/cypress/e2e/plugins/backend-configuration-pn/BackendConfigurationProperties.page.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class BackendConfigurationPropertiesPage extends PageWithNavbarPage {
1616
this.backendConfigurationPnPropertiesButton().then(($ele) => {
1717
if (!$ele.is(':visible')) {
1818
this.backendConfigurationPnButton().click();
19+
1920
}
2021
});
2122
this.backendConfigurationPnPropertiesButton().click();
@@ -286,12 +287,13 @@ export class PropertyRowObject {
286287
return;
287288
}
288289

289-
const $actionCell = $r.find('[id^="action-items"]');
290+
const $actionCell = $r.find('[id^="action-items"]').filter(':visible').first();
290291

291292
if ($actionCell.length > 0) {
292293
cy.wrap($actionCell)
293294
.find('#actionMenu', { timeout: 500 })
294295
.filter(':visible')
296+
.first()
295297
.should('be.visible')
296298
.click({ force: true });
297299
} else {

0 commit comments

Comments
 (0)