LearnNewsExamplesServices
Frontmatter
id5342
titleform.field.Select: update the component tests
stateClosed
labels
enhancementstale
assigneestobiu
createdAtMar 15, 2024, 2:43 PM
updatedAtSep 12, 2024, 4:28 AM
githubUrlhttps://github.com/neomjs/neo/issues/5342
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 12, 2024, 4:28 AM

form.field.Select: update the component tests

Closed v8.1.0 enhancementstale
tobiu
tobiu commented on Mar 15, 2024, 2:43 PM

Some of the current tests make no longer sense from an UX perspective.

Example:

        await t.waitForSelector('.neo-list-item.neo-navigator-active-item:contains("Wyoming")');

        await t.type(null, '[ENTER]');

        await t.waitForSelectorNotFound('.neo-picker-container:visible');

        await t.waitFor(100);

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

        await t.type(null, '[DOWN]');

        // Picker Must show with Wyoming activated
        await t.waitForSelector('.neo-list-item.neo-navigator-active-item:contains("Wyoming")');

        await t.type(null, '[UP]');

        await t.waitForSelector('.neo-list-item.neo-navigator-active-item:contains("Wisconsin")');

input value changes will open the picker and filter the related list.

navigating to an item (Wyoming) and then hitting ENTER will drop this name into the input field and then the list gets filtered down to only contain this item. so, navigating up to an item which does not match the filter (Wisconsin) can not work.

@ExtAnimal

tobiu added the enhancement label on Mar 15, 2024, 2:43 PM
tobiu assigned to @tobiu on Mar 15, 2024, 2:43 PM