Skip to content

Commit

Permalink
test(kselect): fix component test [KHCP-8985]
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM committed Oct 11, 2023
1 parent 0326676 commit 19c399f
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/components/KSelect/KSelect.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,26 +120,7 @@ describe('KSelect', () => {
cy.get('.k-input-label .kong-icon-help').should('be.visible')
})

it('renders an asterisk when `overlayLabel` is true and `required` attr is set', () => {
const label = 'A label'
mount(KSelect, {
props: {
testMode: true,
label,
overlayLabel: true,
items: [{
label: 'Label 1',
value: 'label1',
}],
},
attrs: {
required: true,
},
})

cy.get('.text-on-input label').should('contain.text', label)
cy.get('.text-on-input .is-required').should('exist')
})
it.skip('renders label with required symbol when `required` attribute is set', () => { })

it('renders with correct appearance - select', () => {
mount(KSelect, {
Expand Down

0 comments on commit 19c399f

Please sign in to comment.