@@ -29,7 +29,7 @@ import '@testing-library/jest-dom'
2929import userEvent from '@testing-library/user-event'
3030import { Alert } from '../index'
3131import type { AlertProps } from '../props'
32- import { IconGroupLine } from '@instructure/ui-icons'
32+ import { GroupInstUIIcon } from '@instructure/ui-icons'
3333
3434describe ( '<Alert />' , ( ) => {
3535 let srdiv : HTMLDivElement | null
@@ -97,10 +97,10 @@ describe('<Alert />', () => {
9797 NonNullable < AlertProps [ 'variant' ] > ,
9898 string
9999 > = {
100- error : 'IconNo ' ,
101- info : 'IconInfoBorderless ' ,
102- success : 'IconCheckMark ' ,
103- warning : 'IconWarningBorderless '
100+ error : 'CircleX ' ,
101+ info : 'Info ' ,
102+ success : 'CircleCheck ' ,
103+ warning : 'TriangleAlert '
104104 }
105105
106106 ; (
@@ -115,7 +115,7 @@ describe('<Alert />', () => {
115115 Success: Sample alert text.
116116 </ Alert >
117117 )
118- const icon = container . querySelector ( 'svg[class$="-svgIcon "]' )
118+ const icon = container . querySelector ( 'svg[class^="lucide "]' )
119119
120120 expect ( icon ) . toHaveAttribute ( 'name' , iconComponent )
121121 } )
@@ -167,10 +167,12 @@ describe('<Alert />', () => {
167167 } )
168168
169169 it ( 'should render an icon when provided as the `renderIcon` prop' , ( ) => {
170- const { container } = render ( < Alert renderCustomIcon = { < IconGroupLine /> } /> )
171- const icon = container . querySelector ( 'svg[class$="-svgIcon"]' )
170+ const { container } = render (
171+ < Alert renderCustomIcon = { < GroupInstUIIcon /> } />
172+ )
173+ const icon = container . querySelector ( 'svg[class^="lucide"]' )
172174
173- expect ( icon ) . toHaveAttribute ( 'name' , 'IconGroup ' )
175+ expect ( icon ) . toHaveAttribute ( 'name' , 'Group ' )
174176 expect ( icon ) . toBeInTheDocument ( )
175177 } )
176178
0 commit comments