Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(containedlist): move to stable - add vrt, avt, storybook docs (#…
…12387) * test(containedlist): add vrt, avt, storybook docs * docs(containedlist): add platform metdata, livedemo mdx * test(containedlist): update vrt, stories to show adjacent list padding
- Loading branch information
1 parent
3e192c0
commit f7ed5db
Showing
8 changed files
with
298 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const { expect, test } = require('@playwright/test'); | ||
const { themes } = require('../../test-utils/env'); | ||
const { snapshotStory, visitStory } = require('../../test-utils/storybook'); | ||
|
||
test.describe('ContainedList', () => { | ||
themes.forEach((theme) => { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({ page }) => { | ||
await snapshotStory(page, { | ||
component: 'ContainedList', | ||
id: 'components-containedlist--default', | ||
theme, | ||
}); | ||
}); | ||
|
||
test('disclosed @vrt', async ({ page }) => { | ||
await snapshotStory(page, { | ||
component: 'ContainedList', | ||
id: 'components-containedlist--disclosed', | ||
theme, | ||
}); | ||
}); | ||
|
||
test('with-actions @vrt', async ({ page }) => { | ||
await snapshotStory(page, { | ||
component: 'ContainedList', | ||
id: 'components-containedlist--with-actions', | ||
theme, | ||
}); | ||
}); | ||
|
||
test('with-icons @vrt', async ({ page }) => { | ||
await snapshotStory(page, { | ||
component: 'ContainedList', | ||
id: 'components-containedlist--with-icons', | ||
theme, | ||
}); | ||
}); | ||
|
||
test('with-interactive-items @vrt', async ({ page }) => { | ||
await snapshotStory(page, { | ||
component: 'ContainedList', | ||
id: 'components-containedlist--with-interactive-items', | ||
theme, | ||
}); | ||
}); | ||
|
||
test('with-interactive-items-and-actions @vrt', async ({ page }) => { | ||
await snapshotStory(page, { | ||
component: 'ContainedList', | ||
id: 'components-containedlist--with-interactive-items-and-actions', | ||
theme, | ||
}); | ||
}); | ||
|
||
test('with-layer @vrt', async ({ page }) => { | ||
await snapshotStory(page, { | ||
component: 'ContainedList', | ||
id: 'components-containedlist--with-layer', | ||
theme, | ||
}); | ||
}); | ||
|
||
test('with-list-title-decorators @vrt', async ({ page }) => { | ||
await snapshotStory(page, { | ||
component: 'ContainedList', | ||
id: 'components-containedlist--with-list-title-decorators', | ||
theme, | ||
}); | ||
}); | ||
|
||
test('playground @vrt', async ({ page }) => { | ||
await snapshotStory(page, { | ||
component: 'ContainedList', | ||
id: 'components-containedlist--playground', | ||
theme, | ||
}); | ||
}); | ||
}); | ||
}); | ||
|
||
test('accessibility-checker @avt', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'ContainedList', | ||
id: 'components-containedlist--default', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
await expect(page).toHaveNoACViolations('ContainedList'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.