@coolon/angular-ui-powerups 12.4.0-alpha.17 → 12.4.0-alpha.18

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.
Files changed (79) hide show
  1. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +238 -93
  2. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  3. package/cypress/builder.d.ts +7 -2
  4. package/cypress/components/aup-abstract-activity.d.ts +2 -1
  5. package/cypress/components/aup-activity.d.ts +2 -1
  6. package/cypress/components/aup-alert.d.ts +2 -1
  7. package/cypress/components/aup-command-face.d.ts +5 -4
  8. package/cypress/components/aup-command.d.ts +1 -1
  9. package/cypress/components/aup-modal-alert.d.ts +2 -1
  10. package/cypress/components/aup-popup-menu.d.ts +1 -2
  11. package/cypress/components/aup-table.d.ts +30 -3
  12. package/cypress/components/button.d.ts +8 -6
  13. package/cypress/components/{button-mixin.d.ts → form-element-mixin.d.ts} +7 -6
  14. package/cypress/components/mat-checkbox.d.ts +29 -0
  15. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  16. package/cypress/element-locator.d.ts +10 -0
  17. package/cypress/exports.d.ts +3 -1
  18. package/cypress/page-element.d.ts +8 -10
  19. package/cypress/page.d.ts +1 -1
  20. package/esm2015/cypress/builder.js +26 -18
  21. package/esm2015/cypress/builder.js.map +1 -1
  22. package/esm2015/cypress/builder.metadata.json +1 -1
  23. package/esm2015/cypress/components/aup-abstract-activity.js +1 -0
  24. package/esm2015/cypress/components/aup-abstract-activity.js.map +1 -1
  25. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +1 -1
  26. package/esm2015/cypress/components/aup-activity.js.map +1 -1
  27. package/esm2015/cypress/components/aup-activity.metadata.json +1 -1
  28. package/esm2015/cypress/components/aup-alert.js.map +1 -1
  29. package/esm2015/cypress/components/aup-alert.metadata.json +1 -1
  30. package/esm2015/cypress/components/aup-command-face.js +6 -6
  31. package/esm2015/cypress/components/aup-command-face.js.map +1 -1
  32. package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
  33. package/esm2015/cypress/components/aup-command.js +3 -3
  34. package/esm2015/cypress/components/aup-command.js.map +1 -1
  35. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  36. package/esm2015/cypress/components/aup-empty-state.js +1 -1
  37. package/esm2015/cypress/components/aup-empty-state.js.map +1 -1
  38. package/esm2015/cypress/components/aup-input.js +5 -5
  39. package/esm2015/cypress/components/aup-input.js.map +1 -1
  40. package/esm2015/cypress/components/aup-modal-activity.js +1 -1
  41. package/esm2015/cypress/components/aup-modal-activity.js.map +1 -1
  42. package/esm2015/cypress/components/aup-modal-alert.js +1 -1
  43. package/esm2015/cypress/components/aup-modal-alert.js.map +1 -1
  44. package/esm2015/cypress/components/aup-modal-alert.metadata.json +1 -1
  45. package/esm2015/cypress/components/aup-navigation.js +1 -1
  46. package/esm2015/cypress/components/aup-navigation.js.map +1 -1
  47. package/esm2015/cypress/components/aup-popup-menu.js +3 -3
  48. package/esm2015/cypress/components/aup-popup-menu.js.map +1 -1
  49. package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -1
  50. package/esm2015/cypress/components/aup-table.js +85 -7
  51. package/esm2015/cypress/components/aup-table.js.map +1 -1
  52. package/esm2015/cypress/components/aup-table.metadata.json +1 -1
  53. package/esm2015/cypress/components/button.js +4 -10
  54. package/esm2015/cypress/components/button.js.map +1 -1
  55. package/esm2015/cypress/components/button.metadata.json +1 -1
  56. package/esm2015/cypress/components/form-element-mixin.js +11 -0
  57. package/esm2015/cypress/components/form-element-mixin.js.map +1 -0
  58. package/esm2015/cypress/components/form-element-mixin.metadata.json +1 -0
  59. package/esm2015/cypress/components/mat-checkbox.js +34 -0
  60. package/esm2015/cypress/components/mat-checkbox.js.map +1 -0
  61. package/esm2015/cypress/components/mat-checkbox.metadata.json +1 -0
  62. package/esm2015/cypress/element-locator.js +22 -0
  63. package/esm2015/cypress/element-locator.js.map +1 -0
  64. package/esm2015/cypress/element-locator.metadata.json +1 -0
  65. package/esm2015/cypress/exports.js +3 -1
  66. package/esm2015/cypress/exports.js.map +1 -1
  67. package/esm2015/cypress/exports.metadata.json +1 -1
  68. package/esm2015/cypress/page-element.js +21 -18
  69. package/esm2015/cypress/page-element.js.map +1 -1
  70. package/esm2015/cypress/page-element.metadata.json +1 -1
  71. package/esm2015/cypress/page.js +1 -1
  72. package/esm2015/cypress/page.js.map +1 -1
  73. package/esm2015/cypress/page.metadata.json +1 -1
  74. package/fesm2015/coolon-angular-ui-powerups-cypress.js +207 -77
  75. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  76. package/package.json +1 -1
  77. package/esm2015/cypress/components/button-mixin.js +0 -15
  78. package/esm2015/cypress/components/button-mixin.js.map +0 -1
  79. package/esm2015/cypress/components/button-mixin.metadata.json +0 -1
@@ -2,26 +2,43 @@ import { lang, Mixin } from '@coolon/typescript-utilities';
2
2
  import * as _ from 'lodash';
3
3
  import { DefaultUrlSerializer } from '@angular/router';
4
4
 
5
- class PageElement {
6
- constructor(parent, selector) {
7
- this.parentElementAccessor = parent instanceof PageElement ? () => parent.element() : parent;
8
- this.elementAccessStrategy = _.isString(selector) ? {
9
- findIn: p => p.find(selector),
10
- shouldNotExist: (p) => p.find(selector).should('not.exist')
11
- } : selector;
5
+ var ElementLocator;
6
+ (function (ElementLocator) {
7
+ function findByCssSelector(selector) {
8
+ return {
9
+ findIn: parent => parent.dom().find(selector),
10
+ shouldNotExist: (p) => p.dom().find(selector).should('not.exist')
11
+ };
12
+ }
13
+ ElementLocator.findByCssSelector = findByCssSelector;
14
+ function findByTextContent(selector, text) {
15
+ return {
16
+ findIn(parent) {
17
+ return parent.dom().contains(selector, text);
18
+ },
19
+ shouldNotExist(parent) {
20
+ return parent.dom().should('not.contain', text);
21
+ }
22
+ };
12
23
  }
13
- element() {
14
- const parent = this.getParentElement();
15
- return parent ? this.elementAccessStrategy.findIn(parent) : undefined;
24
+ ElementLocator.findByTextContent = findByTextContent;
25
+ })(ElementLocator || (ElementLocator = {}));
26
+
27
+ class PageElement {
28
+ constructor(parent, selectorOrLocator) {
29
+ this.parent = parent;
30
+ this.elementAccessStrategy = _.isString(selectorOrLocator) ?
31
+ ElementLocator.findByCssSelector(selectorOrLocator) :
32
+ selectorOrLocator;
16
33
  }
17
- getParentElement() {
18
- return this.parentElementAccessor ? this.parentElementAccessor() : undefined;
34
+ dom() {
35
+ return this.elementAccessStrategy.findIn(this.parent);
19
36
  }
20
37
  find(selector) {
21
- return new PageElement(() => this.element(), selector);
38
+ return new PageElement(this, selector);
22
39
  }
23
40
  click(text) {
24
- text ? this.element().contains(text).click() : this.element().click();
41
+ text ? this.dom().contains(text).click() : this.dom().click();
25
42
  }
26
43
  get should() {
27
44
  return this.getShoulder(this.getShouldElement());
@@ -30,28 +47,36 @@ class PageElement {
30
47
  return element.should.bind(element);
31
48
  }
32
49
  getShouldElement() {
33
- return this.element();
50
+ return this.dom();
34
51
  }
35
52
  shouldBeVisible() {
36
53
  this.should('be.visible');
37
54
  }
38
55
  shouldNotBeVisible() {
56
+ this.should('not.be.visible');
57
+ }
58
+ shouldExist() {
59
+ this.dom().should('exist');
60
+ }
61
+ shouldNotExist() {
39
62
  if (!this.elementAccessStrategy.shouldNotExist) {
40
- lang.abstractMethod(this.constructor);
63
+ this.dom().should("not.exist");
64
+ }
65
+ else {
66
+ this.elementAccessStrategy.shouldNotExist(this.parent);
41
67
  }
42
- this.elementAccessStrategy.shouldNotExist(this.getParentElement());
43
68
  }
44
69
  }
45
70
 
46
- class FaceAccessor {
71
+ class FaceElementLocator {
47
72
  constructor(face) {
48
73
  this.face = face;
49
74
  }
50
75
  findIn(parent) {
51
76
  return this.face.text ?
52
- parent.contains(`aup-command-face`, this.face.text()) :
77
+ parent.dom().contains(`aup-command-face`, this.face.text()) :
53
78
  this.face.icon ?
54
- parent.find(`aup-icon[ng-reflect-icon=${this.face.icon()}]`).closest('aup-command-face') :
79
+ parent.dom().find(`aup-icon[ng-reflect-icon=${this.face.icon()}]`).closest('aup-command-face') :
55
80
  undefined;
56
81
  }
57
82
  shouldNotExist(parent) {
@@ -64,10 +89,10 @@ class FaceAccessor {
64
89
  }
65
90
  class AupCommandFace extends PageElement {
66
91
  constructor(parentElement, face) {
67
- super(() => parentElement.element(), AupCommandFace.createAccessor(face));
92
+ super(parentElement, AupCommandFace.createElementLocator(face));
68
93
  }
69
- static createAccessor(face) {
70
- return new FaceAccessor(face);
94
+ static createElementLocator(face) {
95
+ return new FaceElementLocator(face);
71
96
  }
72
97
  }
73
98
 
@@ -76,10 +101,10 @@ class AupCommand extends PageElement {
76
101
  super(parent, {
77
102
  findIn(parentElement) {
78
103
  if (_.isString(faceOrSelector)) {
79
- return parentElement.find(faceOrSelector);
104
+ return parentElement.dom().find(faceOrSelector);
80
105
  }
81
106
  else {
82
- return AupCommandFace.createAccessor(faceOrSelector).findIn(parentElement).closest('aup-command');
107
+ return AupCommandFace.createElementLocator(faceOrSelector).findIn(parentElement).closest('aup-command');
83
108
  }
84
109
  },
85
110
  shouldNotExist(parentElement) {
@@ -97,25 +122,25 @@ class AupCommand extends PageElement {
97
122
  this.getButton().should('be.disabled');
98
123
  }
99
124
  getButton() {
100
- return this.element().find('button');
125
+ return this.dom().find('button');
101
126
  }
102
127
  }
103
128
 
104
129
  class AupEmptyState extends PageElement {
105
130
  shouldContainText(text) {
106
- this.element().should("contain.text", text);
131
+ this.dom().should("contain.text", text);
107
132
  }
108
133
  }
109
134
 
110
135
  class AupInput extends PageElement {
111
136
  label() {
112
- return this.element().find('label');
137
+ return this.dom().find('label');
113
138
  }
114
139
  hint() {
115
- return this.element().find('mat-hint');
140
+ return this.dom().find('mat-hint');
116
141
  }
117
142
  error() {
118
- return this.element().find('mat-error');
143
+ return this.dom().find('mat-error');
119
144
  }
120
145
  get labelShould() {
121
146
  return this.getShoulder(this.label());
@@ -151,7 +176,7 @@ class AupInput extends PageElement {
151
176
  (function (AupInput) {
152
177
  class HtmlInput extends AupInput {
153
178
  input() {
154
- return this.element().find('input');
179
+ return this.dom().find('input');
155
180
  }
156
181
  clear() {
157
182
  this.input().clear();
@@ -172,7 +197,7 @@ class AupInput extends PageElement {
172
197
  return this.input();
173
198
  }
174
199
  input() {
175
- return this.element().find('textarea');
200
+ return this.dom().find('textarea');
176
201
  }
177
202
  clear() {
178
203
  this.input().clear();
@@ -198,115 +223,219 @@ class AupNavigation extends PageElement {
198
223
  this.face(label).shouldBeVisible();
199
224
  }
200
225
  shouldNotHaveLink(label) {
201
- this.face(label).shouldNotBeVisible();
226
+ this.face(label).shouldNotExist();
202
227
  }
203
228
  }
204
229
 
230
+ /* tslint:disable:unified-signatures */
205
231
  class AupTable extends PageElement {
206
- constructor(parentElementAccessor, selector) {
207
- super(parentElementAccessor, selector);
208
- }
209
232
  row(rowId) {
210
- return new AupTable.Row(() => this.element(), `tr[aup-table-id=${rowId}]`);
233
+ return new AupTable.Row(this, AupTable.cssSelectorForTableRowById(rowId));
234
+ }
235
+ rowNumber(rowNumber) {
236
+ return new AupTable.Row(this, AupTable.cssSelectorForNthTableRow(rowNumber));
211
237
  }
212
238
  column(columnId) {
213
239
  return new AupTable.Column(this, columnId);
214
240
  }
241
+ selectionColumn() {
242
+ return new AupTable.SelectionColumn(this, 'selection-column');
243
+ }
215
244
  }
216
245
  (function (AupTable) {
246
+ function cssSelectorForTableRowById(rowId) {
247
+ return `tbody tr[aup-row-id=${rowId}]`;
248
+ }
249
+ AupTable.cssSelectorForTableRowById = cssSelectorForTableRowById;
250
+ function cssSelectorForNthTableRow(rowNumber) {
251
+ return `tbody tr:nth-child(${rowNumber})`;
252
+ }
253
+ AupTable.cssSelectorForNthTableRow = cssSelectorForNthTableRow;
254
+ function cssSelectorForColumnCellRendererById(columnId) {
255
+ return `aup-table-cell-renderer[column-id=${columnId}]`;
256
+ }
257
+ AupTable.cssSelectorForColumnCellRendererById = cssSelectorForColumnCellRendererById;
258
+ function cssSelectorForCell(rowId, columnId) {
259
+ return `${cssSelectorForTableRowById(rowId)} ${cssSelectorForColumnCellRendererById(columnId)}`;
260
+ }
261
+ AupTable.cssSelectorForCell = cssSelectorForCell;
217
262
  class Row extends PageElement {
263
+ constructor(table, selectorOrLocator) {
264
+ // @ts-ignore
265
+ super(table, selectorOrLocator);
266
+ this.table = table;
267
+ }
268
+ rowId() {
269
+ return this.dom()
270
+ .invoke('attr', 'aup-row-id');
271
+ }
272
+ shouldHaveRowId(rowId) {
273
+ this.rowId().should("eq", rowId);
274
+ }
275
+ cell(columnOrId) {
276
+ const self = this;
277
+ const columnId = _.isString(columnOrId) ? columnOrId : columnOrId.columnId;
278
+ return new Cell(this.table, {
279
+ findIn(parent) {
280
+ return self.rowId()
281
+ .then(rowId => AupTable.cssSelectorForCell(rowId, columnId))
282
+ .then(selector => parent.dom().find(selector));
283
+ }
284
+ });
285
+ }
286
+ shouldBeSelected() {
287
+ this.dom().should('have.class', 'aup-row-selected');
288
+ }
289
+ shouldNotBeSelected() {
290
+ this.dom().should('not.have.class', 'aup-row-selected');
291
+ }
218
292
  }
219
293
  AupTable.Row = Row;
220
- class Column {
294
+ class Column extends PageElement {
221
295
  constructor(table, columnId) {
296
+ super(table, `aup-table-header-cell-renderer[column-id="${columnId}"]`);
222
297
  this.table = table;
223
298
  this.columnId = columnId;
224
299
  }
225
- cell(content) {
300
+ cellContaining(content) {
226
301
  const self = this;
227
302
  return new Cell(this.table, {
228
303
  findIn(parent) {
229
- return parent.contains(`aup-table-cell-renderer[column-id=${self.columnId}]`, content);
304
+ return parent.dom().contains(cssSelectorForColumnCellRendererById(self.columnId), content);
230
305
  }
231
306
  });
232
307
  }
308
+ rowContaining(content) {
309
+ return this.cellContaining(content).row();
310
+ }
233
311
  }
234
312
  AupTable.Column = Column;
313
+ class SelectionColumn extends Column {
314
+ selectAll() {
315
+ }
316
+ }
317
+ AupTable.SelectionColumn = SelectionColumn;
235
318
  class Cell extends PageElement {
319
+ constructor(table, elementLocator) {
320
+ super(table, elementLocator);
321
+ this.table = table;
322
+ }
323
+ rowId() {
324
+ return this.dom().closest('tr').invoke('attr', 'aup-row-id');
325
+ }
326
+ row() {
327
+ const self = this;
328
+ return new Row(this.table, {
329
+ findIn(parent) {
330
+ return self.rowId()
331
+ .then(rowId => parent.dom().find(AupTable.cssSelectorForTableRowById(rowId)));
332
+ }
333
+ });
334
+ }
236
335
  }
237
336
  AupTable.Cell = Cell;
337
+ class SelectionColumnCell extends Cell {
338
+ }
339
+ AupTable.SelectionColumnCell = SelectionColumnCell;
238
340
  })(AupTable || (AupTable = {}));
239
341
 
240
- function ButtonMixin(Base) {
342
+ function FormElementMixin(Base) {
241
343
  return class extends Base {
242
344
  constructor(...args) {
243
345
  super(...args);
244
346
  }
245
- click() {
246
- return this.element().click();
247
- }
248
347
  shouldBeDisabled() {
249
348
  this.should("be.disabled");
250
- // this.should("have.css", "color", "rgba(0,0,0,0.26)")
251
349
  }
252
350
  };
253
351
  }
254
352
 
255
- class Button extends ButtonMixin(PageElement) {
353
+ class Button extends FormElementMixin(PageElement) {
256
354
  constructor(parentElementAccessor, buttonText) {
257
- super(parentElementAccessor, {
258
- findIn(parent) {
259
- return parent.contains('button', buttonText);
260
- },
261
- shouldNotExist(parent) {
262
- return parent.should('not.contain', buttonText);
355
+ super(parentElementAccessor, ElementLocator.findByTextContent('button', buttonText));
356
+ }
357
+ }
358
+
359
+ class MatCheckbox extends FormElementMixin(PageElement) {
360
+ constructor(parentElementAccessor, text) {
361
+ super(parentElementAccessor, ElementLocator.findByTextContent('mat-checkbox', text));
362
+ }
363
+ shouldBeChecked() {
364
+ this.hiddenCheckBoxElement().should('be.checked');
365
+ }
366
+ shouldNotBeChecked() {
367
+ this.hiddenCheckBoxElement().should('not.be.checked');
368
+ }
369
+ hiddenCheckBoxElement() {
370
+ return this.dom().find('input[type=checkbox]');
371
+ }
372
+ check() {
373
+ this.hiddenCheckBoxElement().then(el => {
374
+ if (!el.prop('checked')) {
375
+ this.click();
376
+ this.shouldBeChecked();
377
+ }
378
+ });
379
+ }
380
+ uncheck() {
381
+ this.hiddenCheckBoxElement().then(el => {
382
+ if (el.prop('checked')) {
383
+ this.click();
384
+ this.shouldNotBeChecked();
263
385
  }
264
386
  });
265
387
  }
266
388
  }
267
389
 
268
390
  class Builder {
269
- constructor(source) {
270
- this.source = source;
391
+ constructor(parentPageElement) {
392
+ this.parentPageElement = parentPageElement;
271
393
  }
272
394
  find(selector) {
273
- return new PageElement(this.source, selector);
395
+ return new PageElement(this.parentPageElement, selector);
274
396
  }
275
397
  section(selector, builder) {
276
398
  return this.createContainerElement(PageElement, selector, builder);
277
399
  }
278
400
  contains(text) {
279
- return new PageElement(this.source, {
280
- findIn: parent => parent.contains(text),
281
- shouldNotExist: (parent) => parent.should('not.contain', text)
401
+ return new PageElement(this.parentPageElement, {
402
+ findIn(parent) {
403
+ return parent.dom().contains(text);
404
+ },
405
+ shouldNotExist(parent) {
406
+ return parent.dom().should('not.contain', text);
407
+ }
282
408
  });
283
409
  }
284
410
  button(text) {
285
- return new Button(this.source, text);
411
+ return new Button(this.parentPageElement, text);
412
+ }
413
+ matCheckbox(text) {
414
+ return new MatCheckbox(this.parentPageElement, text);
286
415
  }
287
416
  aupStringInput(selector) {
288
- return new AupInput.HtmlInput(this.source, selector !== null && selector !== void 0 ? selector : 'aup-string-input');
417
+ return new AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-string-input');
289
418
  }
290
419
  aupTextInput(selector) {
291
- return new AupInput.TextAreaInput(this.source, selector !== null && selector !== void 0 ? selector : 'aup-text-input');
420
+ return new AupInput.TextAreaInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-text-input');
292
421
  }
293
422
  aupPasswordInput(selector) {
294
- return new AupInput.HtmlInput(this.source, selector !== null && selector !== void 0 ? selector : 'aup-password-input');
423
+ return new AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-password-input');
295
424
  }
296
425
  aupNumberInput(selector) {
297
- return new AupInput.HtmlInput(this.source, selector !== null && selector !== void 0 ? selector : 'aup-number-input');
426
+ return new AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-number-input');
298
427
  }
299
428
  aupCommand(faceOrSelector) {
300
- return new AupCommand(this.source, faceOrSelector);
429
+ return new AupCommand(this.parentPageElement, faceOrSelector);
301
430
  }
302
431
  aupTabbedNavigation() {
303
- return new AupNavigation(this.source, 'aup-tabbed-place-navigation');
432
+ return new AupNavigation(this.parentPageElement, 'aup-tabbed-place-navigation');
304
433
  }
305
434
  aupSideNavigation() {
306
- return new AupNavigation(this.source, 'aup-list-place-nav');
435
+ return new AupNavigation(this.parentPageElement, 'aup-list-place-nav');
307
436
  }
308
- aupTable(selector) {
309
- return new AupTable(this.source, selector !== null && selector !== void 0 ? selector : 'aup-table');
437
+ aupTable(selectorOrBuilder, optionalBuilder) {
438
+ return this.createContainerElement(AupTable, selectorOrBuilder, optionalBuilder, 'aup-table');
310
439
  }
311
440
  aupEmptyState(selectorOrBuilder, optionalBuilder) {
312
441
  return this.createContainerElement(AupEmptyState, selectorOrBuilder, optionalBuilder, 'aup-empty-state');
@@ -318,7 +447,7 @@ class Builder {
318
447
  if (!selector) {
319
448
  lang.illegalState('This element requires a selector but none was provided');
320
449
  }
321
- const element = new klass(this.source, selector);
450
+ const element = new klass(this.parentPageElement, selector);
322
451
  if (builder) {
323
452
  return Mixin.createProxy(element, builder(element));
324
453
  }
@@ -332,7 +461,7 @@ class Builder {
332
461
  if (!selector) {
333
462
  lang.illegalState('This element requires a selector but none was provided');
334
463
  }
335
- const element = new klass(this.source, selector);
464
+ const element = new klass(this.parentPageElement, selector);
336
465
  if (builder) {
337
466
  // create the B&E type that the builder has access to
338
467
  const decoratedElement = Mixin.createProxy(element, new Builder(element));
@@ -347,6 +476,7 @@ class Builder {
347
476
 
348
477
  class AupAbstractActivity extends PageElement {
349
478
  constructor(parent, selector) {
479
+ // @ts-ignore
350
480
  super(parent, selector);
351
481
  this.title = this.find('aup-activity-title');
352
482
  this._confirmCommand = new Builder(this).aupCommand('[data-cy=confirm-command]');
@@ -368,7 +498,7 @@ class AupActivity extends AupAbstractActivity {
368
498
 
369
499
  class AupModalActivity extends AupActivity {
370
500
  clickBackdrop() {
371
- this.element().closest(`.cdk-overlay-backdrop`).click(-50, -50, { force: true });
501
+ this.dom().closest(`.cdk-overlay-backdrop`).click(-50, -50, { force: true });
372
502
  }
373
503
  }
374
504
 
@@ -389,7 +519,7 @@ class AupModalAlert extends AupAlert {
389
519
  super(parent, selector);
390
520
  }
391
521
  clickBackdrop() {
392
- this.element()
522
+ this.dom()
393
523
  .closest(`.cdk-overlay-container`)
394
524
  .find(`.cdk-overlay-backdrop`).click(-50, -50, { force: true });
395
525
  }
@@ -475,7 +605,7 @@ class Page extends PageElement {
475
605
  this.path = path;
476
606
  this.rootElementSelector = 'body';
477
607
  }
478
- element() {
608
+ dom() {
479
609
  return cy.get(this.rootElementSelector);
480
610
  }
481
611
  visit(visitParams, queryParams) {
@@ -542,13 +672,13 @@ class AupMoreMenu extends PageElement {
542
672
 
543
673
  class AupPopupMenu extends PageElement {
544
674
  constructor(parentElementAccessor, face) {
545
- const accessor = AupCommandFace.createAccessor(face);
675
+ const locator = AupCommandFace.createElementLocator(face);
546
676
  super(parentElementAccessor, {
547
677
  findIn(parent) {
548
- return accessor.findIn(parent).closest('button');
678
+ return locator.findIn(parent).closest('button');
549
679
  },
550
680
  shouldNotExist(parent) {
551
- accessor.shouldNotExist(parent);
681
+ locator.shouldNotExist(parent);
552
682
  }
553
683
  });
554
684
  }
@@ -572,5 +702,5 @@ class AupToolBar extends PageElement {
572
702
  * Generated bundle index. Do not edit.
573
703
  */
574
704
 
575
- export { AupAbstractActivity, AupActivity, AupAlert, AupCommand, AupCommandFace, AupCommandGroup, AupEmptyState, AupInput, AupModalActivity, AupModalAlert, AupMoreMenu, AupNavigation, AupPopupMenu, AupTable, AupToolBar, Builder, Button, ButtonMixin, FaceAccessor, Page, PageBuilder, PageElement, Path };
705
+ export { AupAbstractActivity, AupActivity, AupAlert, AupCommand, AupCommandFace, AupCommandGroup, AupEmptyState, AupInput, AupModalActivity, AupModalAlert, AupMoreMenu, AupNavigation, AupPopupMenu, AupTable, AupToolBar, Builder, Button, ElementLocator, FaceElementLocator, FormElementMixin, MatCheckbox, Page, PageBuilder, PageElement, Path };
576
706
  //# sourceMappingURL=coolon-angular-ui-powerups-cypress.js.map