Skip to content

Commit

Permalink
Adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbespalov committed Dec 2, 2024
1 parent c22ef7c commit 8cbfc57
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/locator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,20 +732,20 @@ func TestSelectOption(t *testing.T) {
if (selectedValue !== 'five') {
throw new Error('Expected "five" but got ' + selectedValue);
}
await options.selectOption({value:'five'});
await options.selectOption({value:'four'});
selectedValue = await options.inputValue();
if (selectedValue !== 'five') {
throw new Error('Expected "five" but got ' + selectedValue);
if (selectedValue !== 'four') {
throw new Error('Expected "four" but got ' + selectedValue);
}
await options.selectOption([{label:'Five'}]);
await options.selectOption([{label:'One'}]);
selectedValue = await options.inputValue();
if (selectedValue !== 'five') {
throw new Error('Expected "five" but got ' + selectedValue);
if (selectedValue !== 'one') {
throw new Error('Expected "one" but got ' + selectedValue);
}
await options.selectOption(['five']); // Value
await options.selectOption(['two']); // Value
selectedValue = await options.inputValue();
if (selectedValue !== 'five') {
throw new Error('Expected "five" but got ' + selectedValue);
if (selectedValue !== 'two') {
throw new Error('Expected "two" but got ' + selectedValue);
}
await options.selectOption('five'); // Value
selectedValue = await options.inputValue();
Expand Down

0 comments on commit 8cbfc57

Please sign in to comment.