Skip to content

How to fill() the <jp-search> element in tests? #16720

Open
@krassowski

Description

Description

Since #16046 the jupyter ui toolkit elements are used for search fields. However, these are not editable and I cannot make use .fill() on them.

Reproduce

  - waiting for locator('.jp-Shortcuts-ShortcutUI').locator('jp-search.jp-FilterBox')
  -   locator resolved to <jp-search value="" current-value="" class="jp-FilterBox" appearance="outline" placeholder="Search…">…</jp-search>
  -   fill("merge cell below")
  - attempting fill action
  -   waiting for element to be visible, enabled and editable

Expected behavior

.fill() works as if it was input? Or we have a documentation that it can be done with

await filterInput.click();
await filterInput.pressSequentially('text to fill in but it is slow!');

Context

  • JupyterLab version: 4.3.0

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions