Skip to content

ui5-select: How to select a <Option> from <Select> in E2E tests? #1718

@CristianDDias

Description

@CristianDDias

Describe the bug
I'm using ui5-webcomponents-react and Cypress for E2E tests. I'm trying to select a <Option> from <Select> but it's not possible. I've seen that when you click on a select component, it creates a ui5-static-area and ui5-static-area-item, where the select options are placed. But I couldn't find a way to link this ui5-static-area-item with the current <Select> | <Option> components. I tried to click on the <Option> component, but it didn't dispatch any event.

Expected behavior
A way to programmatically dispatch a click event on the <Select> | <Option> components so that I can create my E2E tests.

Context

  • UI5 Web Components version: 1.0.0-rc.7
  • OS/Platform: Windows
  • Browser: Chrome

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions