Skip to content

Commit

Permalink
fix: fixing radio test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj committed Sep 1, 2023
1 parent 59129cb commit 7463932
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ describe('Radio Input Component', () => {
initialValue: ''
}
})

console.log(wrapper.html())
for (const value of values) {
expect(wrapper.html()).toContain(
`<bx-radio-button label-text="${value.text}" value="${value.value}"></bx-radio-button>`
`<cds-radio-button label-text="${value.text}"></cds-radio-button>`
)
}
})
Expand All @@ -43,8 +43,8 @@ describe('Radio Input Component', () => {
})

await wrapper
.find(`[name=${id}rb]`)
.trigger('bx-radio-button-group-changed', {
.find(`[id=${id}rb]`)
.trigger('cds-radio-button-group-changed', {
detail: { value: 'A' }
})

Expand All @@ -67,8 +67,8 @@ describe('Radio Input Component', () => {
})

await wrapper
.find(`[name=${id}rb]`)
.trigger('bx-radio-button-group-changed', {
.find(`[id=${id}rb]`)
.trigger('cds-radio-button-group-changed', {
detail: { value: 'B' }
})

Expand All @@ -90,8 +90,8 @@ describe('Radio Input Component', () => {
})

await wrapper
.find(`[name=${id}rb]`)
.trigger('bx-radio-button-group-changed', {
.find(`[id=${id}rb]`)
.trigger('cds-radio-button-group-changed', {
detail: { value: 'A' }
})

Expand All @@ -107,8 +107,8 @@ describe('Radio Input Component', () => {
expect(updateEvent[0]).toStrictEqual(['A'])

await wrapper
.find(`[name=${id}rb]`)
.trigger('bx-radio-button-group-changed', {
.find(`[id=${id}rb]`)
.trigger('cds-radio-button-group-changed', {
detail: { value: 'B' }
})

Expand Down

0 comments on commit 7463932

Please sign in to comment.