diff --git a/.storybook/theme-addon/register.tsx b/.storybook/theme-addon/register.tsx index 272b96ca5f..7c3ad306b4 100644 --- a/.storybook/theme-addon/register.tsx +++ b/.storybook/theme-addon/register.tsx @@ -7,7 +7,7 @@ import type {API} from '@storybook/api'; import {getThemeType} from '../../src/components/theme/getThemeType'; import {themes} from '../theme'; -const ADDON_ID = 'yc-theme-addon'; +const ADDON_ID = 'g-theme-addon'; const TOOL_ID = `${ADDON_ID}tool`; addons.register(ADDON_ID, (api) => { diff --git a/src/components/Alert/Alert.test.tsx b/src/components/Alert/Alert.test.tsx index 5f89bb3cf5..fcc0a43ed2 100644 --- a/src/components/Alert/Alert.test.tsx +++ b/src/components/Alert/Alert.test.tsx @@ -6,6 +6,7 @@ import {render, screen} from '../../../test-utils/utils'; import {Flex} from '../layout'; import {Alert} from './Alert'; +import {bAlert} from './constants'; import type {AlertTheme} from './types'; const title = 'Where will you go, hero?'; @@ -80,7 +81,7 @@ describe('Alert', () => { ); // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access - const icon = await container.querySelector('.yc-alert__icon'); + const icon = await container.querySelector(`.${bAlert('icon')}`); expect(icon).toBeInTheDocument(); }, @@ -90,7 +91,7 @@ describe('Alert', () => { const {container} = render(); // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access - const icon = await container.querySelector('.yc-alert__icon'); + const icon = await container.querySelector(`.${bAlert('icon')}`); expect(icon).not.toBeInTheDocument(); }); diff --git a/src/components/Alert/__snapshots__/Alert.test.tsx.snap b/src/components/Alert/__snapshots__/Alert.test.tsx.snap index 117c792346..eadecdf83e 100644 --- a/src/components/Alert/__snapshots__/Alert.test.tsx.snap +++ b/src/components/Alert/__snapshots__/Alert.test.tsx.snap @@ -3,18 +3,18 @@ exports[`Alert has predicted styles if inline layout rendered 1`] = `
Where will you go, hero?