Skip to content

Commit c520c3b

Browse files
emyarodtay1orjones
andauthored
feat(TreeView): publish single select tree (#11938)
* feat(TreeView): publish single select tree * chore: update snapshots * docs(treeview): update stories and controls, remove v11 feature flag * chore: update snapshots * docs(TreeView): touch TreeView.mdx * fix(TreeView): update caret alignment partially addresses #11858 * Update e2e/components/TreeView/TreeView-test.e2e.js * Update e2e/components/TreeView/TreeView-test.e2e.js * fix(treeview): update node icon position Co-authored-by: Taylor Jones <taylor.jones826@gmail.com> Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
1 parent 3eed88a commit c520c3b

File tree

12 files changed

+358
-615
lines changed

12 files changed

+358
-615
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* Copyright IBM Corp. 2016, 2018
3+
*
4+
* This source code is licensed under the Apache-2.0 license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
'use strict';
9+
10+
const { expect, test } = require('@playwright/test');
11+
const { themes } = require('../../test-utils/env');
12+
const { snapshotStory, visitStory } = require('../../test-utils/storybook');
13+
14+
test.describe('TreeView', () => {
15+
themes.forEach((theme) => {
16+
test.describe(theme, () => {
17+
test('treeview @vrt', async ({ page }) => {
18+
await snapshotStory(page, {
19+
component: 'TreeView',
20+
id: 'components-treeview--default',
21+
theme,
22+
});
23+
});
24+
});
25+
});
26+
27+
test('accessibility-checker @avt', async ({ page }) => {
28+
await visitStory(page, {
29+
component: 'TreeView',
30+
id: 'components-treeview--default',
31+
globals: {
32+
theme: 'white',
33+
},
34+
});
35+
await expect(page).toHaveNoACViolations('TreeView');
36+
});
37+
});

0 commit comments

Comments
 (0)