@@ -231,7 +231,7 @@ describe("Component Behavior", () => {
231
231
assert . ok ( menuPopover . isDisplayedInViewport ( ) , "Menu should be shown" ) ;
232
232
} ) ;
233
233
234
- it ( "tests notificationsPress event" , ( ) => {
234
+ it ( "tests notificationsClick event" , ( ) => {
235
235
const notificationsIcon = browser . $ ( "#shellbar" ) . shadow$ ( ".ui5-shellbar-bell-button" ) ;
236
236
const input = browser . $ ( "#press-input" ) ;
237
237
@@ -241,15 +241,15 @@ describe("Component Behavior", () => {
241
241
assert . strictEqual ( input . getValue ( ) , "Notifications" , "Input value is set by click event of Notifications icon" ) ;
242
242
} ) ;
243
243
244
- it ( "tests profilePress event" , ( ) => {
244
+ it ( "tests profileClick event" , ( ) => {
245
245
const profileIcon = browser . $ ( "#shellbar" ) . shadow$ ( "[profile-btn]" ) ;
246
246
const input = browser . $ ( "#press-input" ) ;
247
247
248
248
profileIcon . click ( ) ;
249
249
assert . strictEqual ( input . getValue ( ) , "Profile" , "Input value is set by click event of Profile" ) ;
250
250
} ) ;
251
251
252
- it ( "tests productSwitchPress event" , ( ) => {
252
+ it ( "tests productSwitchClick event" , ( ) => {
253
253
const productSwitchIcon = browser . $ ( "#shellbar" ) . shadow$ ( ".ui5-shellbar-button-product-switch" ) ;
254
254
const input = browser . $ ( "#press-input" ) ;
255
255
@@ -331,7 +331,7 @@ describe("Component Behavior", () => {
331
331
assert . ok ( menuPopover . isDisplayedInViewport ( ) , "Menu should be shown" ) ;
332
332
} ) ;
333
333
334
- it ( "tests notificationsPress event" , ( ) => {
334
+ it ( "tests notificationsClick event" , ( ) => {
335
335
const overflowButton = browser . $ ( "#shellbar" ) . shadow$ ( ".ui5-shellbar-overflow-button" ) ;
336
336
const staticAreaItemClassName = browser . getStaticAreaItemClassName ( "#shellbar" )
337
337
const overflowPopover = browser . $ ( `.${ staticAreaItemClassName } ` ) . shadow$ ( ".ui5-shellbar-overflow-popover" ) ;
@@ -342,17 +342,18 @@ describe("Component Behavior", () => {
342
342
notificationListItem . click ( ) ;
343
343
344
344
assert . strictEqual ( input . getValue ( ) , "Notifications" , "Input value is set by click event of Notifications icon" ) ;
345
+ assert . ok ( overflowPopover . isDisplayed ( ) , "overflow popover should not be closed" ) ;
345
346
} ) ;
346
347
347
- it ( "tests profilePress event" , ( ) => {
348
+ it ( "tests profileClick event" , ( ) => {
348
349
const profileIcon = browser . $ ( "#shellbar" ) . shadow$ ( "[profile-btn]" ) ;
349
350
const input = browser . $ ( "#press-input" ) ;
350
351
351
352
profileIcon . click ( ) ;
352
353
assert . strictEqual ( input . getValue ( ) , "Profile" , "Input value is set by click event of Profile" ) ;
353
354
} ) ;
354
355
355
- it ( "tests productSwitchPress event" , ( ) => {
356
+ it ( "tests productSwitchClick event" , ( ) => {
356
357
const overflowButton = browser . $ ( "#shellbar" ) . shadow$ ( ".ui5-shellbar-overflow-button" ) ;
357
358
const staticAreaItemClassName = browser . getStaticAreaItemClassName ( "#shellbar" )
358
359
const overflowPopover = browser . $ ( `.${ staticAreaItemClassName } ` ) . shadow$ ( ".ui5-shellbar-overflow-popover" ) ;
@@ -365,7 +366,7 @@ describe("Component Behavior", () => {
365
366
assert . strictEqual ( input . getValue ( ) , "Product Switch" , "Input value is set by click event of Product Switch icon" ) ;
366
367
} ) ;
367
368
368
- it ( "tests preventDefalt of productSwitchClick event" , ( ) => {
369
+ it ( "tests preventDefault of productSwitchClick event" , ( ) => {
369
370
const overflowButton = browser . $ ( "#shellbar" ) . shadow$ ( ".ui5-shellbar-overflow-button" ) ;
370
371
const staticAreaItemClassName = browser . getStaticAreaItemClassName ( "#shellbar" )
371
372
const overflowPopover = browser . $ ( `.${ staticAreaItemClassName } ` ) . shadow$ ( ".ui5-shellbar-overflow-popover" ) ;
0 commit comments