Skip to content

Commit

Permalink
docs(DataTable): add stories under drafts (#3832)
Browse files Browse the repository at this point in the history
* docs(DataTable): add stories under drafts

* docs(DataTable): update links with drafts prefix

* test(e2e): update urls for DataTable test

---------

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
joshblack and joshblack committed Oct 17, 2023
1 parent 038a789 commit 4dbc972
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
24 changes: 12 additions & 12 deletions e2e/components/DataTable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test.describe('DataTable', () => {
test.describe(theme, () => {
test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-datatable--default',
id: 'drafts-components-datatable--default',
globals: {
colorScheme: theme,
},
Expand All @@ -24,7 +24,7 @@ test.describe('DataTable', () => {
test.describe(theme, () => {
test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-datatable-features--with-title',
id: 'drafts-components-datatable-features--with-title',
globals: {
colorScheme: theme,
},
Expand All @@ -40,7 +40,7 @@ test.describe('DataTable', () => {
test.describe(theme, () => {
test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-datatable-features--with-title-and-subtitle',
id: 'drafts-components-datatable-features--with-title-and-subtitle',
globals: {
colorScheme: theme,
},
Expand All @@ -56,7 +56,7 @@ test.describe('DataTable', () => {
test.describe(theme, () => {
test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-datatable-features--with-sorting',
id: 'drafts-components-datatable-features--with-sorting',
globals: {
colorScheme: theme,
},
Expand All @@ -72,7 +72,7 @@ test.describe('DataTable', () => {
test.describe(theme, () => {
test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-datatable-features--with-actions',
id: 'drafts-components-datatable-features--with-actions',
globals: {
colorScheme: theme,
},
Expand All @@ -88,7 +88,7 @@ test.describe('DataTable', () => {
test.describe(theme, () => {
test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-datatable-features--with-action',
id: 'drafts-components-datatable-features--with-action',
globals: {
colorScheme: theme,
},
Expand All @@ -104,7 +104,7 @@ test.describe('DataTable', () => {
test.describe(theme, () => {
test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-datatable-features--with-row-action',
id: 'drafts-components-datatable-features--with-row-action',
globals: {
colorScheme: theme,
},
Expand All @@ -120,7 +120,7 @@ test.describe('DataTable', () => {
test.describe(theme, () => {
test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-datatable-features--with-row-actions',
id: 'drafts-components-datatable-features--with-row-actions',
globals: {
colorScheme: theme,
},
Expand All @@ -136,7 +136,7 @@ test.describe('DataTable', () => {
test.describe(theme, () => {
test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-datatable-features--with-row-action-menu',
id: 'drafts-components-datatable-features--with-row-action-menu',
globals: {
colorScheme: theme,
},
Expand All @@ -152,7 +152,7 @@ test.describe('DataTable', () => {
test.describe(theme, () => {
test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-datatable-features--with-custom-heading',
id: 'drafts-components-datatable-features--with-custom-heading',
globals: {
colorScheme: theme,
},
Expand All @@ -166,7 +166,7 @@ test.describe('DataTable', () => {
test.describe('With Overflow', () => {
test('focusable region for overflow', async ({page}) => {
await visit(page, {
id: 'components-datatable-features--with-overflow',
id: 'drafts-components-datatable-features--with-overflow',
})

const heading = page.getByRole('heading', {name: 'Repositories'})
Expand All @@ -190,7 +190,7 @@ test.describe('DataTable', () => {
test.describe(theme, () => {
test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-datatable-features--with-overflow',
id: 'drafts-components-datatable-features--with-overflow',
globals: {
colorScheme: theme,
},
Expand Down
24 changes: 12 additions & 12 deletions src/DataTable/DataTable.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,40 @@
"a11yReviewed": false,
"stories": [
{
"id": "components-datatable-features--with-title"
"id": "drafts-components-datatable-features--with-title"
},
{
"id": "components-datatable-features--with-title-and-subtitle"
"id": "drafts-components-datatable-features--with-title-and-subtitle"
},
{
"id": "components-datatable-features--with-sorting"
"id": "drafts-components-datatable-features--with-sorting"
},
{
"id": "components-datatable-features--with-actions"
"id": "drafts-components-datatable-features--with-actions"
},
{
"id": "components-datatable-features--with-action"
"id": "drafts-components-datatable-features--with-action"
},
{
"id": "components-datatable-features--with-row-action"
"id": "drafts-components-datatable-features--with-row-action"
},
{
"id": "components-datatable-features--with-row-actions"
"id": "drafts-components-datatable-features--with-row-actions"
},
{
"id": "components-datatable-features--with-row-action-menu"
"id": "drafts-components-datatable-features--with-row-action-menu"
},
{
"id": "components-datatable-features--with-custom-heading"
"id": "drafts-components-datatable-features--with-custom-heading"
},
{
"id": "components-datatable-features--with-no-content"
"id": "drafts-components-datatable-features--with-no-content"
},
{
"id": "components-datatable-features--with-loading"
"id": "drafts-components-datatable-features--with-loading"
},
{
"id": "components-datatable-features--with-pagination"
"id": "drafts-components-datatable-features--with-pagination"
}
],
"props": [
Expand Down
2 changes: 1 addition & 1 deletion src/DataTable/DataTable.features.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {createColumnHelper} from './column'
import {fetchRepos, repos, useFlakeyQuery} from './storybook/data'

export default {
title: 'Components/DataTable/Features',
title: 'Drafts/Components/DataTable/Features',
component: DataTable,
} as Meta<typeof DataTable>

Expand Down
2 changes: 1 addition & 1 deletion src/DataTable/DataTable.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {UniqueRow} from './row'
import {getColumnWidthArgTypes, ColWidthArgTypes} from './storyHelpers'

export default {
title: 'Components/DataTable',
title: 'Drafts/Components/DataTable',
component: DataTable,
} as Meta<typeof DataTable>

Expand Down

0 comments on commit 4dbc972

Please sign in to comment.