Skip to content

Commit

Permalink
fix(kdropdownitem): minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM committed Nov 6, 2023
1 parent 2ec91e1 commit e69b2fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/KDropdown/KDropdown.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `
<KDropdownItem
@click="() => {}"
data-testid="button"
danger
>
A button
</KDropdownItem>
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit e69b2fa

Please sign in to comment.