Skip to content

Commit 64c0f1b

Browse files
authored
fix(ui5-multi-combobox): fix failing cypress test-fix (#11916)
1 parent 6f61cad commit 64c0f1b

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

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

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,6 @@ describe("Keyboard interaction when pressing Ctrl + Alt + F8 for navigation", ()
272272
.find("input")
273273
.as("innerInput");
274274

275-
cy.get("@multi-combobox")
276-
.shadow()
277-
.find("ui5-responsive-popover")
278-
.as("popover");
279-
280275
// open the popover
281276
cy.get("@multi-combobox")
282277
.realClick()
@@ -285,8 +280,10 @@ describe("Keyboard interaction when pressing Ctrl + Alt + F8 for navigation", ()
285280
// focus the fisrt item
286281
cy.realPress("F4");
287282

288-
cy.get("@popover")
289-
.should("have.attr", "open");
283+
cy.get("@multi-combobox")
284+
.shadow()
285+
.find<ResponsivePopover>("ui5-responsive-popover")
286+
.ui5ResponsivePopoverOpened()
290287

291288
cy.get("ui5-mcb-item")
292289
.eq(0)
@@ -416,7 +413,7 @@ describe("MultiComboBox RTL/LTR Arrow Navigation", () => {
416413

417414
cy.get("@mcb")
418415
.should("be.focused");
419-
416+
420417
cy.get("@mcb")
421418
.shadow()
422419
.find("input")
@@ -430,7 +427,7 @@ describe("MultiComboBox RTL/LTR Arrow Navigation", () => {
430427
expect(($input[0] as HTMLInputElement).selectionStart).to.equal(0);
431428
});
432429

433-
cy.get("@mcb").realPress("ArrowLeft");
430+
cy.get("@mcb").realPress("ArrowLeft");
434431
cy.focused().should("have.class", "ui5-token--wrapper");
435432
});
436433

@@ -480,7 +477,7 @@ describe("MultiComboBox RTL/LTR Arrow Navigation", () => {
480477
cy.get("[ui5-multi-combobox]")
481478
.as("mcb")
482479
.realClick()
483-
480+
484481
cy.get("@mcb")
485482
.should("be.focused")
486483
.realPress("ArrowRight");
@@ -514,7 +511,7 @@ describe("MultiComboBox RTL/LTR Arrow Navigation", () => {
514511
cy.get("[ui5-multi-combobox]")
515512
.as("mcb")
516513
.realClick();
517-
514+
518515
cy.get("@mcb")
519516
.should("be.focused")
520517
.realPress("ArrowLeft");
@@ -525,7 +522,7 @@ describe("MultiComboBox RTL/LTR Arrow Navigation", () => {
525522
.find("[ui5-token]")
526523
.last()
527524
.realPress("ArrowRight");
528-
525+
529526
cy.focused().should("not.have.class", "ui5-token--wrapper");
530527
});
531528

@@ -552,7 +549,7 @@ describe("MultiComboBox RTL/LTR Arrow Navigation", () => {
552549
.as("input")
553550
.realClick()
554551
.should("have.focus")
555-
552+
556553
cy.get("@input")
557554
.should("have.value", "")
558555
.should(($input) => {

0 commit comments

Comments
 (0)