You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/main/cypress/specs/MultiComboBox.cy.tsx
+27-22Lines changed: 27 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -137,12 +137,12 @@ describe("Keyboard interaction when pressing Ctrl + Alt + F8 for navigation", ()
137
137
});
138
138
139
139
it("Should move the focus from the MultiComboBox to the first link in the value state message",()=>{
140
-
cy.get("ui5-multi-combobox")
140
+
cy.get("[ui5-multi-combobox]")
141
141
.shadow()
142
142
.find("input")
143
143
.as("innerInput");
144
144
145
-
cy.get("ui5-multi-combobox")
145
+
cy.get("[ui5-multi-combobox]")
146
146
.as("multi-combobox");
147
147
148
148
cy.get("@innerInput")
@@ -160,13 +160,13 @@ describe("Keyboard interaction when pressing Ctrl + Alt + F8 for navigation", ()
160
160
cy.get("@popover")
161
161
.should("have.attr","open")
162
162
163
-
cy.get("ui5-link")
163
+
cy.get("[ui5-link]")
164
164
.eq(0)
165
165
.should("have.focus");
166
166
});
167
167
168
168
it("When pressing [Tab], the focus moves to the next value state message link. Pressing [Tab] again closes the popup and moves the focus to the next input",()=>{
169
-
cy.get("ui5-multi-combobox")
169
+
cy.get("[ui5-multi-combobox]")
170
170
.as("multi-combobox");
171
171
172
172
cy.get("@multi-combobox")
@@ -186,7 +186,7 @@ describe("Keyboard interaction when pressing Ctrl + Alt + F8 for navigation", ()
186
186
.as("ui5-popover")
187
187
.should("have.attr","open");
188
188
189
-
cy.get("ui5-link")
189
+
cy.get("[ui5-link]")
190
190
.eq(0)
191
191
.as("firstLink")
192
192
.should("have.focus");
@@ -197,28 +197,28 @@ describe("Keyboard interaction when pressing Ctrl + Alt + F8 for navigation", ()
197
197
cy.get("@firstLink")
198
198
.should("not.have.focus");
199
199
200
-
cy.get("ui5-link")
200
+
cy.get("[ui5-link]")
201
201
.eq(1)
202
202
.as("secondLink")
203
203
.should("have.focus");
204
204
205
205
cy.get("@secondLink")
206
206
.realPress("Tab");
207
207
208
-
cy.get("ui5-input")
208
+
cy.get("[ui5-input]")
209
209
.as("input");
210
210
211
211
cy.get("@input")
212
212
.should("have.focus");
213
213
});
214
214
215
215
it("Pressing [Shift + Tab] moves the focus from the second link in the value state message to the first one. Pressing it again shifts the focus to the MultiComboBox",()=>{
216
-
cy.get("ui5-multi-combobox")
216
+
cy.get("[ui5-multi-combobox]")
217
217
.shadow()
218
218
.find("input")
219
219
.as("innerInput");
220
220
221
-
cy.get("ui5-multi-combobox")
221
+
cy.get("[ui5-multi-combobox]")
222
222
.as("multi-combobox");
223
223
224
224
cy.get("@innerInput")
@@ -233,7 +233,7 @@ describe("Keyboard interaction when pressing Ctrl + Alt + F8 for navigation", ()
233
233
.as("ui5-popover")
234
234
.should("have.attr","open");
235
235
236
-
cy.get("ui5-link")
236
+
cy.get("[ui5-link]")
237
237
.eq(0)
238
238
.as("firstLink")
239
239
.should("have.focus");
@@ -244,7 +244,7 @@ describe("Keyboard interaction when pressing Ctrl + Alt + F8 for navigation", ()
244
244
cy.get("@firstLink")
245
245
.should("not.have.focus");
246
246
247
-
cy.get("ui5-link")
247
+
cy.get("[ui5-link]")
248
248
.eq(1)
249
249
.as("secondLink")
250
250
.should("have.focus");
@@ -264,7 +264,7 @@ describe("Keyboard interaction when pressing Ctrl + Alt + F8 for navigation", ()
264
264
});
265
265
266
266
it("When list item is selected and pressing [Ctrl + Alt + F8], first link is focused. [Arrow Down] moves focus to the first list item",()=>{
267
-
cy.get("ui5-multi-combobox")
267
+
cy.get("[ui5-multi-combobox]")
268
268
.as("multi-combobox");
269
269
270
270
cy.get("@multi-combobox")
@@ -277,26 +277,31 @@ describe("Keyboard interaction when pressing Ctrl + Alt + F8 for navigation", ()
0 commit comments