@@ -23,7 +23,7 @@ describe("Select general interaction", () => {
23
23
} ) ;
24
24
25
25
it ( "does not fire change, when clicking on selected item" , ( ) => {
26
- browser . url ( " http://localhost:8080 /test-resources/pages/Select.html" ) ;
26
+ browser . url ( ` http://localhost:${ PORT } /test-resources/pages/Select.html` ) ;
27
27
28
28
const select = $ ( "#mySelect" ) ;
29
29
const inputResult = browser . $ ( "#inputResult" ) . shadow$ ( "input" ) ;
@@ -38,7 +38,7 @@ describe("Select general interaction", () => {
38
38
} ) ;
39
39
40
40
it ( "fires change on selection with keyboard handling" , ( ) => {
41
- browser . url ( " http://localhost:8080 /test-resources/pages/Select.html" ) ;
41
+ browser . url ( ` http://localhost:${ PORT } /test-resources/pages/Select.html` ) ;
42
42
43
43
const select = $ ( "#mySelect2" ) . shadow$ ( ".ui5-select-root" ) ;
44
44
const selectText = browser . $ ( "#mySelect2" ) . shadow$ ( ".ui5-select-label-root" ) ;
@@ -63,7 +63,7 @@ describe("Select general interaction", () => {
63
63
} ) ;
64
64
65
65
it ( "changes selection while closed with Arrow Up/Down" , ( ) => {
66
- browser . url ( " http://localhost:8080 /test-resources/pages/Select.html" ) ;
66
+ browser . url ( ` http://localhost:${ PORT } /test-resources/pages/Select.html` ) ;
67
67
68
68
const inputResult = browser . $ ( "#inputResult" ) . shadow$ ( "input" ) ;
69
69
const select = $ ( "#mySelect2" ) ;
@@ -85,7 +85,7 @@ describe("Select general interaction", () => {
85
85
} ) ;
86
86
87
87
it ( "changes selection sync with selection announcement" , ( ) => {
88
- browser . url ( " http://localhost:8080 /test-resources/pages/Select.html" ) ;
88
+ browser . url ( ` http://localhost:${ PORT } /test-resources/pages/Select.html` ) ;
89
89
90
90
const btn = $ ( "#myBtn2" ) ;
91
91
const inputResult = browser . $ ( "#inputResult" ) . shadow$ ( "input" ) ;
@@ -131,7 +131,6 @@ describe("Select general interaction", () => {
131
131
assert . strictEqual ( inputResult . getProperty ( "value" ) , "3" , "Change event should have fired twice" ) ;
132
132
} ) ;
133
133
134
- /*
135
134
it ( "changes selection on Tab" , ( ) => {
136
135
const select = browser . $ ( "#keyboardHandling" ) ;
137
136
const EXPECTED_SELECTION_TEXT = "Banana" ;
@@ -173,7 +172,6 @@ describe("Select general interaction", () => {
173
172
174
173
assert . strictEqual ( focusedElementId , browser . $ ( "#mySelectEsc" ) . getAttribute ( "id" ) , "Previous focusable element is focused" ) ;
175
174
} ) ;
176
- */
177
175
178
176
it ( "tests selection does not cycle with ArrowDown" , ( ) => {
179
177
const select = $ ( "#selectionNotCycling" ) ;
@@ -208,6 +206,8 @@ describe("Select general interaction", () => {
208
206
} ) ;
209
207
210
208
it ( "opens upon space" , ( ) => {
209
+ browser . url ( `http://localhost:${ PORT } /test-resources/pages/Select.html` ) ;
210
+
211
211
const btn = $ ( "#myBtn2" ) ;
212
212
const staticAreaItemClassName = browser . getStaticAreaItemClassName ( "#mySelect" ) ;
213
213
const popover = browser . $ ( `.${ staticAreaItemClassName } ` ) . shadow$ ( "ui5-responsive-popover" ) ;
@@ -220,6 +220,8 @@ describe("Select general interaction", () => {
220
220
} ) ;
221
221
222
222
it ( "toggles upon F4" , ( ) => {
223
+ browser . url ( `http://localhost:${ PORT } /test-resources/pages/Select.html` ) ;
224
+
223
225
const btn = $ ( "#myBtn2" ) ;
224
226
const staticAreaItemClassName = browser . getStaticAreaItemClassName ( "#mySelect" ) ;
225
227
const popover = browser . $ ( `.${ staticAreaItemClassName } ` ) . shadow$ ( "ui5-responsive-popover" ) ;
@@ -235,6 +237,8 @@ describe("Select general interaction", () => {
235
237
} ) ;
236
238
237
239
it ( "toggles upon ALT + UP" , ( ) => {
240
+ browser . url ( `http://localhost:${ PORT } /test-resources/pages/Select.html` ) ;
241
+
238
242
const btn = $ ( "#myBtn2" ) ;
239
243
const staticAreaItemClassName = browser . getStaticAreaItemClassName ( "#mySelect" ) ;
240
244
const popover = browser . $ ( `.${ staticAreaItemClassName } ` ) . shadow$ ( "ui5-responsive-popover" ) ;
@@ -250,6 +254,8 @@ describe("Select general interaction", () => {
250
254
} ) ;
251
255
252
256
it ( "toggles upon ALT + DOWN" , ( ) => {
257
+ browser . url ( `http://localhost:${ PORT } /test-resources/pages/Select.html` ) ;
258
+
253
259
const btn = $ ( "#myBtn2" ) ;
254
260
const staticAreaItemClassName = browser . getStaticAreaItemClassName ( "#mySelect" ) ;
255
261
const popover = browser . $ ( `.${ staticAreaItemClassName } ` ) . shadow$ ( "ui5-responsive-popover" ) ;
@@ -281,7 +287,7 @@ describe("Select general interaction", () => {
281
287
} ) ;
282
288
283
289
it ( "reverts value before open after clicking on escape" , ( ) => {
284
- browser . url ( " http://localhost:8080 /test-resources/pages/Select.html" ) ;
290
+ browser . url ( ` http://localhost:${ PORT } /test-resources/pages/Select.html` ) ;
285
291
286
292
const select = $ ( "#mySelect" ) ;
287
293
const selectText = browser . $ ( "#mySelect" ) . shadow$ ( ".ui5-select-label-root" ) . getHTML ( false ) ;
@@ -300,7 +306,7 @@ describe("Select general interaction", () => {
300
306
} ) ;
301
307
302
308
it ( "fires change event after selection is change and picker if focussed out" , ( ) => {
303
- browser . url ( " http://localhost:8080 /test-resources/pages/Select.html" ) ;
309
+ browser . url ( ` http://localhost:${ PORT } /test-resources/pages/Select.html` ) ;
304
310
305
311
const select = $ ( "#mySelect" ) ;
306
312
const inputResult = browser . $ ( "#inputResult" ) . shadow$ ( "input" ) ;
@@ -316,7 +322,7 @@ describe("Select general interaction", () => {
316
322
} ) ;
317
323
318
324
it ( "fires change event after selecting a previewed item" , ( ) => {
319
- browser . url ( " http://localhost:8080 /test-resources/pages/Select.html" ) ;
325
+ browser . url ( ` http://localhost:${ PORT } /test-resources/pages/Select.html` ) ;
320
326
321
327
const select = $ ( "#mySelect" ) ;
322
328
const inputResult = browser . $ ( "#inputResult" ) . shadow$ ( "input" ) ;
0 commit comments