Skip to content

Commit 4938909

Browse files
chore(ui5-multi-combobox): fix failing test (#12745)
1 parent 7d5f748 commit 4938909

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

packages/main/cypress/specs/MultiComboBox.cy.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -641,15 +641,15 @@ describe("General", () => {
641641
}));
642642
});
643643

644-
it.skip("Select All functionality + N-more integration", () => {
644+
it("Select All functionality + N-more integration", () => {
645645
cy.mount(
646646
<><MultiComboBox style="width: 100px" noValidation={true} showSelectAll={true}>
647647
<MultiComboBoxItem selected={true} text="Very Very Very Very long Item 1"></MultiComboBoxItem>
648648
<MultiComboBoxItem selected={true} text="Item 2"></MultiComboBoxItem>
649649
<MultiComboBoxItem selected={true} text="Item 3"></MultiComboBoxItem>
650650
<MultiComboBoxItem text="Item 4"></MultiComboBoxItem>
651651
<MultiComboBoxItem text="Item 5"></MultiComboBoxItem>
652-
</MultiComboBox><Button id="dummyButton"></Button></>
652+
</MultiComboBox><Button>Dummy Button</Button></>
653653
);
654654

655655
cy.get("[ui5-multi-combobox]")
@@ -676,15 +676,13 @@ describe("General", () => {
676676
.find(".ui5-mcb-select-all-checkbox")
677677
.should("not.have.attr", "checked");
678678

679-
cy.get("#dummyButton")
680-
.realClick();
679+
// focus the dummy button to close the popover
680+
cy.realPress("Tab");
681+
cy.realPress("Tab");
681682

682683
cy.get<ResponsivePopover>("@popover")
683684
.ui5ResponsivePopoverClosed();
684685

685-
cy.get("[ui5-multi-combobox]")
686-
.should("not.be.focused");
687-
688686
cy.get("[ui5-multi-combobox]")
689687
.shadow()
690688
.find("[ui5-tokenizer]")

0 commit comments

Comments
 (0)