@sapui5/sap.fe.test 1.99.0 → 1.101.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ sap.ui.define(
21
21
  "sap/fe/test/api/FormAssertions",
22
22
  "sap/fe/test/api/APIHelper"
23
23
  ],
24
- function(
24
+ function (
25
25
  mergeObjects,
26
26
  TemplatePage,
27
27
  OpaBuilder,
@@ -183,13 +183,13 @@ sap.ui.define(
183
183
  * @name sap.fe.test.ObjectPage.actions#onTable
184
184
  * @public
185
185
  */
186
- onTable: function(vTableIdentifier) {
186
+ onTable: function (vTableIdentifier) {
187
187
  if (!Utils.isOfType(vTableIdentifier, String)) {
188
188
  vTableIdentifier = { id: getTableId(vTableIdentifier.property, vTableIdentifier.qualifier) };
189
189
  }
190
190
  return this._onTable(vTableIdentifier);
191
191
  },
192
- onChart: function(vChartIdentifier) {
192
+ onChart: function (vChartIdentifier) {
193
193
  var sChartId;
194
194
  if (vChartIdentifier) {
195
195
  sChartId = !Utils.isOfType(vChartIdentifier, String)
@@ -208,7 +208,7 @@ sap.ui.define(
208
208
  * @alias sap.fe.test.ObjectPage.actions#onFooter
209
209
  * @public
210
210
  */
211
- onFooter: function() {
211
+ onFooter: function () {
212
212
  return new FooterActionsOP(_getOverflowToolbarBuilder(this, { id: OPFooterId }), {
213
213
  id: OPFooterId
214
214
  });
@@ -221,7 +221,7 @@ sap.ui.define(
221
221
  * @alias sap.fe.test.ObjectPage.actions#onHeader
222
222
  * @public
223
223
  */
224
- onHeader: function() {
224
+ onHeader: function () {
225
225
  return new HeaderActions(_getHeaderBuilder(this, { id: ObjectPageLayoutId }), {
226
226
  id: ObjectPageLayoutId,
227
227
  headerId: OPHeaderId,
@@ -240,7 +240,7 @@ sap.ui.define(
240
240
  * @alias sap.fe.test.ObjectPage.actions#onForm
241
241
  * @public
242
242
  */
243
- onForm: function(vFormIdentifier) {
243
+ onForm: function (vFormIdentifier) {
244
244
  if (!Utils.isOfType(vFormIdentifier, String)) {
245
245
  if (vFormIdentifier.section) {
246
246
  vFormIdentifier.id = OPSubSectionIdPrefix + "::" + vFormIdentifier.section;
@@ -267,10 +267,10 @@ sap.ui.define(
267
267
  * @name sap.fe.test.ObjectPage.actions#iCollapseExpandPageHeader
268
268
  * @public
269
269
  */
270
- iCollapseExpandPageHeader: function(bCollapse) {
270
+ iCollapseExpandPageHeader: function (bCollapse) {
271
271
  return this._iCollapseExpandPageHeader(bCollapse);
272
272
  },
273
- iClickQuickViewMoreLinksButton: function() {
273
+ iClickQuickViewMoreLinksButton: function () {
274
274
  return OpaBuilder.create(this)
275
275
  .hasType("sap.m.Button")
276
276
  .has(OpaBuilder.Matchers.resourceBundle("text", "sap.ui.mdc", "info.POPOVER_DEFINE_LINKS"))
@@ -278,7 +278,7 @@ sap.ui.define(
278
278
  .description("Pressing 'More Links' button")
279
279
  .execute();
280
280
  },
281
- iClickLinkWithText: function(sText) {
281
+ iClickLinkWithText: function (sText) {
282
282
  return OpaBuilder.create(this)
283
283
  .hasType("sap.m.Link")
284
284
  .hasProperties({ text: sText })
@@ -286,11 +286,11 @@ sap.ui.define(
286
286
  .description("Navigating via link '" + sText + "'")
287
287
  .execute();
288
288
  },
289
- iCheckLinksCount: function(count) {
289
+ iCheckLinksCount: function (count) {
290
290
  return OpaBuilder.create(this)
291
- .hasType("sap.ui.mdc.link.PanelListItem")
292
- .check(function(targets) {
293
- if (targets.length === count + 1) {
291
+ .hasType("sap.m.ColumnListItem")
292
+ .check(function (targets) {
293
+ if (targets.length === count) {
294
294
  return true;
295
295
  } else {
296
296
  return false;
@@ -299,7 +299,7 @@ sap.ui.define(
299
299
  .description("Seeing QuickView Card with " + count + " target applications in ObjectPage")
300
300
  .execute();
301
301
  },
302
- iEnableLink: function(sText) {
302
+ iEnableLink: function (sText) {
303
303
  return (
304
304
  OpaBuilder.create(this)
305
305
  .hasType("sap.m.ColumnListItem")
@@ -310,7 +310,7 @@ sap.ui.define(
310
310
  .execute()
311
311
  );
312
312
  },
313
- iPressKeyboardShortcutOnSection: function(sShortcut, mProperties) {
313
+ iPressKeyboardShortcutOnSection: function (sShortcut, mProperties) {
314
314
  return this._iPressKeyboardShortcut(undefined, sShortcut, mProperties, "sap.uxap.ObjectPageSection");
315
315
  },
316
316
  /**
@@ -336,7 +336,7 @@ sap.ui.define(
336
336
  * @name sap.fe.test.ObjectPage.actions#iGoToSection
337
337
  * @public
338
338
  */
339
- iGoToSection: function(vSectionIdentifier) {
339
+ iGoToSection: function (vSectionIdentifier) {
340
340
  var oBuilder = OpaBuilder.create(this).hasId(AnchorBarId);
341
341
 
342
342
  if (
@@ -359,7 +359,7 @@ sap.ui.define(
359
359
  )
360
360
  .doPress()
361
361
  )
362
- .success(function() {
362
+ .success(function () {
363
363
  return _createMenuActionExecutorBuilder(
364
364
  vSectionIdentifier.subSection,
365
365
  OPSubSectionIdPrefix
@@ -385,11 +385,11 @@ sap.ui.define(
385
385
  *
386
386
  * @private
387
387
  */
388
- iOpenSectionWithTitle: function(sName) {
388
+ iOpenSectionWithTitle: function (sName) {
389
389
  return this.iGoToSection(sName);
390
390
  },
391
391
 
392
- iEnterValueForFieldInEditableHeader: function(sValue) {
392
+ iEnterValueForFieldInEditableHeader: function (sValue) {
393
393
  return FieldBuilder.create(this)
394
394
  .hasId(ViewId + "--fe::" + EditableHeaderTitleId)
395
395
  .doEnterText(sValue)
@@ -397,7 +397,7 @@ sap.ui.define(
397
397
  .execute();
398
398
  },
399
399
 
400
- iOpenVHDInDialog: function(sFieldId) {
400
+ iOpenVHDInDialog: function (sFieldId) {
401
401
  return OpaBuilder.create(this)
402
402
  .isDialogElement()
403
403
  .hasId(sFieldId + "-inner-vhi")
@@ -405,15 +405,7 @@ sap.ui.define(
405
405
  .description("Opening value help for '" + sFieldId + "' from within a dialog")
406
406
  .execute();
407
407
  },
408
- iConfirmVHDInDialog: function(sField) {
409
- return OpaBuilder.create(this)
410
- .isDialogElement()
411
- .hasId(sField + "-ok")
412
- .doPress()
413
- .description("Comfirmed VHD opened in dialog")
414
- .execute();
415
- },
416
- iClickOnMessageButton: function() {
408
+ iClickOnMessageButton: function () {
417
409
  return OpaBuilder.create(this)
418
410
 
419
411
  .hasType("sap.fe.common.MessageButton")
@@ -421,16 +413,16 @@ sap.ui.define(
421
413
  .description("Clicked on Message Button")
422
414
  .execute();
423
415
  },
424
- iCheckMessageButtonTooltip: function(sText) {
416
+ iCheckMessageButtonTooltip: function (sText) {
425
417
  return OpaBuilder.create(this)
426
418
  .hasType("sap.fe.common.MessageButton")
427
- .check(function(oControl) {
419
+ .check(function (oControl) {
428
420
  return oControl[0].getTooltip() === sText;
429
421
  }, true)
430
422
  .description("Checking tooltip of MessageButton")
431
423
  .execute();
432
424
  },
433
- iClickOnMessage: function(oMessageInfo) {
425
+ iClickOnMessage: function (oMessageInfo) {
434
426
  return OpaBuilder.create(this)
435
427
  .hasType("sap.m.MessageListItem")
436
428
  .hasProperties({
@@ -466,13 +458,13 @@ sap.ui.define(
466
458
  * @name sap.fe.test.ObjectPage.assertions#onTable
467
459
  * @public
468
460
  */
469
- onTable: function(vTableIdentifier) {
461
+ onTable: function (vTableIdentifier) {
470
462
  if (!Utils.isOfType(vTableIdentifier, String)) {
471
463
  vTableIdentifier = { id: getTableId(vTableIdentifier.property, vTableIdentifier.qualifier) };
472
464
  }
473
465
  return this._onTable(vTableIdentifier);
474
466
  },
475
- onChart: function(vChartIdentifier) {
467
+ onChart: function (vChartIdentifier) {
476
468
  var sChartId;
477
469
  if (vChartIdentifier) {
478
470
  sChartId = !Utils.isOfType(vChartIdentifier, String)
@@ -491,7 +483,7 @@ sap.ui.define(
491
483
  * @alias sap.fe.test.ObjectPage.assertions#onFooter
492
484
  * @public
493
485
  */
494
- onFooter: function() {
486
+ onFooter: function () {
495
487
  return new FooterAssertionsOP(_getOverflowToolbarBuilder(this, { id: OPFooterId }), { id: OPFooterId });
496
488
  },
497
489
  /**
@@ -502,7 +494,7 @@ sap.ui.define(
502
494
  * @alias sap.fe.test.ObjectPage.assertions#onHeader
503
495
  * @public
504
496
  */
505
- onHeader: function() {
497
+ onHeader: function () {
506
498
  return new HeaderAssertions(_getHeaderBuilder(this, { id: ObjectPageLayoutId }), {
507
499
  id: ObjectPageLayoutId,
508
500
  headerId: OPHeaderId,
@@ -521,7 +513,7 @@ sap.ui.define(
521
513
  * @alias sap.fe.test.ObjectPage.assertions#onForm
522
514
  * @public
523
515
  */
524
- onForm: function(vFormIdentifier) {
516
+ onForm: function (vFormIdentifier) {
525
517
  if (!Utils.isOfType(vFormIdentifier, String)) {
526
518
  if (vFormIdentifier.section) {
527
519
  vFormIdentifier.id = OPSubSectionIdPrefix + "::" + vFormIdentifier.section;
@@ -534,28 +526,28 @@ sap.ui.define(
534
526
  return new FormAssertions(_getFormBuilder(this, vFormIdentifier), vFormIdentifier);
535
527
  },
536
528
 
537
- iSeeLinkWithText: function(sText) {
529
+ iSeeLinkWithText: function (sText) {
538
530
  return OpaBuilder.create(this)
539
531
  .hasType("sap.m.Link")
540
532
  .hasProperties({ text: sText })
541
533
  .description("Seeing link with text '" + sText + "'")
542
534
  .execute();
543
535
  },
544
- iSeeTextWithText: function(sText) {
536
+ iSeeTextWithText: function (sText) {
545
537
  return OpaBuilder.create(this)
546
538
  .hasType("sap.m.Text")
547
539
  .hasProperties({ text: sText })
548
540
  .description("Seeing Text with text '" + sText + "'")
549
541
  .execute();
550
542
  },
551
- iSeeTitleWithText: function(sText) {
543
+ iSeeTitleWithText: function (sText) {
552
544
  return OpaBuilder.create(this)
553
545
  .hasType("sap.m.Title")
554
546
  .hasProperties({ text: sText })
555
547
  .description("Seeing Title with text '" + sText + "'")
556
548
  .execute();
557
549
  },
558
- iSeeContactDetailsPopover: function(sTitle) {
550
+ iSeeContactDetailsPopover: function (sTitle) {
559
551
  return (
560
552
  OpaBuilder.create(this)
561
553
  .hasType("sap.ui.mdc.link.Panel")
@@ -573,17 +565,17 @@ sap.ui.define(
573
565
  .execute()
574
566
  );
575
567
  },
576
- iSeeQuickViewPopover: function() {
568
+ iSeeQuickViewPopover: function () {
577
569
  return OpaBuilder.create(this)
578
570
  .hasType("sap.ui.mdc.link.Panel")
579
571
  .description("Seeing Quick View Details in ObjectPage")
580
572
  .execute();
581
573
  },
582
- iSeeContactPopoverWithAvatarImage: function(sImageSource) {
574
+ iSeeContactPopoverWithAvatarImage: function (sImageSource) {
583
575
  return OpaBuilder.create(this)
584
576
  .hasType("sap.ui.mdc.link.Panel")
585
- .check(function(avatars) {
586
- var bFound = avatars.some(function(avatar) {
577
+ .check(function (avatars) {
578
+ var bFound = avatars.some(function (avatar) {
587
579
  return avatar.src === sImageSource;
588
580
  });
589
581
  return bFound === false;
@@ -591,7 +583,7 @@ sap.ui.define(
591
583
  .description("Seeing Contact Card with Avatar Image in ObjectPage")
592
584
  .execute();
593
585
  },
594
- iSeeQuickViewMoreLinksButton: function() {
586
+ iSeeQuickViewMoreLinksButton: function () {
595
587
  return OpaBuilder.create(this)
596
588
  .isDialogElement(true)
597
589
  .hasType("sap.m.Button")
@@ -599,37 +591,37 @@ sap.ui.define(
599
591
  .description("The 'More Links' button found")
600
592
  .execute();
601
593
  },
602
- iSeeObjectPageInDisplayMode: function() {
594
+ iSeeObjectPageInDisplayMode: function () {
603
595
  return this._iSeeObjectPageInMode(Page_EditMode.DISPLAY);
604
596
  },
605
- iSeeObjectPageInEditMode: function() {
597
+ iSeeObjectPageInEditMode: function () {
606
598
  return this._iSeeObjectPageInMode(Page_EditMode.EDITABLE);
607
599
  },
608
- _iSeeObjectPageInMode: function(sMode) {
600
+ _iSeeObjectPageInMode: function (sMode) {
609
601
  return OpaBuilder.create(this)
610
602
  .hasId(ViewId)
611
603
  .viewId(null)
612
- .has(function(oObjectPage) {
604
+ .has(function (oObjectPage) {
613
605
  return oObjectPage.getModel("ui").getProperty("/editMode") === sMode;
614
606
  })
615
607
  .description("Object Page is in mode '" + sMode + "'")
616
608
  .execute();
617
609
  },
618
- iSeeSectionWithTitle: function(sTitle) {
610
+ iSeeSectionWithTitle: function (sTitle) {
619
611
  return OpaBuilder.create(this)
620
612
  .hasType("sap.uxap.ObjectPageSection")
621
613
  .hasProperties({ title: sTitle })
622
614
  .description("Seeing section with title '" + sTitle + "'")
623
615
  .execute();
624
616
  },
625
- iSeeSubSectionWithTitle: function(sTitle) {
617
+ iSeeSubSectionWithTitle: function (sTitle) {
626
618
  return OpaBuilder.create(this)
627
619
  .hasType("sap.uxap.ObjectPageSubSection")
628
620
  .hasProperties({ title: sTitle })
629
621
  .description("Seeing sub-section with title '" + sTitle + "'")
630
622
  .execute();
631
623
  },
632
- iSeeSectionButtonWithTitle: function(sTitle, mState) {
624
+ iSeeSectionButtonWithTitle: function (sTitle, mState) {
633
625
  return FEBuilder.create(this)
634
626
  .hasId(AnchorBarId)
635
627
  .has(
@@ -644,7 +636,7 @@ sap.ui.define(
644
636
  )
645
637
  .execute();
646
638
  },
647
- iSeeFlpLink: function(sDescription) {
639
+ iSeeFlpLink: function (sDescription) {
648
640
  return OpaBuilder.create(this)
649
641
  .hasType("sap.m.Link")
650
642
  .isDialogElement(true)
@@ -652,7 +644,7 @@ sap.ui.define(
652
644
  .description("FLP link with text '" + sDescription + "' is present")
653
645
  .execute();
654
646
  },
655
- iSeeSimpleFormWithLabel: function(sDescription) {
647
+ iSeeSimpleFormWithLabel: function (sDescription) {
656
648
  return OpaBuilder.create(this)
657
649
  .hasType("sap.m.Label")
658
650
  .isDialogElement(true)
@@ -660,31 +652,23 @@ sap.ui.define(
660
652
  .description("SimpleForm has label '" + sDescription + "' is present")
661
653
  .execute();
662
654
  },
663
- iSeeSimpleFormWithText: function(sText) {
655
+ iSeeSimpleFormWithText: function (sText) {
664
656
  return OpaBuilder.create(this)
665
657
  .hasType("sap.ui.layout.form.SimpleForm")
666
658
  .isDialogElement(true)
667
- .doOnChildren(
668
- OpaBuilder.create(this)
669
- .hasType("sap.m.Text")
670
- .hasProperties({ text: sText })
671
- )
659
+ .doOnChildren(OpaBuilder.create(this).hasType("sap.m.Text").hasProperties({ text: sText }))
672
660
  .description("SimpleForm has text '" + sText + "' is present")
673
661
  .execute();
674
662
  },
675
- iSeeSimpleFormWithLink: function(sText) {
663
+ iSeeSimpleFormWithLink: function (sText) {
676
664
  return OpaBuilder.create(this)
677
665
  .hasType("sap.ui.layout.form.SimpleForm")
678
666
  .isDialogElement(true)
679
- .doOnChildren(
680
- OpaBuilder.create(this)
681
- .hasType("sap.m.Link")
682
- .hasProperties({ text: sText })
683
- )
667
+ .doOnChildren(OpaBuilder.create(this).hasType("sap.m.Link").hasProperties({ text: sText }))
684
668
  .description("SimpleForm has link '" + sText + "' is present")
685
669
  .execute();
686
670
  },
687
- iSeeSimpleFormWithTitle: function(sTitle) {
671
+ iSeeSimpleFormWithTitle: function (sTitle) {
688
672
  return OpaBuilder.create(this)
689
673
  .hasType("sap.ui.core.Title")
690
674
  .isDialogElement(true)
@@ -692,7 +676,7 @@ sap.ui.define(
692
676
  .description("SimpleForm has label '" + sTitle + "' is present")
693
677
  .execute();
694
678
  },
695
- iSeeSelectLinksDialog: function() {
679
+ iSeeSelectLinksDialog: function () {
696
680
  return OpaBuilder.create(this)
697
681
  .hasType("sap.m.Title")
698
682
  .isDialogElement(true)
@@ -700,12 +684,12 @@ sap.ui.define(
700
684
  .description("Seeing dialog open")
701
685
  .execute();
702
686
  },
703
- iDoNotSeeFlpLink: function(sDescription) {
687
+ iDoNotSeeFlpLink: function (sDescription) {
704
688
  return OpaBuilder.create(this)
705
689
  .hasType("sap.m.Link")
706
690
  .isDialogElement(true)
707
- .check(function(links) {
708
- var bFound = links.some(function(link) {
691
+ .check(function (links) {
692
+ var bFound = links.some(function (link) {
709
693
  return link.getText() === sDescription;
710
694
  });
711
695
  return bFound === false;
@@ -713,50 +697,26 @@ sap.ui.define(
713
697
  .description("FLP link with text '" + sDescription + "' is not found")
714
698
  .execute();
715
699
  },
716
- iSeeTitleLink: function(sDescription, sIntent) {
700
+ iSeeTextInQuickViewForm: function (sText) {
717
701
  return OpaBuilder.create(this)
718
- .hasType("sap.m.Link")
702
+ .hasType("sap.m.Text")
719
703
  .isDialogElement(true)
720
- .hasProperties({ text: sDescription, href: sIntent })
721
- .description("QuickView Title link with text '" + sDescription + "' is found")
722
- .execute();
723
- },
724
- iSeeQuickViewTitleWithText: function(sTitleText) {
725
- return OpaBuilder.create(this)
726
- .hasType("sap.ui.mdc.link.Panel")
727
- .check(function(titles) {
728
- var bFound = titles.some(function(title) {
729
- return title.text === sTitleText;
730
- });
731
- return bFound === false;
732
- }, true)
733
- .description("Seeing QuickView with Title in ListReport")
734
- .execute();
735
- },
736
- iSeeQuickViewFieldWithText: function(sTitleText) {
737
- return OpaBuilder.create(this)
738
- .hasType("sap.fe.core.controls.FieldWrapper")
739
- .check(function(titles) {
740
- var bFound = titles.some(function(title) {
741
- return title.text === sTitleText;
742
- });
743
- return bFound === false;
744
- }, true)
745
- .description("Seeing QuickView Form with Text in ListReport")
704
+ .hasProperties({ text: sText })
705
+ .description("Seeing label with text '" + sText + "'")
746
706
  .execute();
747
707
  },
748
- iSeeCreateConfirmation: function() {
708
+ iSeeCreateConfirmation: function () {
749
709
  return this._iSeeTheMessageToast(oResourceBundleCore.getText("C_TRANSACTION_HELPER_OBJECT_CREATED"));
750
710
  },
751
- iSeeSaveConfirmation: function() {
711
+ iSeeSaveConfirmation: function () {
752
712
  return this._iSeeTheMessageToast(oResourceBundleCore.getText("C_TRANSACTION_HELPER_OBJECT_SAVED"));
753
713
  },
754
- iSeeDeleteConfirmation: function() {
714
+ iSeeDeleteConfirmation: function () {
755
715
  return this._iSeeTheMessageToast(
756
716
  oResourceBundleCore.getText("C_TRANSACTION_HELPER_OBJECT_PAGE_DELETE_TOAST_SINGULAR")
757
717
  );
758
718
  },
759
- iSeeConfirmMessageBoxWithTitle: function(sTitle) {
719
+ iSeeConfirmMessageBoxWithTitle: function (sTitle) {
760
720
  return OpaBuilder.create(this)
761
721
  .hasType("sap.m.Dialog")
762
722
  .isDialogElement(true)
@@ -764,17 +724,17 @@ sap.ui.define(
764
724
  .description("Seeing Message dialog open")
765
725
  .execute();
766
726
  },
767
- iSeeMoreFormContent: function(sSectionId) {
727
+ iSeeMoreFormContent: function (sSectionId) {
768
728
  return OpaBuilder.create(this)
769
729
  .hasId(OPFormIdPrefix + "::" + sSectionId + "::MoreContent")
770
730
  .description("Seeing More Form Content in " + sSectionId)
771
731
  .execute();
772
732
  },
773
- iDoNotSeeMoreFormContent: function(sSectionId) {
733
+ iDoNotSeeMoreFormContent: function (sSectionId) {
774
734
  return OpaBuilder.create(this)
775
735
  .hasType("sap.ui.layout.form.Form")
776
- .check(function(aElements) {
777
- var bFound = aElements.some(function(oElement) {
736
+ .check(function (aElements) {
737
+ var bFound = aElements.some(function (oElement) {
778
738
  return oElement.getId().includes(sSectionId + "::MoreContent");
779
739
  });
780
740
  return bFound === false;
@@ -782,7 +742,7 @@ sap.ui.define(
782
742
  .description("Not Seeing More Form Content in " + sSectionId)
783
743
  .execute();
784
744
  },
785
- iSeeControlVMTableTitle: function(sTitle, sNavProperty) {
745
+ iSeeControlVMTableTitle: function (sTitle, sNavProperty) {
786
746
  return OpaBuilder.create(this)
787
747
  .hasType("sap.m.Title")
788
748
  .hasId(getTableId(sNavProperty) + "::VM-text")
@@ -790,17 +750,17 @@ sap.ui.define(
790
750
  .description("Seeing variant title '" + sTitle + "'")
791
751
  .execute();
792
752
  },
793
- iSeeMessageView: function() {
753
+ iSeeMessageView: function () {
794
754
  return OpaBuilder.create(this)
795
755
  .hasType("sap.m.MessageView")
796
756
  .isDialogElement(true)
797
757
  .description("MessageView is visible")
798
758
  .execute();
799
759
  },
800
- iCheckMessageItemsOrder: function(aBoundMessagesInfo) {
760
+ iCheckMessageItemsOrder: function (aBoundMessagesInfo) {
801
761
  return OpaBuilder.create(this)
802
762
  .hasType("sap.m.MessageView")
803
- .check(function(oMessageView) {
763
+ .check(function (oMessageView) {
804
764
  var messages = oMessageView[0].getItems();
805
765
  return (
806
766
  messages[0].getGroupName() === aBoundMessagesInfo[0].GroupLabel &&
@@ -814,10 +774,10 @@ sap.ui.define(
814
774
  .execute();
815
775
  },
816
776
 
817
- iCheckMessageItemProperties: function(oBoundMessageInfo, iMessagePosition) {
777
+ iCheckMessageItemProperties: function (oBoundMessageInfo, iMessagePosition) {
818
778
  return OpaBuilder.create(this)
819
779
  .hasType("sap.m.MessageView")
820
- .check(function(oMessageView) {
780
+ .check(function (oMessageView) {
821
781
  var messages = oMessageView[0].getItems();
822
782
  var bMessageObjectHasExpectedValues =
823
783
  messages[iMessagePosition].getGroupName() === oBoundMessageInfo.GroupLabel &&
@@ -836,7 +796,7 @@ sap.ui.define(
836
796
  .description("MessageItem is correctly displayed")
837
797
  .execute();
838
798
  },
839
- iClickBackOnMessageView: function() {
799
+ iClickBackOnMessageView: function () {
840
800
  return OpaBuilder.create(this)
841
801
  .hasType("sap.m.MessageView")
842
802
  .isDialogElement(true)
@@ -849,7 +809,7 @@ sap.ui.define(
849
809
  )
850
810
  .execute();
851
811
  },
852
- iCheckVisibilityOfButtonWithText: function(sText, bExpectedVisibility) {
812
+ iCheckVisibilityOfButtonWithText: function (sText, bExpectedVisibility) {
853
813
  return OpaBuilder.create(this)
854
814
  .hasType("sap.m.Button")
855
815
  .mustBeVisible(bExpectedVisibility)
@@ -857,12 +817,12 @@ sap.ui.define(
857
817
  .description("Button '" + sText + "' is " + (bExpectedVisibility ? "visible" : "NOT visible"))
858
818
  .execute();
859
819
  },
860
- iCheckFieldVisibilityInMassEditDialog: function(sFieldID, sValue) {
820
+ iCheckFieldVisibilityInMassEditDialog: function (sFieldID, sValue) {
861
821
  return OpaBuilder.create(this)
862
822
  .isDialogElement()
863
823
  .hasType("sap.m.ComboBox")
864
- .check(function(aControls) {
865
- var bControlExists = aControls.some(function(oControl) {
824
+ .check(function (aControls) {
825
+ var bControlExists = aControls.some(function (oControl) {
866
826
  return oControl.getId() === sFieldID;
867
827
  });
868
828
  return bControlExists === sValue;