Skip to content

Commit

Permalink
fix(*): pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiarrowood committed Apr 8, 2024
1 parent 2e7c7f6 commit cec5330
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/KAlert/KAlert.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ describe('KAlert', () => {
})

it('displays icon passed through icon slot', () => {
const dragon = '🐉'
const iconSlotContent = 'icon slot content'
const testId = 'slotted-icon'

mount(KAlert, {
slots: {
icon: h('div', { 'data-testid': testId }, dragon),
icon: h('div', { 'data-testid': testId }, iconSlotContent),
},
})

cy.get('.alert-icon-container').findTestId(testId).should('be.visible')
cy.get('.alert-icon-container').findTestId(testId).should('contain.text', dragon)
cy.get('.alert-icon-container').findTestId(testId).should('contain.text', iconSlotContent)
})

it('emits dismiss event when dismiss button is clicked', () => {
Expand Down
6 changes: 3 additions & 3 deletions src/components/KEmptyState/KEmptyState.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@ describe('KEmptyState', () => {
})

it('displays icon passed through icon slot', () => {
const dragon = '🐉'
const iconSlotContent = 'icon slot content'
const testId = 'slotted-icon'

mount(KEmptyState, {
slots: {
icon: h('div', { 'data-testid': testId }, dragon),
icon: h('div', { 'data-testid': testId }, iconSlotContent),
},
})

cy.get('.empty-state-icon').findTestId(testId).should('be.visible')
cy.get('.empty-state-icon').findTestId(testId).should('contain.text', dragon)
cy.get('.empty-state-icon').findTestId(testId).should('contain.text', iconSlotContent)
})

it('emits event when action button is clicked', () => {
Expand Down

0 comments on commit cec5330

Please sign in to comment.