Skip to content

Commit

Permalink
test(kradio): fix test [KHCP-8996]
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM committed Oct 26, 2023
1 parent 1c9333e commit e83d8b5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/KRadio/KRadio.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ describe('KRadio', () => {
})
})

it('renders the default slot content when isCard prop is true', () => {
it('renders the default slot content when card prop is true', () => {
const slotText = 'Hello world'

mount(KRadio, {
props: {
modelValue: false,
selectedValue: true,
isCard: true,
card: true,
label: 'Some label',
},
slots: {
Expand All @@ -59,25 +59,25 @@ describe('KRadio', () => {
cy.get('.radio-card').should('contain.text', slotText)
})

it('renders input element hidden when isCard prop is true', () => {
it('renders input element hidden when card prop is true', () => {
mount(KRadio, {
props: {
modelValue: false,
selectedValue: true,
isCard: true,
card: true,
label: 'Some label',
},
})

cy.get('input').should('not.be.visible')
})

it('emits checked value on click within entire label element when isCard prop is true', () => {
it('emits checked value on click within entire label element when card prop is true', () => {
mount(KRadio, {
props: {
modelValue: false,
selectedValue: true,
isCard: true,
card: true,
},
slots: {
default: () => 'Hello',
Expand All @@ -93,12 +93,12 @@ describe('KRadio', () => {
})
})

it('should not be selectable when disabled and isCard prop is true', () => {
it('should not be selectable when disabled and card prop is true', () => {
mount(KRadio, {
props: {
modelValue: false,
selectedValue: true,
isCard: true,
card: true,
},
attrs: {
disabled: true,
Expand Down

0 comments on commit e83d8b5

Please sign in to comment.