-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(FluidDropdown): initial creation and styles * docs(FluidDropdown): update PropType definitions * test(FluidDropdown): add e2e, api tests * chore(snapshot): update snapshots * feat(FluidComboBox): add FluidComboBox * test(FluidComboBox): add e2e tests * feat(FluidMultiSelect): add FluidMultiSelect * test(FluidDropdown): remove console log) * feat(skeleton): add FluidMultiSelectSkeleton, FluidComboBoxSkeleton * test(snapshot): update snapshots * test(e2e): rename multiselect test * fix(ListBox): make style changes based on feedback * fix(ListBox): workaround for adjacent elements in focus, invalid state Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5e676fd
commit 7dc34df
Showing
24 changed files
with
1,587 additions
and
9 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,37 @@ | ||
/** | ||
* Copyright IBM Corp. 2022 | ||
* | ||
* 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('FluidComboBox', () => { | ||
themes.forEach((theme) => { | ||
test.describe(theme, () => { | ||
test('fluid dropdown @vrt', async ({ page }) => { | ||
await snapshotStory(page, { | ||
component: 'FluidComboBox', | ||
id: 'experimental-unstable-fluidcombobox--default', | ||
theme, | ||
}); | ||
}); | ||
}); | ||
}); | ||
|
||
test('accessibility-checker @avt', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'FluidComboBox', | ||
id: 'experimental-unstable-fluidcombobox--default', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
await expect(page).toHaveNoACViolations('FluidComboBox'); | ||
}); | ||
}); |
37 changes: 37 additions & 0 deletions
37
e2e/components/FluidMultiSelect/FluidMultiSelect-test.e2e.js
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,37 @@ | ||
/** | ||
* Copyright IBM Corp. 2022 | ||
* | ||
* 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('FluidMultiSelect', () => { | ||
themes.forEach((theme) => { | ||
test.describe(theme, () => { | ||
test('fluid dropdown @vrt', async ({ page }) => { | ||
await snapshotStory(page, { | ||
component: 'FluidMultiSelect', | ||
id: 'experimental-unstable-fluidmultiselect--default', | ||
theme, | ||
}); | ||
}); | ||
}); | ||
}); | ||
|
||
test('accessibility-checker @avt', async ({ page }) => { | ||
await visitStory(page, { | ||
component: 'FluidMultiSelect', | ||
id: 'experimental-unstable-fluidmultiselect--default', | ||
globals: { | ||
theme: 'white', | ||
}, | ||
}); | ||
await expect(page).toHaveNoACViolations('FluidMultiSelect'); | ||
}); | ||
}); |
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.