Skip to content

Commit

Permalink
refactor: Remove hierarchy separator from stories
Browse files Browse the repository at this point in the history
  • Loading branch information
anicholls committed Nov 17, 2020
1 parent 31b9050 commit 57abafd
Show file tree
Hide file tree
Showing 162 changed files with 231 additions and 245 deletions.
3 changes: 1 addition & 2 deletions .storybook/stories/stories_api_pattern_guidelines.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ import {Meta} from '@storybook/addon-docs/blocks';
import ApiPatternGuidelines from '../../API_PATTERN_GUIDELINES.md';
import Markdown from '../../utils/storybook/Markdown.tsx';

<Meta title="Welcome|API & Pattern Guidelines" />

<Meta title="Welcome/API & Pattern Guidelines" />
<Markdown content={ApiPatternGuidelines} />
3 changes: 1 addition & 2 deletions .storybook/stories/stories_changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ import {Meta} from '@storybook/addon-docs/blocks';
import Changelog from '../../CHANGELOG.md';
import Markdown from '../../utils/storybook/Markdown.tsx';

<Meta title="Welcome|Changelog" />

<Meta title="Welcome/Changelog" />
<Markdown content={Changelog} />
3 changes: 1 addition & 2 deletions .storybook/stories/stories_component_status.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ import {Meta} from '@storybook/addon-docs/blocks';
import ComponentStatus from '../../COMPONENT_STATUS.md';
import Markdown from '../../utils/storybook/Markdown.tsx';

<Meta title="Welcome|Component Status" />

<Meta title="Welcome/Component Status" />
<Markdown content={ComponentStatus} />
3 changes: 1 addition & 2 deletions .storybook/stories/stories_contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ import {Meta} from '@storybook/addon-docs/blocks';
import Contributing from '../../CONTRIBUTING.md';
import Markdown from '../../utils/storybook/Markdown.tsx';

<Meta title="Welcome|Contributing" />

<Meta title="Welcome/Contributing" />
<Markdown content={Contributing} />
3 changes: 1 addition & 2 deletions .storybook/stories/stories_welcome.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ import {Meta} from '@storybook/addon-docs/blocks';
import Readme from '../../README.md';
import Markdown from '../../utils/storybook/Markdown.tsx';

<Meta title="Welcome|Getting Started" />

<Meta title="Welcome/Getting Started" />
<Markdown content={Readme} />
6 changes: 3 additions & 3 deletions cypress/integration/Avatar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('Avatar', () => {

context('given default avatar light is rendered', () => {
beforeEach(() => {
h.stories.load('Components|Indicators/Avatar/React/Default', 'Light');
h.stories.load('Components/Indicators/Avatar/React/Default', 'Light');
});

it('should not have any axe errors', () => {
Expand All @@ -17,7 +17,7 @@ describe('Avatar', () => {

context('given avatar button light is rendered', () => {
beforeEach(() => {
h.stories.load('Components|Indicators/Avatar Button/React/Default', 'Light');
h.stories.load('Components/Indicators/Avatar Button/React/Default', 'Light');
});

it('should not have any axe errors', () => {
Expand All @@ -27,7 +27,7 @@ describe('Avatar', () => {

context('given avatar button image is rendered', () => {
beforeEach(() => {
h.stories.load('Components|Indicators/Avatar/React/Avatar Button', 'Image');
h.stories.load('Components/Indicators/Avatar/React/Avatar Button', 'Image');
});

it('should not have any axe errors', () => {
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/Breadcrumbs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Breadcrumbs', () => {
});
context('given the default breadcrumb list', () => {
beforeEach(() => {
h.stories.load('Labs|Breadcrumbs/React', 'Default');
h.stories.load('Labs/Breadcrumbs/React', 'Default');
});
it('should not have any axe errors', () => {
cy.checkA11y();
Expand Down Expand Up @@ -79,7 +79,7 @@ describe('Breadcrumbs', () => {

context('given the collapsible breadcrumb list', () => {
beforeEach(() => {
h.stories.load('Labs|Breadcrumbs/React', 'Collapsible');
h.stories.load('Labs/Breadcrumbs/React', 'Collapsible');
});

it('should not have any axe errors', () => {
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('Breadcrumbs', () => {

context('given the collapsible breadcrumb list menu', () => {
beforeEach(() => {
h.stories.load('Labs|Breadcrumbs/React', 'Collapsible');
h.stories.load('Labs/Breadcrumbs/React', 'Collapsible');
openDropdownMenu();
});

Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/Button.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('Button', () => {

context('given primary buttons are rendered', () => {
beforeEach(() => {
h.stories.load('Components|Buttons/Button/React/Standard', 'Primary');
h.stories.load('Components/Buttons/Button/React/Standard', 'Primary');
});

it('should not have any axe errors', () => {
Expand All @@ -23,7 +23,7 @@ describe('Button', () => {

context('given delete buttons are rendered', () => {
beforeEach(() => {
h.stories.load('Components|Buttons/Button/React', 'Delete');
h.stories.load('Components/Buttons/Button/React', 'Delete');
});

it('should not have any axe errors', () => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/Checkbox.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Checkbox', () => {
['Default', 'Alert', 'Error'].forEach(story => {
context(`given the '${story}' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Inputs/Checkbox/React/Top Label', story);
h.stories.load('Components/Inputs/Checkbox/React/Top Label', story);
});

it('should pass accessibility checks', () => {
Expand All @@ -32,7 +32,7 @@ describe('Checkbox', () => {

context(`given the 'Disabled' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Inputs/Checkbox/React/Top Label', 'Disabled');
h.stories.load('Components/Inputs/Checkbox/React/Top Label', 'Disabled');
});

it('should pass accessibility checks', () => {
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/ColorPicker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const getResetButton = () => cy.contains('button', 'Reset');
const getSubmitButton = () => cy.findByLabelText('Submit');
const getSwatch = (color: string) => cy.get(`div[color="${color}"]`);

const colorInputStory = 'Components|Inputs/Color Picker/Color Input/React/Top Label';
const colorPreviewStory = 'Components|Inputs/Color Picker/Color Preview/React/Top Label';
const colorInputStory = 'Components/Inputs/Color Picker/Color Input/React/Top Label';
const colorPreviewStory = 'Components/Inputs/Color Picker/Color Preview/React/Top Label';
const colorPickerStory = 'Labs/Color Picker/React';
const value = '000000';

Expand Down Expand Up @@ -224,7 +224,7 @@ describe('ColorPicker', () => {

context('when the InputInteraction story is loaded', () => {
beforeEach(() => {
h.stories.load('Testing|React/Labs/Color Picker', 'InputInteraction');
h.stories.load('Testing/React/Labs/Color Picker', 'InputInteraction');
});

context('when input is entered into the color input and user hits enter', () => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/Combobox.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Combobox', () => {

context(`given the 'Group of results' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Labs|Combobox/React', 'Group of results');
h.stories.load('Labs/Combobox/React', 'Group of results');
});

it('should have aria-haspopup set to true', () => {
Expand Down Expand Up @@ -329,7 +329,7 @@ describe('Combobox', () => {

context(`given the 'Disabled item' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Labs|Combobox/React', 'Disabled item');
h.stories.load('Labs/Combobox/React', 'Disabled item');
});

context('when the combobox is focused', () => {
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/FormField.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Form Field', () => {

context(`given the Default story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Inputs/Form Field/React', 'Default');
h.stories.load('Components/Inputs/Form Field/React', 'Default');
});

it('should pass accessibility checks', () => {
Expand All @@ -32,7 +32,7 @@ describe('Form Field', () => {
['Hint Alert', 'Hint Error'].forEach(story => {
context(`given the '${story}' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Inputs/Form Field/React', story);
h.stories.load('Components/Inputs/Form Field/React', story);
});

it('should pass accessibility and connect the input with the hint text', () => {
Expand All @@ -44,7 +44,7 @@ describe('Form Field', () => {

context(`given the Label Required story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Inputs/Form Field/React', 'Label Required');
h.stories.load('Components/Inputs/Form Field/React', 'Label Required');
});

it('should pass accessibility and connect the input with the hint text', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/Menu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Menu', () => {

context('given "With Many Items" story is rendered', () => {
beforeEach(() => {
h.stories.load('Labs|Menu/React', 'With Many Items');
h.stories.load('Labs/Menu/React', 'With Many Items');
});

it('should not have any axe errors', () => {
Expand Down
12 changes: 6 additions & 6 deletions cypress/integration/Modal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Modal', () => {
['Default', 'WithoutHook'].forEach(story => {
context(`given the '${story}' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Popups/Modal/React', story);
h.stories.load('Components/Popups/Modal/React', story);
});

it('should not have any axe errors', () => {
Expand Down Expand Up @@ -164,7 +164,7 @@ describe('Modal', () => {

context(`given the 'With Radio buttons' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Popups/Modal/React', 'With Radio buttons');
h.stories.load('Components/Popups/Modal/React', 'With Radio buttons');
});

it('should not have any axe errors', () => {
Expand Down Expand Up @@ -192,7 +192,7 @@ describe('Modal', () => {

context(`given the 'Without close icon' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Popups/Modal/React', 'Without close icon');
h.stories.load('Components/Popups/Modal/React', 'Without close icon');
});

it('should not have any axe errors', () => {
Expand Down Expand Up @@ -329,7 +329,7 @@ describe('Modal', () => {

context(`given the 'Custom focus' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Popups/Modal/React', 'Custom focus');
h.stories.load('Components/Popups/Modal/React', 'Custom focus');
});

context('when button is focused', () => {
Expand Down Expand Up @@ -420,7 +420,7 @@ describe('Modal', () => {

context(`given the 'StackedModals' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Testing|React/Popups/Modal', 'StackedModals');
h.stories.load('Testing/React/Popups/Modal', 'StackedModals');
});

context('when both modals are opened', () => {
Expand Down Expand Up @@ -467,7 +467,7 @@ describe('Modal', () => {

context(`given the 'ModalWithPopup' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Testing|React/Popups/Modal', 'ModalWithPopup');
h.stories.load('Testing/React/Popups/Modal', 'ModalWithPopup');
});

context('when both modal and popup are opened', () => {
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/Popup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('Popup', () => {
});
context(`given the open popup`, () => {
beforeEach(() => {
h.stories.load('Components|Popups/Popup/React', 'Open');
h.stories.load('Components/Popups/Popup/React', 'Open');
});
it('should not have any axe errors', () => {
cy.checkA11y();
Expand All @@ -31,7 +31,7 @@ describe('Popup', () => {

context(`given the default popup`, () => {
beforeEach(() => {
h.stories.load('Components|Popups/Popup/React', 'Default');
h.stories.load('Components/Popups/Popup/React', 'Default');
});
context('when the target buttton is clicked', () => {
beforeEach(() => {
Expand Down Expand Up @@ -92,7 +92,7 @@ describe('Popup', () => {

context('given the MultiplePopups story is rendered', () => {
beforeEach(() => {
h.stories.load('Testing|React/Popups/Popup', 'MultiplePopups');
h.stories.load('Testing/React/Popups/Popup', 'MultiplePopups');
});

context('when Open Popup 1 button is clicked', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/PopupStack.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('PopupStack', () => {
});

beforeEach(() => {
h.stories.load('Testing|React/Popups/Popup Stack', 'MixedPopupTypes');
h.stories.load('Testing/React/Popups/Popup Stack', 'MixedPopupTypes');
});

it('should start with Window 3 stacked on top of 3 Windows', () => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/Radio.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Radio', () => {

context(`given the Default story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Inputs/Radio/React/Left Label/Radio', 'Default');
h.stories.load('Components/Inputs/Radio/React/Left Label/Radio', 'Default');
});

it('should pass accessibility checks', () => {
Expand All @@ -31,7 +31,7 @@ describe('Radio', () => {

context(`given the 'Disabled' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Inputs/Radio/React/Left Label/Radio', 'Disabled');
h.stories.load('Components/Inputs/Radio/React/Left Label/Radio', 'Disabled');
});

it('should pass accessibility checks', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/RadioGroup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('Radio Group', () => {
['Default', 'Alert', 'Error with Grow'].forEach(story => {
context(`given the '${story}' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Inputs/Radio/React/Top Label/Radio Group', story);
h.stories.load('Components/Inputs/Radio/React/Top Label/Radio Group', story);
});

it('should pass accessibility checks', () => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/Select.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Select', () => {
['Plain', 'Alert', 'Error'].forEach(story => {
context(`given the '${story}' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Inputs/Select/React/Top Label', story);
h.stories.load('Components/Inputs/Select/React/Top Label', story);
});

it('should pass accessibility checks', () => {
Expand All @@ -38,7 +38,7 @@ describe('Select', () => {

context(`given the 'Disabled' story is rendered`, () => {
beforeEach(() => {
h.stories.load('Components|Inputs/Select/React/Top Label', 'Disabled');
h.stories.load('Components/Inputs/Select/React/Top Label', 'Disabled');
});

it('should pass accessibility checks', () => {
Expand Down
Loading

0 comments on commit 57abafd

Please sign in to comment.