From e69b2fa46bbd866de5ce30bcc2e8a805b810a73a Mon Sep 17 00:00:00 2001 From: portikM Date: Mon, 6 Nov 2023 10:33:17 -0500 Subject: [PATCH] fix(kdropdownitem): minor fix --- src/components/KDropdown/KDropdown.cy.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/KDropdown/KDropdown.cy.ts b/src/components/KDropdown/KDropdown.cy.ts index 8f6f0c7114..ebeb4eb996 100644 --- a/src/components/KDropdown/KDropdown.cy.ts +++ b/src/components/KDropdown/KDropdown.cy.ts @@ -127,11 +127,12 @@ describe('KDropdown', () => { cy.get('.k-dropdown-popover').should('contain.html', itemSlotContent) }) - it('correctly renders all item types', () => { + it('correctly renders all item types and dividers', () => { const itemSlotContent = ` A button @@ -199,6 +200,7 @@ describe('KDropdown', () => { cy.getTestId('dropdown-list').eq(0).find('.k-dropdown-item').should('have.length', 6) cy.getTestId('dropdown-list').eq(0).find('.has-divider').should('have.length', 2) + cy.getTestId('dropdown-list').eq(0).find('.danger').should('have.length', 1) cy.get('[data-testid="button"] button').should('be.visible') cy.get('[data-testid="disabled-button"] button').should('be.visible')