diff --git a/uui-components/src/widgets/Avatar.tsx b/uui-components/src/widgets/Avatar.tsx index 56d1851fbc..5c2c5aa243 100644 --- a/uui-components/src/widgets/Avatar.tsx +++ b/uui-components/src/widgets/Avatar.tsx @@ -46,7 +46,7 @@ function AvatarComponent(props: AvatarProps, ref: React.ForwardedRef { render(); const component: HTMLImageElement = screen.getByAltText('Test avatar'); fireEvent.error(component); - expect(component.src).toEqual('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/Images/avatar_placeholder.jpg'); + expect(component.src).toEqual('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/icons/avatar_placeholder.svg'); }); it('should show stub when prop isLoading true', () => { render(); const component: HTMLImageElement = screen.getByAltText('Test avatar'); - expect(component.src).toEqual('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/Images/avatar_placeholder.jpg'); + expect(component.src).toEqual('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/icons/avatar_placeholder.svg'); }); it("shouldn't call internal onError if there is onError in rawProps", () => { diff --git a/uui-components/src/widgets/__tests__/__snapshots__/Avatar.test.tsx.snap b/uui-components/src/widgets/__tests__/__snapshots__/Avatar.test.tsx.snap index 17810bed1e..d8601eb000 100644 --- a/uui-components/src/widgets/__tests__/__snapshots__/Avatar.test.tsx.snap +++ b/uui-components/src/widgets/__tests__/__snapshots__/Avatar.test.tsx.snap @@ -16,7 +16,7 @@ exports[`Avatar should be rendered correctly with props 1`] = ` className="avatar" height="36" onError={[Function]} - src="https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/Images/avatar_placeholder.jpg" + src="https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/icons/avatar_placeholder.svg" width="36" /> `; diff --git a/uui/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuAvatar.test.tsx.snap b/uui/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuAvatar.test.tsx.snap index 9e0a61d810..31e3dd770b 100644 --- a/uui/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuAvatar.test.tsx.snap +++ b/uui/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuAvatar.test.tsx.snap @@ -8,7 +8,7 @@ exports[`MainMenuAvatar should be rendered correctly 1`] = ` className="avatar" height="36" onError={[Function]} - src="https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/Images/avatar_placeholder.jpg" + src="https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/icons/avatar_placeholder.svg" width="36" />