@sapui5/sap.fe.test 1.100.0 → 1.101.0

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/KPICardAssertions",
22
22
  "sap/fe/test/api/KPICardActions"
23
23
  ],
24
- function(
24
+ function (
25
25
  Utils,
26
26
  TemplatePage,
27
27
  Opa5,
@@ -110,7 +110,7 @@ sap.ui.define(
110
110
  * @name sap.fe.test.ListReport.actions#onTable
111
111
  * @public
112
112
  */
113
- onTable: function(vTableIdentifier) {
113
+ onTable: function (vTableIdentifier) {
114
114
  var sTableId;
115
115
  if (vTableIdentifier) {
116
116
  sTableId = !Utils.isOfType(vTableIdentifier, String)
@@ -121,7 +121,7 @@ sap.ui.define(
121
121
  }
122
122
  return this._onTable({ id: sTableId });
123
123
  },
124
- onChart: function(vChartIdentifier) {
124
+ onChart: function (vChartIdentifier) {
125
125
  var sChartId;
126
126
  if (vChartIdentifier) {
127
127
  sChartId = !Utils.isOfType(vChartIdentifier, String)
@@ -134,7 +134,7 @@ sap.ui.define(
134
134
  id: sChartId
135
135
  });
136
136
  },
137
- onKPICard: function() {
137
+ onKPICard: function () {
138
138
  return new KPICardActions(KPIBuilder.create(this));
139
139
  },
140
140
  /**
@@ -145,7 +145,7 @@ sap.ui.define(
145
145
  * @alias sap.fe.test.ListReport.actions#onFilterBar
146
146
  * @public
147
147
  */
148
- onFilterBar: function() {
148
+ onFilterBar: function () {
149
149
  return this._onFilterBar({ id: FilterBarId });
150
150
  },
151
151
  /**
@@ -156,7 +156,7 @@ sap.ui.define(
156
156
  * @alias sap.fe.test.ListReport.actions#onHeader
157
157
  * @public
158
158
  */
159
- onHeader: function() {
159
+ onHeader: function () {
160
160
  return new HeaderActionsLR(_getHeaderBuilder(this, PageId), { id: PageId });
161
161
  },
162
162
  /**
@@ -169,10 +169,10 @@ sap.ui.define(
169
169
  * @name sap.fe.test.ListReport.actions#iCollapseExpandPageHeader
170
170
  * @public
171
171
  */
172
- iCollapseExpandPageHeader: function(bCollapse) {
172
+ iCollapseExpandPageHeader: function (bCollapse) {
173
173
  return this._iCollapseExpandPageHeader(bCollapse);
174
174
  },
175
- iExecuteActionOnDialog: function(sText) {
175
+ iExecuteActionOnDialog: function (sText) {
176
176
  return OpaBuilder.create(this)
177
177
  .hasType("sap.m.Button")
178
178
  .hasProperties({ text: sText })
@@ -181,7 +181,7 @@ sap.ui.define(
181
181
  .description("Pressing dialog button '" + sText + "'")
182
182
  .execute();
183
183
  },
184
- iClickLinkWithText: function(sText) {
184
+ iClickLinkWithText: function (sText) {
185
185
  return OpaBuilder.create(this)
186
186
  .hasType("sap.m.Link")
187
187
  .hasProperties({ text: sText })
@@ -189,7 +189,7 @@ sap.ui.define(
189
189
  .description("Navigating via link '" + sText + "'")
190
190
  .execute();
191
191
  },
192
- iOpenIconTabWithTitle: function(sName) {
192
+ iOpenIconTabWithTitle: function (sName) {
193
193
  return OpaBuilder.create(this)
194
194
  .hasId(IconTabBarId)
195
195
  .has(OpaBuilder.Matchers.aggregation("items", OpaBuilder.Matchers.properties({ text: sName })))
@@ -197,7 +197,7 @@ sap.ui.define(
197
197
  .description("Selecting Icon Tab " + sName)
198
198
  .execute();
199
199
  },
200
- iSaveVariant: function(sVariantName, bSetAsDefault, bApplyAutomatically) {
200
+ iSaveVariant: function (sVariantName, bSetAsDefault, bApplyAutomatically) {
201
201
  var aArguments = Utils.parseArguments([String, Boolean, Boolean], arguments),
202
202
  oVMBuilder = VMBuilder.create(this).hasId("fe::PageVariantManagement");
203
203
 
@@ -220,14 +220,14 @@ sap.ui.define(
220
220
  }
221
221
  return oVMBuilder.execute();
222
222
  },
223
- iSelectVariant: function(sVariantName) {
223
+ iSelectVariant: function (sVariantName) {
224
224
  return VMBuilder.create(this)
225
225
  .hasId("fe::PageVariantManagement")
226
226
  .doSelectVariant(sVariantName)
227
227
  .description(Utils.formatMessage("Selecting variant '{1}' from '{0}'", "Page Variant", sVariantName))
228
228
  .execute();
229
229
  },
230
- iOpenKPICard: function(sTitle) {
230
+ iOpenKPICard: function (sTitle) {
231
231
  return KPIBuilder.create(this)
232
232
  .clickKPITag(sTitle)
233
233
  .description("Opening card for KPI '" + sTitle + "'")
@@ -251,7 +251,7 @@ sap.ui.define(
251
251
  * @alias sap.fe.test.ListReport.assertions#onTable
252
252
  * @public
253
253
  */
254
- onTable: function(vTableIdentifier) {
254
+ onTable: function (vTableIdentifier) {
255
255
  if (!vTableIdentifier) {
256
256
  vTableIdentifier = { id: SingleTableId };
257
257
  } else {
@@ -263,7 +263,7 @@ sap.ui.define(
263
263
 
264
264
  return this._onTable(vTableIdentifier);
265
265
  },
266
- onChart: function(vChartIdentifier) {
266
+ onChart: function (vChartIdentifier) {
267
267
  var sChartId;
268
268
  if (vChartIdentifier) {
269
269
  sChartId = !Utils.isOfType(vChartIdentifier, String)
@@ -284,7 +284,7 @@ sap.ui.define(
284
284
  * @alias sap.fe.test.ListReport.assertions#onFilterBar
285
285
  * @public
286
286
  */
287
- onFilterBar: function() {
287
+ onFilterBar: function () {
288
288
  return this._onFilterBar({ id: FilterBarId });
289
289
  },
290
290
  /**
@@ -295,20 +295,20 @@ sap.ui.define(
295
295
  * @alias sap.fe.test.ListReport.assertions#onHeader
296
296
  * @public
297
297
  */
298
- onHeader: function() {
298
+ onHeader: function () {
299
299
  return new HeaderAssertionsLR(_getHeaderBuilder(this, PageId), { id: PageId });
300
300
  },
301
- onKPICard: function() {
301
+ onKPICard: function () {
302
302
  return new KPICardAssertions(KPIBuilder.create(this));
303
303
  },
304
- iSeeTheMessageToast: function(sText) {
304
+ iSeeTheMessageToast: function (sText) {
305
305
  return this._iSeeTheMessageToast(sText);
306
306
  },
307
- iSeeFilterFieldsInFilterBar: function(iNumberOfFilterFields, bIsVisualFilterLayout) {
307
+ iSeeFilterFieldsInFilterBar: function (iNumberOfFilterFields, bIsVisualFilterLayout) {
308
308
  if (bIsVisualFilterLayout) {
309
309
  return OpaBuilder.create(this)
310
310
  .hasId(FilterBarId)
311
- .check(function(oControl) {
311
+ .check(function (oControl) {
312
312
  return (
313
313
  oControl
314
314
  .getAggregation("layout")
@@ -325,11 +325,11 @@ sap.ui.define(
325
325
  .description("Seeing filter bar with " + iNumberOfFilterFields + " filter fields")
326
326
  .execute();
327
327
  },
328
- iSeeTableCellWithActions: function(sPath, nCellPos, sButtonText) {
328
+ iSeeTableCellWithActions: function (sPath, nCellPos, sButtonText) {
329
329
  return OpaBuilder.create(this)
330
330
  .hasType("sap.m.ColumnListItem")
331
331
  .has(OpaBuilder.Matchers.bindingPath(sPath))
332
- .has(function(row) {
332
+ .has(function (row) {
333
333
  var cell = row.getCells()[nCellPos];
334
334
  if (cell.isA("sap.fe.macros.MacroAPI")) {
335
335
  cell = cell.getContent();
@@ -339,14 +339,14 @@ sap.ui.define(
339
339
  .description("Inline Action is present in the table cell with the Text " + sButtonText)
340
340
  .execute();
341
341
  },
342
- iSeeLinkWithText: function(sText) {
342
+ iSeeLinkWithText: function (sText) {
343
343
  return OpaBuilder.create(this)
344
344
  .hasType("sap.m.Link")
345
345
  .hasProperties({ text: sText })
346
346
  .description("Seeing link with text '" + sText + "'")
347
347
  .execute();
348
348
  },
349
- iSeeQuickViewMoreLinksButton: function() {
349
+ iSeeQuickViewMoreLinksButton: function () {
350
350
  return OpaBuilder.create(this)
351
351
  .isDialogElement(true)
352
352
  .hasType("sap.m.Button")
@@ -354,7 +354,7 @@ sap.ui.define(
354
354
  .description("The 'More Links' button found")
355
355
  .execute();
356
356
  },
357
- iSeeFlpLink: function(sDescription) {
357
+ iSeeFlpLink: function (sDescription) {
358
358
  return OpaBuilder.create(this)
359
359
  .hasType("sap.m.Link")
360
360
  .isDialogElement(true)
@@ -362,7 +362,7 @@ sap.ui.define(
362
362
  .description("FLP link with text '" + sDescription + "' is present")
363
363
  .execute();
364
364
  },
365
- iSeeHeaderPinnableToggle: function(bVisible) {
365
+ iSeeHeaderPinnableToggle: function (bVisible) {
366
366
  var sState = bVisible ? "visible" : "hidden";
367
367
  return OpaBuilder.create(this)
368
368
  .hasType("sap.f.DynamicPageHeader")
@@ -370,11 +370,11 @@ sap.ui.define(
370
370
  .description("The Page Header Pinnable Toggle is " + sState)
371
371
  .execute();
372
372
  },
373
- iSeeContactPopoverWithAvatarImage: function(sImageSource) {
373
+ iSeeContactPopoverWithAvatarImage: function (sImageSource) {
374
374
  return OpaBuilder.create(this)
375
375
  .hasType("sap.ui.mdc.link.Panel")
376
- .check(function(avatars) {
377
- var bFound = avatars.some(function(avatar) {
376
+ .check(function (avatars) {
377
+ var bFound = avatars.some(function (avatar) {
378
378
  return avatar.src === sImageSource;
379
379
  });
380
380
  return bFound === false;
@@ -382,55 +382,64 @@ sap.ui.define(
382
382
  .description("Seeing Contact Card with Avatar Image in ListReport")
383
383
  .execute();
384
384
  },
385
- iSeeLabelWithText: function(sText) {
385
+ iSeeQuickViewPopover: function () {
386
+ return OpaBuilder.create(this)
387
+ .hasType("sap.ui.mdc.link.Panel")
388
+ .description("Seeing Quick View Popover")
389
+ .execute();
390
+ },
391
+ iSeeAvatarImage: function (sImageSource) {
392
+ return OpaBuilder.create(this)
393
+ .hasType("sap.m.Avatar")
394
+ .hasProperties({ src: sImageSource })
395
+ .description("Seeing avatar image with url '" + sImageSource + "'")
396
+ .execute();
397
+ },
398
+ iSeeLabelWithText: function (sText) {
386
399
  return OpaBuilder.create(this)
387
400
  .hasType("sap.m.Label")
388
401
  .hasProperties({ text: sText })
389
- .description("Not Seeing label with text '" + sText + "'")
402
+ .description("Seeing label with text '" + sText + "'")
390
403
  .execute();
391
404
  },
392
- iSeeQuickViewTitleWithText: function(sTitleText) {
405
+ iSeeTitleInQuickViewForm: function (sText) {
393
406
  return OpaBuilder.create(this)
394
- .hasType("sap.ui.mdc.link.Panel")
395
- .check(function(titles) {
396
- var bFound = titles.some(function(title) {
397
- return title.text === sTitleText;
398
- });
399
- return bFound === false;
400
- }, true)
401
- .description("Seeing QuickView with Title in ListReport")
407
+ .hasType("sap.ui.core.Title")
408
+ .isDialogElement(true)
409
+ .hasProperties({ text: sText })
410
+ .description("Seeing title with text '" + sText + "'")
402
411
  .execute();
403
412
  },
404
- iSeeSummaryOfAppliedFilters: function() {
413
+ iSeeSummaryOfAppliedFilters: function () {
405
414
  var sAppliedFilters;
406
415
  OpaBuilder.create(this)
407
416
  .hasId(FilterBarId)
408
417
  .mustBeVisible(false)
409
- .do(function(oFilterbar) {
418
+ .do(function (oFilterbar) {
410
419
  sAppliedFilters = oFilterbar.getAssignedFiltersText().filtersText;
411
420
  })
412
421
  .execute();
413
422
  return OpaBuilder.create(this)
414
423
  .hasType("sap.f.DynamicPageTitle")
415
- .has(function(oDynamicPageTitle) {
424
+ .has(function (oDynamicPageTitle) {
416
425
  return oDynamicPageTitle.getSnappedContent()[0].getText() === sAppliedFilters;
417
426
  })
418
427
  .description("The correct text on the collapsed filterbar is displayed")
419
428
  .execute();
420
429
  },
421
- iSeeDeleteConfirmation: function() {
430
+ iSeeDeleteConfirmation: function () {
422
431
  return this._iSeeTheMessageToast(
423
432
  oResourceBundleCore.getText("C_TRANSACTION_HELPER_OBJECT_PAGE_DELETE_TOAST_SINGULAR")
424
433
  );
425
434
  },
426
- iSeePageTitle: function(sTitle) {
435
+ iSeePageTitle: function (sTitle) {
427
436
  return OpaBuilder.create(this)
428
437
  .hasType("sap.f.DynamicPageTitle")
429
438
  .hasAggregationProperties("heading", { text: sTitle })
430
439
  .description("Seeing title '" + sTitle + "'")
431
440
  .execute();
432
441
  },
433
- iSeeVariantTitle: function(sTitle) {
442
+ iSeeVariantTitle: function (sTitle) {
434
443
  return OpaBuilder.create(this)
435
444
  .hasType("sap.m.Title")
436
445
  .hasId("fe::PageVariantManagement-text")
@@ -438,7 +447,7 @@ sap.ui.define(
438
447
  .description("Seeing variant title '" + sTitle + "'")
439
448
  .execute();
440
449
  },
441
- iSeeControlVMFilterBarTitle: function(sTitle) {
450
+ iSeeControlVMFilterBarTitle: function (sTitle) {
442
451
  return OpaBuilder.create(this)
443
452
  .hasType("sap.m.Title")
444
453
  .hasId(FilterBarId + "::VariantManagement-text")
@@ -446,7 +455,7 @@ sap.ui.define(
446
455
  .description("Seeing variant title '" + sTitle + "'")
447
456
  .execute();
448
457
  },
449
- iSeeControlVMTableTitle: function(sTitle, sIconTabProperty) {
458
+ iSeeControlVMTableTitle: function (sTitle, sIconTabProperty) {
450
459
  var sTableId = sIconTabProperty ? getTableId(sIconTabProperty) : SingleTableId;
451
460
  return OpaBuilder.create(this)
452
461
  .hasType("sap.m.Title")
@@ -455,7 +464,7 @@ sap.ui.define(
455
464
  .description("Seeing variant title '" + sTitle + "'")
456
465
  .execute();
457
466
  },
458
- iSeeVariantModified: function(bIsModified, bControl) {
467
+ iSeeVariantModified: function (bIsModified, bControl) {
459
468
  var sLabelId;
460
469
  if (bControl) {
461
470
  sLabelId = FilterBarId + "::VariantManagement-modified";
@@ -474,8 +483,8 @@ sap.ui.define(
474
483
  } else {
475
484
  return OpaBuilder.create(this)
476
485
  .hasType("sap.m.Label")
477
- .check(function(oLabels) {
478
- return !oLabels.some(function(oLabel) {
486
+ .check(function (oLabels) {
487
+ return !oLabels.some(function (oLabel) {
479
488
  return oLabel.getId() === sLabelId;
480
489
  });
481
490
  }, true)
@@ -483,20 +492,20 @@ sap.ui.define(
483
492
  .execute();
484
493
  }
485
494
  },
486
- iSeePageVM: function(mState) {
495
+ iSeePageVM: function (mState) {
487
496
  return FEBuilder.create(this)
488
497
  .hasId("fe::PageVariantManagement")
489
498
  .hasState(mState)
490
499
  .description(Utils.formatMessage("Seeing page VM with state '{0}'", mState))
491
500
  .execute();
492
501
  },
493
- iSeeControlVMFilterBar: function() {
502
+ iSeeControlVMFilterBar: function () {
494
503
  return OpaBuilder.create(this)
495
504
  .hasId(FilterBarId + "::VariantManagement")
496
505
  .description("Seeing control VM - FilterBar")
497
506
  .execute();
498
507
  },
499
- iSeeDraftIndicator: function() {
508
+ iSeeDraftIndicator: function () {
500
509
  return OpaBuilder.create(this)
501
510
  .hasType("sap.m.Link")
502
511
  .hasProperties({
@@ -505,7 +514,7 @@ sap.ui.define(
505
514
  .description("Draft indicator is visible")
506
515
  .execute();
507
516
  },
508
- iSeeDraftIndicatorLocked: function(user) {
517
+ iSeeDraftIndicatorLocked: function (user) {
509
518
  var text = oResourceBundleCore.getText(
510
519
  "C_DRAFT_POPOVER_ADMIN_DATA_DRAFTINFO_LOCKED_OBJECT_WITH_OWNER_INFO",
511
520
  [user]
@@ -516,7 +525,7 @@ sap.ui.define(
516
525
  .description("Draft indicator is visible and displays '" + text + "'")
517
526
  .execute();
518
527
  },
519
- iSeeIconTabWithProperties: function(mProperties) {
528
+ iSeeIconTabWithProperties: function (mProperties) {
520
529
  return (
521
530
  OpaBuilder.create(this)
522
531
  .hasId(IconTabBarId)
@@ -526,28 +535,22 @@ sap.ui.define(
526
535
  .execute()
527
536
  );
528
537
  },
529
- iSeeNumOfOperators: function(sFieldName, numItems) {
538
+ iSeeNumOfOperators: function (sFieldName, numItems) {
530
539
  return OpaBuilder.create(this)
531
540
  .hasId(FilterBarVHDId + sFieldName + "-DCP")
532
541
  .doOnChildren(OpaBuilder.create(this).hasAggregationLength("items", numItems))
533
542
  .description("Seeing a value list of condition operators with " + numItems + " items.")
534
543
  .execute();
535
544
  },
536
- iSeeKPI: function(sTitle, oProperties) {
545
+ iSeeKPI: function (sTitle, oProperties) {
537
546
  var sDescription = "Seeing KPI '" + sTitle + "'";
538
547
  if (oProperties) {
539
548
  sDescription += " with properties " + JSON.stringify(oProperties);
540
549
  }
541
- return KPIBuilder.create(this)
542
- .checkKPITag(sTitle, oProperties)
543
- .description(sDescription)
544
- .execute();
550
+ return KPIBuilder.create(this).checkKPITag(sTitle, oProperties).description(sDescription).execute();
545
551
  },
546
- iSeeKPICard: function() {
547
- return KPIBuilder.create(this)
548
- .checkKPICard()
549
- .description("Seeing KPI Card")
550
- .execute();
552
+ iSeeKPICard: function () {
553
+ return KPIBuilder.create(this).checkKPICard().description("Seeing KPI Card").execute();
551
554
  }
552
555
  }
553
556
  }