test: cy-stability for dropdown

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2022-09-19 13:15:25 +05:30
parent 9cca739580
commit 312120fd0b
35 changed files with 149 additions and 50 deletions

View File

@@ -36,7 +36,7 @@ function createWebhook(hook, test) {
.type('{downarrow}')
.type('{downarrow}')
cy.getActiveSelection().find('.ant-select-item-option-content').contains('Content-Type').should('exist').click();
cy.getActiveSelection('.nc-dropdown-webhook-header').find('.ant-select-item-option-content').contains('Content-Type').should('exist').click();
cy.get("input.nc-input-hook-header-value")
.should("exist")
@@ -78,7 +78,7 @@ function configureWebhook(hook, test) {
if (hook?.event) {
cy.get(".nc-text-field-hook-event").should("exist").click();
cy.getActiveSelection()
cy.getActiveSelection('.nc-dropdown-webhook-event')
.find(`.ant-select-item`)
.contains(hook.event)
.should("exist")