@ironsource/shared-ui-e2e 2.1.3-rc.10 → 2.1.3-rc.11

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.
@@ -1,39 +1,39 @@
1
- var b = Object.defineProperty;
2
- var O = (a, t, e) => t in a ? b(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
- var c = (a, t, e) => (O(a, typeof t != "symbol" ? t + "" : t, e), e);
4
- var p = /* @__PURE__ */ ((a) => (a.TRIGGER = "ie-trigger", a.CONTENT = "ie-content", a.SEARCH = "ie-search", a.LIST = "ie-list", a.LIST_SELECTED = "ie-list-selected", a.ACTION_CANCEL = "ie-action-cancel", a.ACTION_APPLY = "ie-action-apply", a.SELECT_ALL = "ie-select-all", a.CLEAR_ALL = "ie-clear-all", a))(p || {}), l = /* @__PURE__ */ ((a) => (a.TRIGGER = "dd-trigger", a.WRAPPER = "dd-wrapper", a.BUTTON = "dd-button", a.BUTTON_WRAPPER = "dd-button-wrapper", a.BUTTON_CONTENT = "dd-button-content", a.BUTTON_CLEAR = "dd-button-clear", a.LABEL = "dd-label", a.LIST_CONTAINER = "dd-list-container", a.SEARCH = "dd-search", a.TITLE = "dd-title", a.ACTION_CANCEL = "dd-action-cancel", a.ACTION_APPLY = "dd-action-apply", a.ACTION_CLEAR_ALL = "dd-action-clear-all", a.HELPER_TEXT = "dd-helper-text", a.HELPER_TEXT_ERROR = "dd-helper-text-error", a.SELECT_ALL = "dd-select-all", a.NO_RESULT = "dd-no-result", a))(l || {}), w = /* @__PURE__ */ ((a) => (a.WRAPPER = "banner-wrapper", a.CONTENT = "banner-content", a))(w || {}), T = /* @__PURE__ */ ((a) => (a.WRAPPER = "dialog-wrapper", a.HEADER = "dialog-header", a.ACTION_CLOSE = "dialog-action-close", a.HEADER_SECONDARY = "dialog-header-secondary", a.CONTENT = "dialog-content", a.ACTION_BUTTONS_WRAPPER = "dialog-action-buttons-wrapper", a.BACKDROP = "dialog-backdrop", a.SAVE_BUTTON = "dialog-save-button", a.CANCEL_BUTTON = "dialog-cancel-button", a))(T || {}), s = /* @__PURE__ */ ((a) => (a.WRAPPER = "input-wrapper", a.TOOLTIP = "input-tooltip", a.MANDATORY = "input-mandatory", a.LABEL_CONTAINER = "input-label-container", a.LABEL_TEXT = "input-label-text", a.FIELD = "input-field", a.EXTRA_TEXT = "input-extra-text", a.TOGGLE_PASSWORD = "input-toggle-password-icon", a))(s || {}), R = /* @__PURE__ */ ((a) => (a.CONTAINER = "search-container", a.FIELD = "search-field", a.CLOSE = "search-close", a.CLEAR = "search-clear", a))(R || {}), r = /* @__PURE__ */ ((a) => (a.CONTAINER = "tbl-container", a.TABLE = "tbl-table", a.HEADER = "tbl-header", a.TITLE = "tbl-title", a.HEADER_RIGHT = "tbl-header-right", a.ACTIONS = "tbl-actions", a.SECTIONS = "tbl-sections", a.BODY_WRAPPER = "tbl-body-wrapper", a.EMPTY_STATE = "tbl-empty-state", a))(r || {}), E = /* @__PURE__ */ ((a) => (a.TEXT = "tt-text", a.TRIGGER = "tt-trigger", a.HEADER = "tt-header", a))(E || {}), u = /* @__PURE__ */ ((a) => (a.WRAPPER = "tabs-wrapper", a.TAB = "tabs-tab", a))(u || {}), C = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-label-container", a.TEXT = "field-label-text", a.MANDATORY = "field-label-mandatory", a.TOOLTIP = "field-label-help-tooltip", a))(C || {}), B = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-help-text-container", a.TEXT = "field-help-text-text", a.ICON = "field-help-text-icon", a))(B || {}), h = /* @__PURE__ */ ((a) => (a.CONTAINER = "sb-container", a.TITLE = "sb-title", a.MESSAGE = "sb-message", a.CLOSE = "sb-close", a.ICON = "sb-icon", a.ACTION_BUTTON = "sb-action-button", a))(h || {}), y = /* @__PURE__ */ ((a) => (a.WRAPPER = "multibar-wrapper", a.CLOSE_BTN = "multibar-close-button", a.MENU = "multibar-menu", a.ACTION = "multibar-action", a))(y || {});
5
- const L = (a, t) => {
1
+ var P = Object.defineProperty;
2
+ var S = (a, t, e) => t in a ? P(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
+ var c = (a, t, e) => (S(a, typeof t != "symbol" ? t + "" : t, e), e);
4
+ var p = /* @__PURE__ */ ((a) => (a.TRIGGER = "ie-trigger", a.CONTENT = "ie-content", a.SEARCH = "ie-search", a.LIST = "ie-list", a.LIST_SELECTED = "ie-list-selected", a.ACTION_CANCEL = "ie-action-cancel", a.ACTION_APPLY = "ie-action-apply", a.SELECT_ALL = "ie-select-all", a.CLEAR_ALL = "ie-clear-all", a))(p || {}), l = /* @__PURE__ */ ((a) => (a.TRIGGER = "dd-trigger", a.WRAPPER = "dd-wrapper", a.BUTTON = "dd-button", a.BUTTON_WRAPPER = "dd-button-wrapper", a.BUTTON_CONTENT = "dd-button-content", a.BUTTON_CLEAR = "dd-button-clear", a.LABEL = "dd-label", a.LIST_CONTAINER = "dd-list-container", a.SEARCH = "dd-search", a.TITLE = "dd-title", a.ACTION_CANCEL = "dd-action-cancel", a.ACTION_APPLY = "dd-action-apply", a.ACTION_CLEAR_ALL = "dd-action-clear-all", a.HELPER_TEXT = "dd-helper-text", a.HELPER_TEXT_ERROR = "dd-helper-text-error", a.SELECT_ALL = "dd-select-all", a.NO_RESULT = "dd-no-result", a))(l || {}), B = /* @__PURE__ */ ((a) => (a.WRAPPER = "banner-wrapper", a.CONTENT = "banner-content", a))(B || {}), T = /* @__PURE__ */ ((a) => (a.WRAPPER = "dialog-wrapper", a.HEADER = "dialog-header", a.ACTION_CLOSE = "dialog-action-close", a.HEADER_SECONDARY = "dialog-header-secondary", a.CONTENT = "dialog-content", a.ACTION_BUTTONS_WRAPPER = "dialog-action-buttons-wrapper", a.BACKDROP = "dialog-backdrop", a.SAVE_BUTTON = "dialog-save-button", a.CANCEL_BUTTON = "dialog-cancel-button", a))(T || {}), i = /* @__PURE__ */ ((a) => (a.WRAPPER = "input-wrapper", a.TOOLTIP = "input-tooltip", a.MANDATORY = "input-mandatory", a.LABEL_CONTAINER = "input-label-container", a.LABEL_TEXT = "input-label-text", a.FIELD = "input-field", a.EXTRA_TEXT = "input-extra-text", a.TOGGLE_PASSWORD = "input-toggle-password-icon", a))(i || {}), R = /* @__PURE__ */ ((a) => (a.CONTAINER = "search-container", a.FIELD = "search-field", a.CLOSE = "search-close", a.CLEAR = "search-clear", a))(R || {}), r = /* @__PURE__ */ ((a) => (a.CONTAINER = "tbl-container", a.TABLE = "tbl-table", a.HEADER = "tbl-header", a.TITLE = "tbl-title", a.HEADER_RIGHT = "tbl-header-right", a.ACTIONS = "tbl-actions", a.SECTIONS = "tbl-sections", a.BODY_WRAPPER = "tbl-body-wrapper", a.EMPTY_STATE = "tbl-empty-state", a))(r || {}), x = /* @__PURE__ */ ((a) => (a.TEXT = "tt-text", a.TRIGGER = "tt-trigger", a.HEADER = "tt-header", a))(x || {}), h = /* @__PURE__ */ ((a) => (a.WRAPPER = "tabs-wrapper", a.TAB = "tabs-tab", a))(h || {}), C = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-label-container", a.TEXT = "field-label-text", a.MANDATORY = "field-label-mandatory", a.TOOLTIP = "field-label-help-tooltip", a))(C || {}), I = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-help-text-container", a.TEXT = "field-help-text-text", a.ICON = "field-help-text-icon", a))(I || {}), u = /* @__PURE__ */ ((a) => (a.CONTAINER = "sb-container", a.TITLE = "sb-title", a.MESSAGE = "sb-message", a.CLOSE = "sb-close", a.ICON = "sb-icon", a.ACTION_BUTTON = "sb-action-button", a))(u || {}), d = /* @__PURE__ */ ((a) => (a.TITLE = "form-card-title", a.CONTENT = "form-card-content", a.ACTIONS = "form-card-actions", a.SAVE_BUTTON = "form-card-save-btn", a.CANCEL_BUTTON = "form-card-cancel-btn", a))(d || {}), y = /* @__PURE__ */ ((a) => (a.WRAPPER = "multibar-wrapper", a.CLOSE_BTN = "multibar-close-button", a.MENU = "multibar-menu", a.ACTION = "multibar-action", a))(y || {});
5
+ const N = (a, t) => {
6
6
  const e = new URLSearchParams(a).toString();
7
7
  return t.includes("?") ? `${t}${e}` : `${t}?${e}`;
8
- }, P = (a, t = {}) => {
8
+ }, k = (a, t = {}) => {
9
9
  const e = [];
10
- Object.entries(t).forEach(([g, d]) => {
11
- e.push(`${g}:${d}`);
10
+ Object.entries(t).forEach(([g, E]) => {
11
+ e.push(`${g}:${E}`);
12
12
  });
13
13
  const o = {
14
14
  id: a,
15
15
  viewMode: "story",
16
16
  args: e.join(";")
17
17
  };
18
- return L(o, "iframe.html");
18
+ return N(o, "iframe.html");
19
19
  }, n = (a, t) => `${a}-${t}`;
20
- class k {
20
+ class $ {
21
21
  constructor(t) {
22
22
  c(this, "page");
23
23
  this.page = t;
24
24
  }
25
25
  async waitForComponent({ testId: t }) {
26
- const e = `[data-testid='${t}-${w.WRAPPER}']`;
26
+ const e = `[data-testid='${t}-${B.WRAPPER}']`;
27
27
  await this.page.waitForSelector(e);
28
28
  }
29
29
  getBannerText({ testId: t }) {
30
- return this.page.getByTestId(n(t, w.CONTENT)).textContent();
30
+ return this.page.getByTestId(n(t, B.CONTENT)).textContent();
31
31
  }
32
32
  hasBannerType({ testId: t, type: e }) {
33
- return this.page.getByTestId(n(t, w.WRAPPER)).locator(`.icon.icon-name--${e}`) !== null;
33
+ return this.page.getByTestId(n(t, B.WRAPPER)).locator(`.icon.icon-name--${e}`) !== null;
34
34
  }
35
35
  }
36
- class _ {
36
+ class D {
37
37
  constructor(t) {
38
38
  c(this, "page");
39
39
  c(this, "testId");
@@ -47,14 +47,14 @@ class _ {
47
47
  ...t.additionalComponentParams
48
48
  };
49
49
  await this.page.goto(
50
- P(
50
+ k(
51
51
  t.storyId || this.componentId,
52
52
  e
53
53
  )
54
54
  ), await this.page.waitForSelector(this.loadedPageSelector);
55
55
  }
56
56
  }
57
- class F {
57
+ class H {
58
58
  constructor(t) {
59
59
  c(this, "page");
60
60
  this.page = t;
@@ -98,7 +98,7 @@ class F {
98
98
  )).isVisible();
99
99
  }
100
100
  }
101
- class A {
101
+ class L {
102
102
  constructor(t) {
103
103
  c(this, "page");
104
104
  this.page = t;
@@ -137,7 +137,7 @@ class A {
137
137
  await this.page.getByTestId(n(t, l.ACTION_CANCEL)).click();
138
138
  }
139
139
  }
140
- class I {
140
+ class A {
141
141
  constructor(t) {
142
142
  c(this, "page");
143
143
  this.page = t;
@@ -155,27 +155,27 @@ class I {
155
155
  return await e.hover(), e.getAttribute("text");
156
156
  }
157
157
  }
158
- class m {
158
+ class b {
159
159
  constructor(t) {
160
160
  c(this, "page");
161
161
  this.page = t;
162
162
  }
163
163
  hasExtraText({ testId: t }) {
164
- return this.page.getByTestId(n(t, B.TEXT)).isVisible();
164
+ return this.page.getByTestId(n(t, I.TEXT)).isVisible();
165
165
  }
166
166
  getExtraText({ testId: t }) {
167
- return this.page.getByTestId(n(t, B.TEXT)).textContent();
167
+ return this.page.getByTestId(n(t, I.TEXT)).textContent();
168
168
  }
169
169
  async hasExtraTextIconType({ testId: t, type: e }) {
170
- return await (await this.page.getByTestId(n(t, B.CONTAINER)).locator(`.icon.icon-name--${e}`)).count() !== 0;
170
+ return await (await this.page.getByTestId(n(t, I.CONTAINER)).locator(`.icon.icon-name--${e}`)).count() !== 0;
171
171
  }
172
172
  }
173
- class D extends A {
173
+ class V extends L {
174
174
  constructor(e) {
175
175
  super(e);
176
176
  c(this, "fieldLabelComponent");
177
177
  c(this, "fieldHelpTextComponent");
178
- this.fieldLabelComponent = new I(e), this.fieldHelpTextComponent = new m(e);
178
+ this.fieldLabelComponent = new A(e), this.fieldHelpTextComponent = new b(e);
179
179
  }
180
180
  getDropdownTitle({ testId: e }) {
181
181
  return this.fieldLabelComponent.getLabelText({ testId: e });
@@ -199,7 +199,7 @@ class D extends A {
199
199
  return this.page.getByTestId(n(e, l.BUTTON_CONTENT)).textContent();
200
200
  }
201
201
  async searchForItem({ testId: e, searchTerm: o }) {
202
- return await this.openDropdownComponent({ testId: e }), await this.page.getByTestId(n(e, s.FIELD)).fill(o), this.page.getByTestId(n(e, l.LIST_CONTAINER)).locator("ul > li span").first().textContent();
202
+ return await this.openDropdownComponent({ testId: e }), await this.page.getByTestId(n(e, i.FIELD)).fill(o), this.page.getByTestId(n(e, l.LIST_CONTAINER)).locator("ul > li span").first().textContent();
203
203
  }
204
204
  isErrorText({ testId: e }) {
205
205
  return this.page.getByTestId(n(e, l.TRIGGER)).locator(".state-error").isVisible();
@@ -220,7 +220,7 @@ class D extends A {
220
220
  await this.page.getByTestId(n(e, l.BUTTON_CLEAR)).click();
221
221
  }
222
222
  }
223
- class H extends A {
223
+ class W extends L {
224
224
  constructor(t) {
225
225
  super(t);
226
226
  }
@@ -234,7 +234,7 @@ class H extends A {
234
234
  return await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, R.FIELD)).fill(e), this.page.getByTestId(n(t, l.LIST_CONTAINER)).locator("ul > li span").first().textContent();
235
235
  }
236
236
  }
237
- class $ {
237
+ class G {
238
238
  constructor(t) {
239
239
  c(this, "page");
240
240
  this.page = t;
@@ -300,42 +300,42 @@ class $ {
300
300
  await this.openIncludeExcludeComponent(t), await this.page.getByTestId(n(t, p.SELECT_ALL)).click(), await this.clickOnApply(t);
301
301
  }
302
302
  }
303
- class S {
303
+ class O {
304
304
  constructor(t) {
305
305
  c(this, "page");
306
306
  this.page = t;
307
307
  }
308
308
  getInputsFieldText({ testId: t }) {
309
- return this.page.getByTestId(n(t, s.FIELD)).inputValue();
309
+ return this.page.getByTestId(n(t, i.FIELD)).inputValue();
310
310
  }
311
311
  getPlaceholderText({ testId: t }) {
312
- return this.page.getByTestId(n(t, s.FIELD)).getAttribute("placeholder");
312
+ return this.page.getByTestId(n(t, i.FIELD)).getAttribute("placeholder");
313
313
  }
314
314
  getInputsType({ testId: t }) {
315
- return this.page.getByTestId(n(t, s.FIELD)).getAttribute("type");
315
+ return this.page.getByTestId(n(t, i.FIELD)).getAttribute("type");
316
316
  }
317
317
  async addInput({ testId: t, text: e }) {
318
- await this.page.getByTestId(n(t, s.FIELD)).type(e);
318
+ await this.page.getByTestId(n(t, i.FIELD)).type(e);
319
319
  }
320
320
  async clearInput({ testId: t }) {
321
- await this.page.getByTestId(n(t, s.FIELD)).clear();
321
+ await this.page.getByTestId(n(t, i.FIELD)).clear();
322
322
  }
323
323
  isDisabled({ testId: t }) {
324
- return this.page.getByTestId(n(t, s.FIELD)).isDisabled();
324
+ return this.page.getByTestId(n(t, i.FIELD)).isDisabled();
325
325
  }
326
326
  }
327
- class G extends S {
327
+ class v extends O {
328
328
  constructor(e) {
329
329
  super(e);
330
330
  c(this, "fieldLabelComponent");
331
331
  c(this, "fieldHelpTextComponent");
332
- this.fieldLabelComponent = new I(e), this.fieldHelpTextComponent = new m(e);
332
+ this.fieldLabelComponent = new A(e), this.fieldHelpTextComponent = new b(e);
333
333
  }
334
334
  getInputsLabelText({ testId: e }) {
335
335
  return this.fieldLabelComponent.getLabelText({ testId: e });
336
336
  }
337
337
  async waitForComponent({ testId: e }) {
338
- const o = `[data-testid='${e}-${s.WRAPPER}']`;
338
+ const o = `[data-testid='${e}-${i.WRAPPER}']`;
339
339
  await this.page.waitForSelector(o);
340
340
  }
341
341
  isInputMandatory({ testId: e }) {
@@ -348,14 +348,14 @@ class G extends S {
348
348
  return this.fieldHelpTextComponent.getExtraText({ testId: e });
349
349
  }
350
350
  async clickOnApplyButton({ testId: e }) {
351
- await (await this.page.getByTestId(n(e, s.WRAPPER)).locator(".icon.icon-name--check")).click();
351
+ await (await this.page.getByTestId(n(e, i.WRAPPER)).locator(".icon.icon-name--check")).click();
352
352
  }
353
353
  hasInlineErrorText({ testId: e }) {
354
- return this.page.getByTestId(n(e, s.TOOLTIP)).isVisible();
354
+ return this.page.getByTestId(n(e, i.TOOLTIP)).isVisible();
355
355
  }
356
356
  async getInlineErrorText({ testId: e }) {
357
357
  const o = await this.page.getByTestId(
358
- n(e, s.TOOLTIP)
358
+ n(e, i.TOOLTIP)
359
359
  );
360
360
  return await o.hover(), o.getAttribute("text");
361
361
  }
@@ -363,17 +363,17 @@ class G extends S {
363
363
  await this.isPasswordHidden({ testId: e }) && await this.clickOnPasswordIcon({ testId: e });
364
364
  }
365
365
  async clickOnPasswordIcon({ testId: e }) {
366
- await this.page.getByTestId(n(e, s.TOGGLE_PASSWORD)).click();
366
+ await this.page.getByTestId(n(e, i.TOGGLE_PASSWORD)).click();
367
367
  }
368
368
  async clickOnHidePassword({ testId: e }) {
369
369
  await this.isPasswordHidden({ testId: e }) || await this.clickOnPasswordIcon({ testId: e });
370
370
  }
371
371
  isPasswordHidden({ testId: e }) {
372
- return this.page.getByTestId(n(e, s.TOGGLE_PASSWORD)).locator(".icon.icon-name--eye-slash").isVisible();
372
+ return this.page.getByTestId(n(e, i.TOGGLE_PASSWORD)).locator(".icon.icon-name--eye-slash").isVisible();
373
373
  }
374
374
  async clearInput({ testId: e }) {
375
375
  const o = await this.page.getByTestId(
376
- n(e, s.FIELD)
376
+ n(e, i.FIELD)
377
377
  );
378
378
  await o.click({ clickCount: 2 }), await o.type("");
379
379
  }
@@ -382,11 +382,11 @@ class G extends S {
382
382
  }
383
383
  async isDisabled({ testId: e }) {
384
384
  return (await this.page.getByTestId(
385
- n(e, s.FIELD)
385
+ n(e, i.FIELD)
386
386
  )).isDisabled();
387
387
  }
388
388
  hasApplyButton({ testId: e }) {
389
- return this.page.getByTestId(n(e, s.WRAPPER)).locator(".icon.icon-name--check").isVisible();
389
+ return this.page.getByTestId(n(e, i.WRAPPER)).locator(".icon.icon-name--check").isVisible();
390
390
  }
391
391
  async getMaxLengthNumber({ testId: e }) {
392
392
  return (await this.getFontCaptionText({ testId: e }))[1];
@@ -395,55 +395,55 @@ class G extends S {
395
395
  return (await this.getFontCaptionText({ testId: e }))[0];
396
396
  }
397
397
  async getFontCaptionText({ testId: e }) {
398
- return (await this.page.getByTestId(n(e, s.WRAPPER)).locator(".font-caption").textContent()).split("/").map((i) => parseInt(i.trim(), 10));
398
+ return (await this.page.getByTestId(n(e, i.WRAPPER)).locator(".font-caption").textContent()).split("/").map((s) => parseInt(s.trim(), 10));
399
399
  }
400
400
  getHelpIconText({ testId: e }) {
401
401
  return this.fieldLabelComponent.getHelpIconText({ testId: e });
402
402
  }
403
403
  }
404
- class W {
404
+ class f {
405
405
  constructor(t) {
406
406
  c(this, "page");
407
407
  this.page = t;
408
408
  }
409
409
  async waitForComponent({ testId: t }) {
410
- const e = `[data-testid='${t}-${u.WRAPPER}']`;
410
+ const e = `[data-testid='${t}-${h.WRAPPER}']`;
411
411
  await this.page.waitForSelector(e);
412
412
  }
413
413
  getSelectedTabText({ testId: t }) {
414
- return this.page.getByTestId(n(t, u.WRAPPER)).locator(".tab-item--active").textContent();
414
+ return this.page.getByTestId(n(t, h.WRAPPER)).locator(".tab-item--active").textContent();
415
415
  }
416
416
  async selectTab({ testId: t, tabName: e }) {
417
417
  const o = await this.getTabIndex({ testId: t, tabName: e });
418
418
  await this.page.getByTestId(
419
- n(t, `${u.TAB}-${o + 1}`)
419
+ n(t, `${h.TAB}-${o + 1}`)
420
420
  ).click();
421
421
  }
422
422
  async getTabIndex({ testId: t, tabName: e }) {
423
- return (await this.page.getByTestId(n(t, u.WRAPPER)).locator(".tab-item").allTextContents()).indexOf(e);
423
+ return (await this.page.getByTestId(n(t, h.WRAPPER)).locator(".tab-item").allTextContents()).indexOf(e);
424
424
  }
425
425
  async isTabDisabled({ testId: t, tabName: e }) {
426
426
  const o = await this.getTabIndex({ testId: t, tabName: e });
427
- return this.page.getByTestId(n(t, `${u.TAB}-${o}`)).locator(".tab-item--disabled").isVisible();
427
+ return this.page.getByTestId(n(t, `${h.TAB}-${o}`)).locator(".tab-item--disabled").isVisible();
428
428
  }
429
429
  }
430
- class V {
430
+ class U {
431
431
  constructor(t) {
432
432
  c(this, "page");
433
433
  this.page = t;
434
434
  }
435
435
  async waitForComponent({ testId: t }) {
436
- const e = `[data-testid='${t}-${E.TRIGGER}']`;
436
+ const e = `[data-testid='${t}-${x.TRIGGER}']`;
437
437
  await this.page.waitForSelector(e);
438
438
  }
439
439
  getTooltipText({ testId: t }) {
440
- return this.page.getByTestId(`${t}-${E.TRIGGER}`).getAttribute("text");
440
+ return this.page.getByTestId(`${t}-${x.TRIGGER}`).getAttribute("text");
441
441
  }
442
442
  getTooltipHeaderText({ testId: t }) {
443
- return this.page.getByTestId(`${t}-${E.TRIGGER}`).getAttribute("header");
443
+ return this.page.getByTestId(`${t}-${x.TRIGGER}`).getAttribute("header");
444
444
  }
445
445
  }
446
- class v {
446
+ class X {
447
447
  constructor(t) {
448
448
  c(this, "page");
449
449
  this.page = t;
@@ -455,10 +455,7 @@ class v {
455
455
  getTableRowCount({ testId: t }) {
456
456
  return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(".table-row").count();
457
457
  }
458
- getTableRowContentByIndex({
459
- testId: t,
460
- index: e
461
- }) {
458
+ getTableRowContentByIndex({ testId: t, index: e }) {
462
459
  try {
463
460
  return this.page.getByTestId(`${t}-${r.BODY_WRAPPER}`).locator(".table-row").nth(e).innerText();
464
461
  } catch (o) {
@@ -467,68 +464,59 @@ class v {
467
464
  }
468
465
  async getTableRowsByRowValue({
469
466
  testId: t,
470
- rowHeader: e,
467
+ headerName: e,
471
468
  rowValue: o
472
469
  }) {
473
- const i = await this.getRowIndicesByRowValue({
470
+ const s = await this.getRowIndicesByRowValue({
474
471
  testId: t,
475
- rowHeader: e,
472
+ headerName: e,
476
473
  rowValue: o
477
474
  }), g = [];
478
- for (const d of i) {
479
- const x = await this.getTableRowContentByIndex({
475
+ for (const E of s) {
476
+ const m = await this.getTableRowContentByIndex({
480
477
  testId: t,
481
- index: d
478
+ index: E
482
479
  });
483
- g.push(x);
480
+ g.push(m);
484
481
  }
485
482
  return g;
486
483
  }
487
484
  async getRowIndicesByRowValue({
488
485
  testId: t,
489
- rowHeader: e,
486
+ headerName: e,
490
487
  rowValue: o
491
488
  }) {
492
- const i = await this.getColumnValuesByHeader({
489
+ const s = await this.getColumnValuesByHeader({
493
490
  testId: t,
494
- header: e
491
+ headerName: e
495
492
  });
496
- return this.getIndicesOf(o, i);
493
+ return this.getIndicesOf({ searchStr: o, array: s });
497
494
  }
498
- getIndicesOf(t, e) {
495
+ getIndicesOf({ searchStr: t, array: e }) {
499
496
  const o = [];
500
- for (let i = 0; i < e.length; i++)
501
- e[i] === t && o.push(i);
497
+ for (let s = 0; s < e.length; s++)
498
+ e[s] === t && o.push(s);
502
499
  return o;
503
500
  }
504
- async getColumnValuesByHeader({
505
- header: t,
506
- testId: e
507
- }) {
501
+ async getColumnValuesByHeader({ headerName: t, testId: e }) {
508
502
  const o = await this.getColumnIndexByHeader({
509
503
  testId: e,
510
- header: t
504
+ headerName: t
511
505
  });
512
506
  return this.getColumnValuesByIndex({ testId: e, index: o });
513
507
  }
514
- async getColumnIndexByHeader({
515
- header: t,
516
- testId: e
517
- }) {
508
+ async getColumnIndexByHeader({ headerName: t, testId: e }) {
518
509
  return (await this.getColumnHeaders({ testId: e })).indexOf(t);
519
510
  }
520
- async getColumnValuesByIndex({
521
- index: t,
522
- testId: e
523
- }) {
524
- const o = [], i = await this.getTableRowCount({ testId: e });
525
- for (let g = 0; g < i; g++) {
526
- const x = (await this.getTableRowContentByIndex({
511
+ async getColumnValuesByIndex({ index: t, testId: e }) {
512
+ const o = [], s = await this.getTableRowCount({ testId: e });
513
+ for (let g = 0; g < s; g++) {
514
+ const m = (await this.getTableRowContentByIndex({
527
515
  testId: e,
528
516
  index: g
529
517
  })).split(`
530
518
  `)[t];
531
- o.push(x);
519
+ o.push(m);
532
520
  }
533
521
  return o;
534
522
  }
@@ -547,19 +535,19 @@ class v {
547
535
  async clickOnHeaderByName({ testId: t, headerName: e }) {
548
536
  const o = await this.getColumnIndexByHeader({
549
537
  testId: t,
550
- header: e
538
+ headerName: e
551
539
  });
552
540
  await this.page.getByTestId(n(t, r.TABLE)).locator(".table-head-container").nth(o).click();
553
541
  }
554
542
  async searchForItems({ testId: t, searchTerm: e }) {
555
- await this.clearSearchText({ testId: t }), await this.page.getByTestId(n(t, s.FIELD)).fill(e);
543
+ await this.clearSearchText({ testId: t }), await this.page.getByTestId(n(t, i.FIELD)).fill(e);
556
544
  }
557
545
  async clearSearchText({ testId: t }) {
558
- await this.page.getByTestId(n(t, s.FIELD)).clear();
546
+ await this.page.getByTestId(n(t, i.FIELD)).clear();
559
547
  }
560
548
  async isArrowVisible({ testId: t, headerName: e }) {
561
549
  const o = await this.getColumnIndexByHeader({
562
- header: e,
550
+ headerName: e,
563
551
  testId: t
564
552
  });
565
553
  return this.page.getByTestId(n(t, r.TABLE)).locator(".table-head-container").nth(o).locator(".table-sort-icon").isVisible();
@@ -570,8 +558,8 @@ class v {
570
558
  r.TABLE
571
559
  )}]`;
572
560
  await this.page.focus(e), await this.page.evaluate((o) => {
573
- const i = document.querySelector(o);
574
- i && (i.scrollTop = i.scrollHeight);
561
+ const s = document.querySelector(o);
562
+ s && (s.scrollTop = s.scrollHeight);
575
563
  }, e), await this.waitForTableToLoad();
576
564
  }
577
565
  async waitForTableToLoad() {
@@ -584,22 +572,26 @@ class v {
584
572
  headerName: e,
585
573
  rowValue: o
586
574
  }) {
587
- const i = await this.getRowIndicesByRowValue({
575
+ const s = await this.getRowIndicesByRowValue({
588
576
  testId: t,
589
- rowHeader: e,
577
+ headerName: e,
590
578
  rowValue: o
591
579
  });
592
- await this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(".table-row").nth(i[0]).locator(".icon-wrapper").click();
580
+ await this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(".table-row").nth(s[0]).locator(".icon-wrapper").click();
593
581
  }
594
582
  async isRowExpanded({ testId: t, headerName: e, rowValue: o }) {
595
- const i = await this.getRowIndicesByRowValue({
583
+ const s = await this.getRowIndicesByRowValue({
596
584
  testId: t,
597
- rowHeader: e,
585
+ headerName: e,
598
586
  rowValue: o
599
587
  });
600
- return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(".table-row").nth(i[0]).locator(".icon-wrapper").isVisible();
588
+ return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(".table-row").nth(s[0]).locator(".icon-wrapper").isVisible();
601
589
  }
602
- async getExpandedRowContent({ testId: t, headerName: e, rowValue: o }) {
590
+ async getExpandedRowContent({
591
+ testId: t,
592
+ headerName: e,
593
+ rowValue: o
594
+ }) {
603
595
  await this.isRowExpanded({
604
596
  testId: t,
605
597
  headerName: e,
@@ -607,7 +599,7 @@ class v {
607
599
  }) || await this.expandRow({ testId: t, headerName: e, rowValue: o });
608
600
  const g = await this.getRowIndicesByRowValue({
609
601
  testId: t,
610
- rowHeader: e,
602
+ headerName: e,
611
603
  rowValue: o
612
604
  });
613
605
  return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(".table-row").nth(g[0]).locator(".icon-wrapper").textContent();
@@ -624,13 +616,18 @@ class v {
624
616
  async clickOnRowCheckboxByIndex({ testId: t, index: e }) {
625
617
  await this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(".table-row").nth(e).locator(".states").click();
626
618
  }
627
- async clickOnRowCheckboxByRowValue({ testId: t, rowHeader: e, rowValue: o }) {
628
- const i = await this.getRowIndicesByRowValue({
619
+ async clickOnRowCheckboxByRowValue({
620
+ testId: t,
621
+ headerName: e,
622
+ rowValue: o
623
+ }) {
624
+ const s = await this.getRowIndicesByRowValue({
629
625
  testId: t,
630
- rowHeader: e,
626
+ headerName: e,
631
627
  rowValue: o
632
628
  });
633
- await this.clickOnRowCheckboxByIndex({ testId: t, index: i });
629
+ for (const g of s)
630
+ await this.clickOnRowCheckboxByIndex({ testId: t, index: g });
634
631
  }
635
632
  getCheckedRowsNumber({ testId: t }) {
636
633
  return this.page.getByTestId(n(t, r.TABLE)).locator(".table-row").locator(".icon.checked").count();
@@ -638,8 +635,24 @@ class v {
638
635
  async clickOnSelectAllCheckbox({ testId: t }) {
639
636
  await this.page.getByTestId(n(t, r.TABLE)).locator(".states").nth(0).click();
640
637
  }
638
+ getTableRowLocatorByIndex({ testId: t, index: e }) {
639
+ return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(".table-row").nth(e);
640
+ }
641
+ // Returns first row locator that matches the rowValue
642
+ async getTableRowLocatorByRowValue({
643
+ testId: t,
644
+ headerName: e,
645
+ rowValue: o
646
+ }) {
647
+ const s = await this.getRowIndicesByRowValue({
648
+ testId: t,
649
+ headerName: e,
650
+ rowValue: o
651
+ });
652
+ return this.getTableRowLocatorByIndex({ testId: t, index: s[0] });
653
+ }
641
654
  }
642
- class U {
655
+ class _ {
643
656
  constructor(t) {
644
657
  c(this, "page");
645
658
  this.page = t;
@@ -651,6 +664,15 @@ class U {
651
664
  async clickOnButton({ testId: t }) {
652
665
  await this.page.click(`[data-testid='${t}']`);
653
666
  }
667
+ async isButtonLoading({ testId: t }) {
668
+ return (await this.page.getByTestId(t).getAttribute("class")).includes("loading");
669
+ }
670
+ async getButtonText({ testId: t }) {
671
+ return this.page.getByTestId(t).locator(".font-button").textContent();
672
+ }
673
+ isButtonDisabled({ testId: t }) {
674
+ return this.page.getByTestId(t).isDisabled();
675
+ }
654
676
  }
655
677
  class Y {
656
678
  constructor(t) {
@@ -658,37 +680,37 @@ class Y {
658
680
  this.page = t;
659
681
  }
660
682
  async waitForComponent({ testId: t }) {
661
- const e = `[data-testid='${t}-${h.CONTAINER}']`;
683
+ const e = `[data-testid='${t}-${u.CONTAINER}']`;
662
684
  await this.page.waitForSelector(e);
663
685
  }
664
686
  getSnackbarTitle({ testId: t }) {
665
- return this.page.getByTestId(n(t, h.TITLE)).textContent();
687
+ return this.page.getByTestId(n(t, u.TITLE)).textContent();
666
688
  }
667
689
  async closeSnackbar({ testId: t }) {
668
- await this.page.getByTestId(n(t, h.CLOSE)).locator(".icon-name--x").click();
690
+ await this.page.getByTestId(n(t, u.CLOSE)).locator(".icon-name--x").click();
669
691
  }
670
692
  async waitForSnackbarToBeClosed({ testId: t }) {
671
- const e = `[data-testid='${t}-${h.CONTAINER}']`;
693
+ const e = `[data-testid='${t}-${u.CONTAINER}']`;
672
694
  await this.page.waitForSelector(e, { state: "detached" });
673
695
  }
674
696
  getSnackbarDescription({ testId: t }) {
675
- return this.page.getByTestId(n(t, h.MESSAGE)).textContent();
697
+ return this.page.getByTestId(n(t, u.MESSAGE)).textContent();
676
698
  }
677
699
  async clickOnActionButton({ testId: t, buttonName: e }) {
678
700
  const o = await this.getActionButtonIndex({
679
701
  testId: t,
680
702
  buttonName: e
681
- }), i = `[data-testid='${t}-${h.ACTION_BUTTON}-${o}']`;
682
- await this.page.click(i);
703
+ }), s = `[data-testid='${t}-${u.ACTION_BUTTON}-${o}']`;
704
+ await this.page.click(s);
683
705
  }
684
706
  async getActionButtonIndex({
685
707
  testId: t,
686
708
  buttonName: e
687
709
  }) {
688
- return (await this.page.getByTestId(n(t, h.CONTAINER)).locator(".font-button").allTextContents()).indexOf(e);
710
+ return (await this.page.getByTestId(n(t, u.CONTAINER)).locator(".font-button").allTextContents()).indexOf(e);
689
711
  }
690
712
  }
691
- class f {
713
+ class j {
692
714
  constructor(t) {
693
715
  c(this, "page");
694
716
  this.page = t;
@@ -715,20 +737,135 @@ class f {
715
737
  ).locator(".start-icon").click();
716
738
  }
717
739
  }
740
+ class q {
741
+ constructor(t) {
742
+ c(this, "page");
743
+ this.page = t;
744
+ }
745
+ async waitForComponent({ testId: t }) {
746
+ const e = `[data-testid='${t}-${C.TEXT}']`;
747
+ await this.page.waitForSelector(e);
748
+ }
749
+ getFormRowTitle({ testId: t }) {
750
+ return new A(this.page).getLabelText({ testId: t });
751
+ }
752
+ isFormRowMandatory({ testId: t }) {
753
+ return new A(this.page).isMandatory({ testId: t });
754
+ }
755
+ getIconText({ testId: t }) {
756
+ return new b(this.page).getExtraText({ testId: t });
757
+ }
758
+ }
759
+ class K {
760
+ constructor(t) {
761
+ c(this, "page");
762
+ this.page = t;
763
+ }
764
+ async waitForComponent({ testId: t }) {
765
+ const e = `[data-testid='${t}-${d.CONTENT}']`;
766
+ await this.page.waitForSelector(e);
767
+ }
768
+ getCardTitle({ testId: t }) {
769
+ return this.page.getByTestId(n(t, d.TITLE)).textContent();
770
+ }
771
+ getCardContentText({ testId: t }) {
772
+ return this.page.getByTestId(n(t, d.CONTENT)).textContent();
773
+ }
774
+ async clickOnSaveButton({ testId: t }) {
775
+ await this.page.getByTestId(n(t, d.SAVE_BUTTON)).click();
776
+ }
777
+ async clickOnCancelButton({ testId: t }) {
778
+ await this.page.getByTestId(n(t, d.CANCEL_BUTTON)).click();
779
+ }
780
+ isSaveButtonLoading({ testId: t }) {
781
+ return new _(this.page).isButtonLoading({ testId: t });
782
+ }
783
+ }
784
+ class w extends O {
785
+ constructor(t) {
786
+ super(t);
787
+ }
788
+ async waitForComponent({ testId: t }) {
789
+ const e = `[data-testid='${t}-${i.WRAPPER}']`;
790
+ await this.page.waitForSelector(e);
791
+ }
792
+ async isViewOnly({ testId: t }) {
793
+ return await this.page.getByTestId(n(t, i.WRAPPER)).locator(".view-only.input-type").count() > 0;
794
+ }
795
+ getLabel({ testId: t }) {
796
+ return this.page.getByTestId(n(t, i.LABEL_TEXT)).textContent();
797
+ }
798
+ isInputMandatory({ testId: t }) {
799
+ return this.page.getByTestId(n(t, i.MANDATORY)).isVisible();
800
+ }
801
+ hasInputExtraHelpText({ testId: t }) {
802
+ return this.page.getByTestId(n(t, i.EXTRA_TEXT)).isVisible();
803
+ }
804
+ async getHelpIconText({ testId: t }) {
805
+ const e = await this.page.getByTestId(n(t, i.LABEL_CONTAINER)).locator(".v-popper.v-popper--theme-default");
806
+ return await e.hover(), e.getAttribute("text");
807
+ }
808
+ getInputExtraText({ testId: t }) {
809
+ return this.page.getByTestId(n(t, i.EXTRA_TEXT)).textContent();
810
+ }
811
+ getErrorExtraText({ testId: t }) {
812
+ return this.page.getByTestId(n(t, i.EXTRA_TEXT)).locator(".error").textContent();
813
+ }
814
+ async showPassword({ testId: t }) {
815
+ await this.isPasswordHidden({ testId: t }) && await this.clickOnPasswordButton({ testId: t });
816
+ }
817
+ async isPasswordHidden({ testId: t }) {
818
+ return await this.page.getByTestId(n(t, i.WRAPPER)).getAttribute("type") === "password";
819
+ }
820
+ async clickOnPasswordButton({ testId: t }) {
821
+ await (await this.page.getByTestId(n(t, i.WRAPPER)).locator(".password-visibility")).click();
822
+ }
823
+ }
824
+ class z {
825
+ constructor(t) {
826
+ c(this, "page");
827
+ this.page = t;
828
+ }
829
+ async waitForComponent({ testId: t }) {
830
+ const e = `[data-testid='${t}-${R.CONTAINER}']`;
831
+ await this.page.waitForSelector(e);
832
+ }
833
+ async searchInput({ testId: t, value: e }) {
834
+ await new w(this.page).addInput({ testId: t, text: e });
835
+ }
836
+ async clearInput({ testId: t }) {
837
+ await new w(this.page).clearInput({ testId: t });
838
+ }
839
+ async clickOnXButton({ testId: t }) {
840
+ await this.page.getByTestId(n(t, R.CLEAR)).locator(".icon-name--x-circle").click();
841
+ }
842
+ isDisabled({ testId: t }) {
843
+ return new w(this.page).isDisabled({ testId: t });
844
+ }
845
+ getSearchPlaceholder({ testId: t }) {
846
+ return new w(this.page).getPlaceholderText({ testId: t });
847
+ }
848
+ getSearchInputValue({ testId: t }) {
849
+ return new w(this.page).getInputsFieldText({ testId: t });
850
+ }
851
+ }
718
852
  export {
719
- k as BannerComponent,
720
- U as ButtonComponent,
721
- _ as ComponentBasePage,
722
- F as DialogComponent,
723
- D as DropdownComponent,
724
- H as DropdownComponentV3,
725
- m as FieldHelpTextComponent,
726
- I as FieldLabelComponent,
727
- $ as IncludeExcludeComponent,
728
- G as InputsComponent,
729
- f as MultiBarComponent,
853
+ $ as BannerComponent,
854
+ _ as ButtonComponent,
855
+ D as ComponentBasePage,
856
+ H as DialogComponent,
857
+ V as DropdownComponent,
858
+ W as DropdownComponentV3,
859
+ b as FieldHelpTextComponent,
860
+ A as FieldLabelComponent,
861
+ K as FormCardComponent,
862
+ q as FormRowComponent,
863
+ G as IncludeExcludeComponent,
864
+ v as InputsComponent,
865
+ j as MultiBarComponent,
866
+ z as SearchComponent,
730
867
  Y as SnackbarComponent,
731
- v as TableComponent,
732
- W as TabsComponent,
733
- V as TooltipComponent
868
+ X as TableComponent,
869
+ f as TabsComponent,
870
+ U as TooltipComponent
734
871
  };