Skip to content

Commit 7ba037b

Browse files
committed
update uui-select test
1 parent b48dcf5 commit 7ba037b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/uui-select/lib/uui-select.story.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const options: Array<Option> = [
5252
{ name: 'Strawberry', value: 'red' },
5353
];
5454

55-
const preselectedValue: string = 'orange';
55+
const preselectedValue: string = 'purple';
5656

5757
const groupedOptions: Array<Option> = options.map(option => {
5858
if (options.indexOf(option) <= 2) return { ...option, group: 'Vegetables' };

packages/uui-select/lib/uui-select.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ describe('UUISelectElement', () => {
2020
html`<uui-select
2121
label="foo"
2222
name="bar"
23+
.value="orange"
2324
.options=${options}></uui-select>`,
2425
);
2526
input = element.shadowRoot?.querySelector('#native');
@@ -67,7 +68,11 @@ describe('UUISelect in Form', () => {
6768
beforeEach(async () => {
6869
formElement = await fixture(
6970
html` <form>
70-
<uui-select label="foo" name="bar" .options=${options}></uui-select>
71+
<uui-select
72+
label="foo"
73+
name="bar"
74+
.value="orange"
75+
.options=${options}></uui-select>
7176
</form>`,
7277
);
7378
element = formElement.querySelector('uui-select') as any;
@@ -112,6 +117,7 @@ describe('UUISelect in Form', () => {
112117
<uui-select
113118
label="test label"
114119
name="test"
120+
.value="orange"
115121
.options=${options}></uui-select>
116122
</form>`,
117123
);

0 commit comments

Comments
 (0)