diff --git a/src/components/KAlert/KAlert.cy.ts b/src/components/KAlert/KAlert.cy.ts index b6c199dc91..a85cd6e0b4 100644 --- a/src/components/KAlert/KAlert.cy.ts +++ b/src/components/KAlert/KAlert.cy.ts @@ -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', () => { diff --git a/src/components/KEmptyState/KEmptyState.cy.ts b/src/components/KEmptyState/KEmptyState.cy.ts index 7feec7435d..850206528c 100644 --- a/src/components/KEmptyState/KEmptyState.cy.ts +++ b/src/components/KEmptyState/KEmptyState.cy.ts @@ -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', () => {