Skip to content

Commit

Permalink
ComboBox tests: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiu committed Apr 18, 2024
1 parent 8aa86a2 commit b7851cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/components/files/form/field/ComboBox.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ StartTest(t => {

t.it('Editable', async t => {
await setup({
editable : false
editable: false
});

const blurEl = document.createElement('input');
document.body.appendChild(blurEl);

Expand All @@ -72,7 +73,7 @@ StartTest(t => {
// Nothing selected
t.hasAttributeValue(inputField, 'aria-activedescendant', '');

// Should activate the first list item. editable : false means we can still be focused
// Should activate the first list item. editable: false means we can still be focused
// and select values, just that the filter input is read-only.
await t.type(null, '[DOWN]');

Expand All @@ -89,7 +90,7 @@ StartTest(t => {

t.is(inputField.value, 'Alabama');

// Focus nebver leaves the input field
// Focus never leaves the input field
t.is(blurCount, 0);

await t.type(null, '[TAB]');
Expand Down

0 comments on commit b7851cc

Please sign in to comment.