Skip to content

Commit

Permalink
Merge pull request #28524 from storybookjs/norbert/cpc-revert-addon-a…
Browse files Browse the repository at this point in the history
…nd-panel-renames
  • Loading branch information
shilman authored Jul 10, 2024
2 parents 7572a5e + 5174bd9 commit 61e1363
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/core/src/docs-tools/shared.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const ADDON_ID = '@storybook/core/docs';
export const ADDON_ID = 'storybook/docs';
export const PANEL_ID = `${ADDON_ID}/panel`;
export const PARAM_KEY = `docs`;

Expand Down
4 changes: 2 additions & 2 deletions code/core/src/manager-api/tests/layout.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,14 +471,14 @@ describe('layout API', () => {
});

it('should set selectedPanel initially', () => {
const panelName = '@storybook/core/a11y/panel';
const panelName = 'storybook/a11y/panel';
layoutApi.setOptions({ selectedPanel: panelName });

expect(getLastSetStateArgs()[0].selectedPanel).toEqual(panelName);
});

it('should change selectedPanel if it is defined in the options and is different', () => {
const panelName = '@storybook/core/a11y/panel';
const panelName = 'storybook/a11y/panel';
layoutApi.setOptions({});
layoutApi.setOptions({ selectedPanel: panelName });

Expand Down

0 comments on commit 61e1363

Please sign in to comment.