@ironsource/shared-ui-e2e 2.1.3-rc.21 → 2.1.3-rc.23

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,44 +1,44 @@
1
- var $ = Object.defineProperty;
2
- var D = (a, t, e) => t in a ? $(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
- var s = (a, t, e) => (D(a, typeof t != "symbol" ? t + "" : t, e), e);
4
- var l = /* @__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))(l || {}), c = /* @__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))(c || {}), w = /* @__PURE__ */ ((a) => (a.WRAPPER = "banner-wrapper", a.CONTENT = "banner-content", a))(w || {}), p = /* @__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))(p || {}), 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 || {}), I = /* @__PURE__ */ ((a) => (a.CONTAINER = "search-container", a.FIELD = "search-field", a.CLOSE = "search-close", a.CLEAR = "search-clear", a))(I || {}), 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 || {}), B = /* @__PURE__ */ ((a) => (a.TEXT = "tt-text", a.TRIGGER = "tt-trigger", a.HEADER = "tt-header", a))(B || {}), u = /* @__PURE__ */ ((a) => (a.WRAPPER = "tabs-wrapper", a.TAB = "tabs-tab", a))(u || {}), E = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-label-container", a.TEXT = "field-label-text", a.MANDATORY = "field-label-mandatory", a.TOOLTIP = "field-label-help-tooltip", a))(E || {}), A = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-help-text-container", a.TEXT = "field-help-text-text", a.ICON = "field-help-text-icon", a))(A || {}), T = /* @__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))(T || {}), 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 || {}), x = /* @__PURE__ */ ((a) => (a.TITLE = "ah-title", a.APP_KEY = "ah-app-key", a.APP_PLATFORM = "ah-app-platform", a))(x || {}), b = /* @__PURE__ */ ((a) => (a.TEXT = "ic-text", a.COPY_BTN = "ic-copy-btn", a))(b || {}), 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 H = (a, t) => {
1
+ var D = Object.defineProperty;
2
+ var H = (a, t, e) => t in a ? D(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
+ var c = (a, t, e) => (H(a, typeof t != "symbol" ? t + "" : t, e), e);
4
+ var l = /* @__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))(l || {}), s = /* @__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))(s || {}), x = /* @__PURE__ */ ((a) => (a.WRAPPER = "banner-wrapper", a.CONTENT = "banner-content", a))(x || {}), g = /* @__PURE__ */ ((a) => (a.WRAPPER = "alert-wrapper", a.TITLE = "alert-title", a.MESSAGE = "alert-message", a.ACTION_BUTTON = "alert-action-button", a.CLOSE_BUTTON = "alert-close-button", a))(g || {}), p = /* @__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))(p || {}), 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 || {}), m = /* @__PURE__ */ ((a) => (a.CONTAINER = "search-container", a.FIELD = "search-field", a.CLOSE = "search-close", a.CLEAR = "search-clear", a))(m || {}), 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 || {}), I = /* @__PURE__ */ ((a) => (a.TEXT = "tt-text", a.TRIGGER = "tt-trigger", a.HEADER = "tt-header", a))(I || {}), d = /* @__PURE__ */ ((a) => (a.WRAPPER = "tabs-wrapper", a.TAB = "tabs-tab", a))(d || {}), w = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-label-container", a.TEXT = "field-label-text", a.MANDATORY = "field-label-mandatory", a.TOOLTIP = "field-label-help-tooltip", a))(w || {}), 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.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))(y || {}), R = /* @__PURE__ */ ((a) => (a.TITLE = "ah-title", a.APP_KEY = "ah-app-key", a.APP_PLATFORM = "ah-app-platform", a))(R || {}), O = /* @__PURE__ */ ((a) => (a.TEXT = "ic-text", a.COPY_BTN = "ic-copy-btn", a))(O || {}), C = /* @__PURE__ */ ((a) => (a.WRAPPER = "multibar-wrapper", a.CLOSE_BTN = "multibar-close-button", a.MENU = "multibar-menu", a.ACTION = "multibar-action", a))(C || {});
5
+ const W = (a, t) => {
6
6
  const e = new URLSearchParams(a).toString();
7
7
  return t.includes("?") ? `${t}${e}` : `${t}?${e}`;
8
- }, W = (a, t = {}) => {
8
+ }, v = (a, t = {}) => {
9
9
  const e = [];
10
- Object.entries(t).forEach(([k, F]) => {
11
- e.push(`${k}:${F}`);
10
+ Object.entries(t).forEach(([F, $]) => {
11
+ e.push(`${F}:${$}`);
12
12
  });
13
13
  const o = {
14
14
  id: a,
15
15
  viewMode: "story",
16
16
  args: e.join(";")
17
17
  };
18
- return H(o, "iframe.html");
18
+ return W(o, "iframe.html");
19
19
  }, n = (a, t) => `${a}-${t}`;
20
20
  class X {
21
21
  constructor(t) {
22
- s(this, "page");
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}-${x.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, x.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, x.WRAPPER)).locator(`.icon.icon-name--${e}`) !== null;
34
34
  }
35
35
  }
36
- class U {
36
+ class Y {
37
37
  constructor(t) {
38
- s(this, "page");
39
- s(this, "testId");
40
- s(this, "componentId");
41
- s(this, "loadedPageSelector");
38
+ c(this, "page");
39
+ c(this, "testId");
40
+ c(this, "componentId");
41
+ c(this, "loadedPageSelector");
42
42
  this.page = t.page, this.testId = t.testId, this.componentId = t.componentId, this.loadedPageSelector = t.loadedPageSelector;
43
43
  }
44
44
  async goto(t = {}) {
@@ -47,7 +47,7 @@ class U {
47
47
  ...t.additionalComponentParams
48
48
  };
49
49
  await this.page.goto(
50
- W(
50
+ v(
51
51
  t.storyId || this.componentId,
52
52
  e
53
53
  )
@@ -56,7 +56,7 @@ class U {
56
56
  }
57
57
  class f {
58
58
  constructor(t) {
59
- s(this, "page");
59
+ c(this, "page");
60
60
  this.page = t;
61
61
  }
62
62
  async waitForComponent({ testId: t }) {
@@ -98,29 +98,33 @@ class f {
98
98
  )).isVisible();
99
99
  }
100
100
  }
101
- class N {
101
+ class _ {
102
102
  constructor(t) {
103
- s(this, "page");
103
+ c(this, "page");
104
104
  this.page = t;
105
105
  }
106
106
  async waitForComponent({ testId: t }) {
107
107
  await this.page.getByTestId(
108
- n(t, c.WRAPPER)
108
+ n(t, s.WRAPPER)
109
109
  );
110
110
  }
111
111
  async selectDropdownOptionByIndex({ testId: t, index: e }) {
112
- await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator("ul > li").nth(e).click();
112
+ await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, s.LIST_CONTAINER)).locator("ul > li").nth(e).click();
113
113
  }
114
114
  async openDropdownComponent({ testId: t }) {
115
- await this.page.getByTestId(n(t, c.TRIGGER)).click({ position: { x: 10, y: 10 } });
115
+ await this.page.getByTestId(n(t, s.TRIGGER)).click({ position: { x: 10, y: 10 } });
116
116
  }
117
- async selectDropdownOptionByName({ testId: t, name: e }) {
118
- await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator("ul > li span", { hasText: e }).click();
117
+ async selectDropdownOptionByName({
118
+ testId: t,
119
+ name: e,
120
+ shouldOpen: o = !0
121
+ }) {
122
+ o && await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, s.LIST_CONTAINER)).locator("ul > li span", { hasText: e }).click();
119
123
  }
120
124
  async selectMultipleItemsByIndex({ testId: t, itemsToSelect: e }) {
121
125
  await this.openDropdownComponent({ testId: t });
122
126
  for (const o of e)
123
- await this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator("ul > li").nth(o).click();
127
+ await this.page.getByTestId(n(t, s.LIST_CONTAINER)).locator("ul > li").nth(o).click();
124
128
  }
125
129
  async selectMultipleItemsByName({
126
130
  testId: t,
@@ -128,54 +132,54 @@ class N {
128
132
  }) {
129
133
  await this.openDropdownComponent({ testId: t });
130
134
  for (const o of e)
131
- await this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator("ul > li span", { hasText: o }).first().click();
135
+ await this.page.getByTestId(n(t, s.LIST_CONTAINER)).locator("ul > li span", { hasText: o }).first().click();
132
136
  }
133
137
  async clickOnApply({ testId: t }) {
134
- await this.page.getByTestId(n(t, c.ACTION_APPLY)).click();
138
+ await this.page.getByTestId(n(t, s.ACTION_APPLY)).click();
135
139
  }
136
140
  async clickOnCancel({ testId: t }) {
137
- await this.page.getByTestId(n(t, c.ACTION_CANCEL)).click();
141
+ await this.page.getByTestId(n(t, s.ACTION_CANCEL)).click();
138
142
  }
139
143
  }
140
- class R {
144
+ class A {
141
145
  constructor(t) {
142
- s(this, "page");
146
+ c(this, "page");
143
147
  this.page = t;
144
148
  }
145
149
  getLabelText({ testId: t }) {
146
- return this.page.getByTestId(n(t, E.TEXT)).textContent();
150
+ return this.page.getByTestId(n(t, w.TEXT)).textContent();
147
151
  }
148
152
  isMandatory({ testId: t }) {
149
- return this.page.getByTestId(n(t, E.MANDATORY)).isVisible();
153
+ return this.page.getByTestId(n(t, w.MANDATORY)).isVisible();
150
154
  }
151
155
  async getHelpIconText({ testId: t }) {
152
156
  const e = await this.page.getByTestId(
153
- n(t, E.TOOLTIP)
157
+ n(t, w.TOOLTIP)
154
158
  );
155
159
  return await e.hover(), e.getAttribute("text");
156
160
  }
157
161
  }
158
- class O {
162
+ class P {
159
163
  constructor(t) {
160
- s(this, "page");
164
+ c(this, "page");
161
165
  this.page = t;
162
166
  }
163
167
  hasExtraText({ testId: t }) {
164
- return this.page.getByTestId(n(t, A.TEXT)).isVisible();
168
+ return this.page.getByTestId(n(t, B.TEXT)).isVisible();
165
169
  }
166
170
  getExtraText({ testId: t }) {
167
- return this.page.getByTestId(n(t, A.TEXT)).textContent();
171
+ return this.page.getByTestId(n(t, B.TEXT)).textContent();
168
172
  }
169
173
  async hasExtraTextIconType({ testId: t, type: e }) {
170
- return await (await this.page.getByTestId(n(t, A.CONTAINER)).locator(`.icon.icon-name--${e}`)).count() !== 0;
174
+ return await (await this.page.getByTestId(n(t, B.CONTAINER)).locator(`.icon.icon-name--${e}`)).count() !== 0;
171
175
  }
172
176
  }
173
- class Y extends N {
177
+ class j extends _ {
174
178
  constructor(e) {
175
179
  super(e);
176
- s(this, "fieldLabelComponent");
177
- s(this, "fieldHelpTextComponent");
178
- this.fieldLabelComponent = new R(e), this.fieldHelpTextComponent = new O(e);
180
+ c(this, "fieldLabelComponent");
181
+ c(this, "fieldHelpTextComponent");
182
+ this.fieldLabelComponent = new A(e), this.fieldHelpTextComponent = new P(e);
179
183
  }
180
184
  getDropdownTitle({ testId: e }) {
181
185
  return this.fieldLabelComponent.getLabelText({ testId: e });
@@ -196,50 +200,50 @@ class Y extends N {
196
200
  return this.fieldHelpTextComponent.hasExtraTextIconType({ testId: e, type: o });
197
201
  }
198
202
  getSelectedLabel({ testId: e }) {
199
- return this.page.getByTestId(n(e, c.BUTTON_CONTENT)).textContent();
203
+ return this.page.getByTestId(n(e, s.BUTTON_CONTENT)).textContent();
200
204
  }
201
205
  async searchForItem({ testId: e, searchTerm: o }) {
202
- return await this.openDropdownComponent({ testId: e }), await this.page.getByTestId(n(e, i.FIELD)).fill(o), this.page.getByTestId(n(e, c.LIST_CONTAINER)).locator("ul > li span").first().textContent();
206
+ return await this.openDropdownComponent({ testId: e }), await this.page.getByTestId(n(e, i.FIELD)).fill(o), this.page.getByTestId(n(e, s.LIST_CONTAINER)).locator("ul > li span").first().textContent();
203
207
  }
204
- isErrorText({ testId: e }) {
205
- return this.page.getByTestId(n(e, c.TRIGGER)).locator(".state-error").isVisible();
208
+ async isErrorText({ testId: e }) {
209
+ return await this.page.getByTestId(n(e, B.TEXT)).count() > 0;
206
210
  }
207
211
  async isDisabled({ testId: e }) {
208
- return (await this.page.getByTestId(n(e, c.TRIGGER)).locator(".button__container--disabled")).isVisible();
212
+ return (await this.page.getByTestId(n(e, s.TRIGGER)).locator(".button__container--disabled")).isVisible();
209
213
  }
210
214
  async clearAllOptions({ testId: e }) {
211
- await this.page.getByTestId(n(e, c.ACTION_CLEAR_ALL)).click();
215
+ await this.page.getByTestId(n(e, s.ACTION_CLEAR_ALL)).click();
212
216
  }
213
217
  isSelectAllChecked({ testId: e }) {
214
- return this.page.getByTestId(n(e, c.SELECT_ALL)).locator(".checkbox.input").isChecked();
218
+ return this.page.getByTestId(n(e, s.SELECT_ALL)).locator(".checkbox.input").isChecked();
215
219
  }
216
220
  isSelectAllIndeterminate({ testId: e }) {
217
- return this.page.getByTestId(n(e, c.SELECT_ALL)).locator(".icon.indeterminate").isVisible();
221
+ return this.page.getByTestId(n(e, s.SELECT_ALL)).locator(".icon.indeterminate").isVisible();
218
222
  }
219
223
  async removeChipSelection({ testId: e }) {
220
- await this.page.getByTestId(n(e, c.BUTTON_CLEAR)).click();
224
+ await this.page.getByTestId(n(e, s.BUTTON_CLEAR)).click();
221
225
  }
222
226
  getDropdownOptions({ testId: e }) {
223
- return this.page.getByTestId(n(e, c.LIST_CONTAINER)).locator(".list").allTextContents();
227
+ return this.page.getByTestId(n(e, s.LIST_CONTAINER)).locator(".list").allTextContents();
224
228
  }
225
229
  }
226
- class j extends N {
230
+ class K extends _ {
227
231
  constructor(t) {
228
232
  super(t);
229
233
  }
230
234
  getDropdownTitle({ testId: t }) {
231
- return this.page.getByTestId(n(t, c.WRAPPER)).locator("label > span").textContent();
235
+ return this.page.getByTestId(n(t, s.WRAPPER)).locator("label > span").textContent();
232
236
  }
233
237
  getSelectedItem({ testId: t }) {
234
- return this.page.getByTestId(n(t, c.TRIGGER)).locator("button > span").textContent();
238
+ return this.page.getByTestId(n(t, s.TRIGGER)).locator("button > span").textContent();
235
239
  }
236
240
  async searchForItem({ testId: t, searchTerm: e }) {
237
- return await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, I.FIELD)).fill(e), this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator("ul > li span").first().textContent();
241
+ return await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, m.FIELD)).fill(e), this.page.getByTestId(n(t, s.LIST_CONTAINER)).locator("ul > li span").first().textContent();
238
242
  }
239
243
  }
240
- class K {
244
+ class q {
241
245
  constructor(t) {
242
- s(this, "page");
246
+ c(this, "page");
243
247
  this.page = t;
244
248
  }
245
249
  async waitForComponent({ testId: t }) {
@@ -303,9 +307,9 @@ class K {
303
307
  await this.openIncludeExcludeComponent(t), await this.page.getByTestId(n(t, l.SELECT_ALL)).click(), await this.clickOnApply(t);
304
308
  }
305
309
  }
306
- class _ {
310
+ class k {
307
311
  constructor(t) {
308
- s(this, "page");
312
+ c(this, "page");
309
313
  this.page = t;
310
314
  }
311
315
  getInputsFieldText({ testId: t }) {
@@ -327,12 +331,12 @@ class _ {
327
331
  return this.page.getByTestId(n(t, i.FIELD)).isDisabled();
328
332
  }
329
333
  }
330
- class q extends _ {
334
+ class z extends k {
331
335
  constructor(e) {
332
336
  super(e);
333
- s(this, "fieldLabelComponent");
334
- s(this, "fieldHelpTextComponent");
335
- this.fieldLabelComponent = new R(e), this.fieldHelpTextComponent = new O(e);
337
+ c(this, "fieldLabelComponent");
338
+ c(this, "fieldHelpTextComponent");
339
+ this.fieldLabelComponent = new A(e), this.fieldHelpTextComponent = new P(e);
336
340
  }
337
341
  getInputsLabelText({ testId: e }) {
338
342
  return this.fieldLabelComponent.getLabelText({ testId: e });
@@ -398,58 +402,58 @@ class q extends _ {
398
402
  return (await this.getFontCaptionText({ testId: e }))[0];
399
403
  }
400
404
  async getFontCaptionText({ testId: e }) {
401
- return (await this.page.getByTestId(n(e, i.WRAPPER)).locator(".font-caption").textContent()).split("/").map((g) => parseInt(g.trim(), 10));
405
+ return (await this.page.getByTestId(n(e, i.WRAPPER)).locator(".font-caption").textContent()).split("/").map((T) => parseInt(T.trim(), 10));
402
406
  }
403
407
  getHelpIconText({ testId: e }) {
404
408
  return this.fieldLabelComponent.getHelpIconText({ testId: e });
405
409
  }
406
410
  }
407
- class z {
411
+ class J {
408
412
  constructor(t) {
409
- s(this, "page");
413
+ c(this, "page");
410
414
  this.page = t;
411
415
  }
412
416
  async waitForComponent({ testId: t }) {
413
- const e = `[data-testid='${t}-${u.WRAPPER}']`;
417
+ const e = `[data-testid='${t}-${d.WRAPPER}']`;
414
418
  await this.page.waitForSelector(e);
415
419
  }
416
420
  getSelectedTabText({ testId: t }) {
417
- return this.page.getByTestId(n(t, u.WRAPPER)).locator(".tab-item--active").textContent();
421
+ return this.page.getByTestId(n(t, d.WRAPPER)).locator(".tab-item--active").textContent();
418
422
  }
419
423
  async selectTab({ testId: t, tabName: e }) {
420
424
  const o = await this.getTabIndex({ testId: t, tabName: e });
421
425
  await this.page.getByTestId(
422
- n(t, `${u.TAB}-${o + 1}`)
426
+ n(t, `${d.TAB}-${o + 1}`)
423
427
  ).click();
424
428
  }
425
429
  async getTabIndex({ testId: t, tabName: e }) {
426
- return (await this.page.getByTestId(n(t, u.WRAPPER)).locator(".tab-item").allTextContents()).indexOf(e);
430
+ return (await this.page.getByTestId(n(t, d.WRAPPER)).locator(".tab-item").allTextContents()).indexOf(e);
427
431
  }
428
432
  async isTabDisabled({ testId: t, tabName: e }) {
429
433
  const o = await this.getTabIndex({ testId: t, tabName: e });
430
- return this.page.getByTestId(n(t, `${u.TAB}-${o}`)).locator(".tab-item--disabled").isVisible();
434
+ return this.page.getByTestId(n(t, `${d.TAB}-${o}`)).locator(".tab-item--disabled").isVisible();
431
435
  }
432
436
  }
433
- class J {
437
+ class Q {
434
438
  constructor(t) {
435
- s(this, "page");
439
+ c(this, "page");
436
440
  this.page = t;
437
441
  }
438
442
  async waitForComponent({ testId: t }) {
439
- const e = `[data-testid='${t}-${B.TRIGGER}']`;
443
+ const e = `[data-testid='${t}-${I.TRIGGER}']`;
440
444
  await this.page.waitForSelector(e);
441
445
  }
442
446
  getTooltipText({ testId: t }) {
443
- return this.page.getByTestId(`${t}-${B.TRIGGER}`).getAttribute("text");
447
+ return this.page.getByTestId(`${t}-${I.TRIGGER}`).getAttribute("text");
444
448
  }
445
449
  getTooltipHeaderText({ testId: t }) {
446
- return this.page.getByTestId(`${t}-${B.TRIGGER}`).getAttribute("header");
450
+ return this.page.getByTestId(`${t}-${I.TRIGGER}`).getAttribute("header");
447
451
  }
448
452
  }
449
- const h = ".table-row", m = ".icon-wrapper", P = ".states", L = ".table-head-container", S = ".table-row.loading";
450
- class Q {
453
+ const u = ".table-row", L = ".icon-wrapper", S = ".states", b = ".table-head-container", N = ".table-row.loading";
454
+ class Z {
451
455
  constructor(t) {
452
- s(this, "page");
456
+ c(this, "page");
453
457
  this.page = t;
454
458
  }
455
459
  async waitForComponent({ testId: t }) {
@@ -457,10 +461,10 @@ class Q {
457
461
  await this.page.waitForSelector(e);
458
462
  }
459
463
  getTableRowCount({ testId: t }) {
460
- return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(h).count();
464
+ return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(u).count();
461
465
  }
462
466
  async getColumnHeaders({ testId: t }) {
463
- return this.page.getByTestId(n(t, r.TABLE)).locator(L).allTextContents();
467
+ return this.page.getByTestId(n(t, r.TABLE)).locator(b).allTextContents();
464
468
  }
465
469
  getTableLabel({ testId: t }) {
466
470
  return this.page.getByTestId(n(t, r.HEADER)).innerText();
@@ -469,7 +473,7 @@ class Q {
469
473
  return this.page.getByTestId(n(t, r.CONTAINER)).locator(".table-footer").innerText();
470
474
  }
471
475
  async clickOnHeaderByName(t) {
472
- await this.page.locator(L, {
476
+ await this.page.locator(b, {
473
477
  hasText: t
474
478
  }).click();
475
479
  }
@@ -480,7 +484,7 @@ class Q {
480
484
  await this.page.getByTestId(n(t, i.FIELD)).clear(), await this.waitForTableToLoad();
481
485
  }
482
486
  isArrowVisible({ testId: t, headerName: e }) {
483
- return this.page.getByTestId(n(t, r.TABLE)).locator(L, { hasText: e }).locator(".table-sort-icon").isVisible();
487
+ return this.page.getByTestId(n(t, r.TABLE)).locator(b, { hasText: e }).locator(".table-sort-icon").isVisible();
484
488
  }
485
489
  async scrollDownTableRows({ testId: t }) {
486
490
  const e = `[data-testid=${n(
@@ -488,29 +492,29 @@ class Q {
488
492
  r.TABLE
489
493
  )}]`;
490
494
  await this.page.focus(e), await this.page.evaluate((o) => {
491
- const g = document.querySelector(o);
492
- g && (g.scrollTop = g.scrollHeight);
495
+ const T = document.querySelector(o);
496
+ T && (T.scrollTop = T.scrollHeight);
493
497
  }, e), await this.waitForTableToLoad();
494
498
  }
495
499
  async waitForTableToLoad() {
496
- await this.page.waitForSelector(S, {
500
+ await this.page.waitForSelector(N, {
497
501
  state: "hidden"
498
502
  });
499
503
  }
500
504
  async waitingForTableLoadingToAppear() {
501
- await this.page.waitForSelector(S);
505
+ await this.page.waitForSelector(N);
502
506
  }
503
507
  async expandRow({ testId: t, rowValue: e }) {
504
- await this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(h, { hasText: e }).locator(m).click();
508
+ await this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(u, { hasText: e }).locator(L).click();
505
509
  }
506
510
  isRowExpanded({ testId: t, rowValue: e }) {
507
- return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(h, { hasText: e }).locator(m).isVisible();
511
+ return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(u, { hasText: e }).locator(L).isVisible();
508
512
  }
509
513
  async getExpandedRowContent({ testId: t, rowValue: e }) {
510
514
  return await this.isRowExpanded({
511
515
  testId: t,
512
516
  rowValue: e
513
- }) || await this.expandRow({ testId: t, rowValue: e }), this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(h, { hasText: e }).locator(m).textContent();
517
+ }) || await this.expandRow({ testId: t, rowValue: e }), this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(u, { hasText: e }).locator(L).textContent();
514
518
  }
515
519
  isEmptyStateVisible({ testId: t }) {
516
520
  return this.page.getByTestId(n(t, r.TABLE)).locator(".empty-state").isVisible();
@@ -522,15 +526,15 @@ class Q {
522
526
  return this.page.getByTestId(n(t, r.TABLE)).locator(".font-body-1.subtitle").textContent();
523
527
  }
524
528
  async clickOnRowCheckboxByRowValue({ testId: t, rowValue: e }) {
525
- await this.page.getByTestId(n(t, r.TABLE)).locator(h, {
529
+ await this.page.getByTestId(n(t, r.TABLE)).locator(u, {
526
530
  hasText: e
527
- }).locator(P).click();
531
+ }).locator(S).click();
528
532
  }
529
533
  getCheckedRowsNumber({ testId: t }) {
530
- return this.page.getByTestId(n(t, r.TABLE)).locator(h).locator(".icon.checked").count();
534
+ return this.page.getByTestId(n(t, r.TABLE)).locator(u).locator(".icon.checked").count();
531
535
  }
532
536
  async clickOnSelectAllCheckbox({ testId: t }) {
533
- await this.page.getByTestId(n(t, r.TABLE)).locator(P).nth(0).click();
537
+ await this.page.getByTestId(n(t, r.TABLE)).locator(S).nth(0).click();
534
538
  }
535
539
  getTableLocator({ testId: t }) {
536
540
  return this.page.getByTestId(
@@ -540,7 +544,7 @@ class Q {
540
544
  }
541
545
  class G {
542
546
  constructor(t) {
543
- s(this, "page");
547
+ c(this, "page");
544
548
  this.page = t;
545
549
  }
546
550
  async waitForComponent({ testId: t }) {
@@ -560,114 +564,117 @@ class G {
560
564
  return this.page.getByTestId(t).isDisabled();
561
565
  }
562
566
  }
563
- class Z {
567
+ class M {
564
568
  constructor(t) {
565
- s(this, "page");
569
+ c(this, "page");
566
570
  this.page = t;
567
571
  }
568
572
  async waitForComponent({ testId: t }) {
569
- const e = `[data-testid='${t}-${T.CONTAINER}']`;
573
+ const e = `[data-testid='${t}-${h.CONTAINER}']`;
570
574
  await this.page.waitForSelector(e);
571
575
  }
572
576
  getSnackbarTitle({ testId: t }) {
573
- return this.page.getByTestId(n(t, T.TITLE)).textContent();
577
+ return this.page.getByTestId(n(t, h.TITLE)).textContent();
574
578
  }
575
579
  async closeSnackbar({ testId: t }) {
576
- await this.page.getByTestId(n(t, T.CLOSE)).locator(".icon-name--x").click();
580
+ await this.page.getByTestId(n(t, h.CLOSE)).locator(".icon-name--x").click();
577
581
  }
578
582
  async waitForSnackbarToBeClosed({ testId: t }) {
579
- const e = `[data-testid='${t}-${T.CONTAINER}']`;
583
+ const e = `[data-testid='${t}-${h.CONTAINER}']`;
580
584
  await this.page.waitForSelector(e, { state: "detached" });
581
585
  }
582
586
  getSnackbarDescription({ testId: t }) {
583
- return this.page.getByTestId(n(t, T.MESSAGE)).textContent();
587
+ return this.page.getByTestId(n(t, h.MESSAGE)).textContent();
584
588
  }
585
589
  async clickOnActionButton({ testId: t, buttonName: e }) {
586
590
  const o = await this.getActionButtonIndex({
587
591
  testId: t,
588
592
  buttonName: e
589
- }), g = `[data-testid='${t}-${T.ACTION_BUTTON}-${o}']`;
590
- await this.page.click(g);
593
+ }), T = `[data-testid='${t}-${h.ACTION_BUTTON}-${o}']`;
594
+ await this.page.click(T);
591
595
  }
592
596
  async getActionButtonIndex({
593
597
  testId: t,
594
598
  buttonName: e
595
599
  }) {
596
- return (await this.page.getByTestId(n(t, T.CONTAINER)).locator(".font-button").allTextContents()).indexOf(e);
600
+ return (await this.page.getByTestId(n(t, h.CONTAINER)).locator(".font-button").allTextContents()).indexOf(e);
597
601
  }
598
602
  }
599
- class M {
603
+ class tt {
600
604
  constructor(t) {
601
- s(this, "page");
605
+ c(this, "page");
602
606
  this.page = t;
603
607
  }
604
608
  async waitForComponent({ testId: t }) {
605
- const e = `[data-testid='${t}-${y.WRAPPER}']`;
609
+ const e = `[data-testid='${t}-${C.WRAPPER}']`;
606
610
  await this.page.waitForSelector(e);
607
611
  }
608
612
  async closeMultiBar({ testId: t }) {
609
- await this.page.getByTestId(n(t, y.CLOSE_BTN)).locator(".icon-wrapper").click();
613
+ await this.page.getByTestId(n(t, C.CLOSE_BTN)).locator(".icon-wrapper").click();
610
614
  }
611
615
  getMultiBarCountText({ testId: t }) {
612
- return this.page.getByTestId(n(t, y.WRAPPER)).locator(".count-text").textContent();
616
+ return this.page.getByTestId(n(t, C.WRAPPER)).locator(".count-text").textContent();
613
617
  }
614
618
  async isMultiBarVisible({ testId: t }) {
615
- return await this.page.waitForTimeout(1e3), this.page.getByTestId(n(t, y.WRAPPER)).locator(".multi-bar-panel").isVisible();
619
+ return await this.page.waitForTimeout(1e3), this.page.getByTestId(n(t, C.WRAPPER)).locator(".multi-bar-panel").isVisible();
616
620
  }
617
621
  async clickOnActionButton({ testId: t, actionButtonId: e }) {
618
622
  await this.page.getByTestId(
619
623
  n(
620
624
  t,
621
- `${y.ACTION}-${e}`
625
+ `${C.ACTION}-${e}`
622
626
  )
623
627
  ).locator(".start-icon").click();
624
628
  }
625
629
  }
626
- class tt {
630
+ class et {
627
631
  constructor(t) {
628
- s(this, "page");
632
+ c(this, "page");
629
633
  this.page = t;
630
634
  }
631
635
  async waitForComponent({ testId: t }) {
632
- const e = `[data-testid='${t}-${E.TEXT}']`;
636
+ const e = `[data-testid='${t}-${w.TEXT}']`;
633
637
  await this.page.waitForSelector(e);
634
638
  }
635
639
  getFormRowTitle({ testId: t }) {
636
- return new R(this.page).getLabelText({ testId: t });
640
+ return new A(this.page).getLabelText({ testId: t });
637
641
  }
638
642
  isFormRowMandatory({ testId: t }) {
639
- return new R(this.page).isMandatory({ testId: t });
643
+ return new A(this.page).isMandatory({ testId: t });
640
644
  }
641
645
  getIconText({ testId: t }) {
642
- return new O(this.page).getExtraText({ testId: t });
646
+ return new P(this.page).getExtraText({ testId: t });
643
647
  }
644
648
  }
645
- class et {
649
+ class at {
646
650
  constructor(t) {
647
- s(this, "page");
651
+ c(this, "page");
648
652
  this.page = t;
649
653
  }
650
654
  async waitForComponent({ testId: t }) {
651
- const e = `[data-testid='${t}-${d.CONTENT}']`;
655
+ const e = `[data-testid='${t}-${y.CONTENT}']`;
652
656
  await this.page.waitForSelector(e);
653
657
  }
654
658
  getCardTitle({ testId: t }) {
655
- return this.page.getByTestId(n(t, d.TITLE)).textContent();
659
+ return this.page.getByTestId(n(t, y.TITLE)).textContent();
656
660
  }
657
661
  getCardContentText({ testId: t }) {
658
- return this.page.getByTestId(n(t, d.CONTENT)).textContent();
662
+ return this.page.getByTestId(n(t, y.CONTENT)).textContent();
663
+ }
664
+ getCardLabelText({ testId: t }) {
665
+ return new A(this.page).getLabelText({ testId: t });
659
666
  }
660
667
  async clickOnSaveButton({ testId: t }) {
661
- await this.page.getByTestId(n(t, d.SAVE_BUTTON)).click();
668
+ await this.page.getByTestId(n(t, y.SAVE_BUTTON)).click();
662
669
  }
663
670
  async clickOnCancelButton({ testId: t }) {
664
- await this.page.getByTestId(n(t, d.CANCEL_BUTTON)).click();
671
+ await this.page.getByTestId(n(t, y.CANCEL_BUTTON)).click();
665
672
  }
666
673
  isSaveButtonLoading({ testId: t }) {
667
674
  return new G(this.page).isButtonLoading({ testId: t });
668
675
  }
669
676
  }
670
- class C extends _ {
677
+ class E extends k {
671
678
  constructor(t) {
672
679
  super(t);
673
680
  }
@@ -707,61 +714,61 @@ class C extends _ {
707
714
  await (await this.page.getByTestId(n(t, i.WRAPPER)).locator(".password-visibility")).click();
708
715
  }
709
716
  }
710
- class at {
717
+ class nt {
711
718
  constructor(t) {
712
- s(this, "page");
719
+ c(this, "page");
713
720
  this.page = t;
714
721
  }
715
722
  async waitForComponent({ testId: t }) {
716
- const e = `[data-testid='${t}-${I.CONTAINER}']`;
723
+ const e = `[data-testid='${t}-${m.CONTAINER}']`;
717
724
  await this.page.waitForSelector(e);
718
725
  }
719
726
  async searchInput({ testId: t, searchTerm: e }) {
720
- await new C(this.page).addInput({ testId: t, text: e });
727
+ await new E(this.page).addInput({ testId: t, text: e });
721
728
  }
722
729
  async clearInput({ testId: t }) {
723
- await new C(this.page).clearInput({ testId: t });
730
+ await new E(this.page).clearInput({ testId: t });
724
731
  }
725
732
  async clickOnXButton({ testId: t }) {
726
- await this.page.getByTestId(n(t, I.CLEAR)).locator(".icon-name--x-circle").click();
733
+ await this.page.getByTestId(n(t, m.CLEAR)).locator(".icon-name--x-circle").click();
727
734
  }
728
735
  isDisabled({ testId: t }) {
729
- return new C(this.page).isDisabled({ testId: t });
736
+ return new E(this.page).isDisabled({ testId: t });
730
737
  }
731
738
  getSearchPlaceholder({ testId: t }) {
732
- return new C(this.page).getPlaceholderText({ testId: t });
739
+ return new E(this.page).getPlaceholderText({ testId: t });
733
740
  }
734
741
  getSearchInputValue({ testId: t }) {
735
- return new C(this.page).getInputsFieldText({ testId: t });
742
+ return new E(this.page).getInputsFieldText({ testId: t });
736
743
  }
737
744
  }
738
- class v {
745
+ class U {
739
746
  constructor(t) {
740
- s(this, "page");
747
+ c(this, "page");
741
748
  this.page = t;
742
749
  }
743
750
  async waitForComponent({ testId: t }) {
744
- const e = `[data-testid='${t}-${b.TEXT}']`;
751
+ const e = `[data-testid='${t}-${O.TEXT}']`;
745
752
  await this.page.waitForSelector(e);
746
753
  }
747
754
  getInlineCopyText({ testId: t }) {
748
- return this.page.getByTestId(`${t}-${b.TEXT}`).textContent();
755
+ return this.page.getByTestId(`${t}-${O.TEXT}`).textContent();
749
756
  }
750
757
  }
751
- class nt {
758
+ class ot {
752
759
  constructor(t) {
753
- s(this, "page");
760
+ c(this, "page");
754
761
  this.page = t;
755
762
  }
756
763
  async waitForComponent({ testId: t }) {
757
- const e = `[data-testid='${t}-${x.TITLE}']`;
764
+ const e = `[data-testid='${t}-${R.TITLE}']`;
758
765
  await this.page.waitForSelector(e);
759
766
  }
760
767
  getHeaderTitle({ testId: t }) {
761
- return this.page.getByTestId(`${t}-${x.TITLE}`).textContent();
768
+ return this.page.getByTestId(`${t}-${R.TITLE}`).textContent();
762
769
  }
763
770
  getInlineCopyText({ testId: t }) {
764
- return new v(this.page).getInlineCopyText({
771
+ return new U(this.page).getInlineCopyText({
765
772
  testId: t
766
773
  });
767
774
  }
@@ -769,27 +776,61 @@ class nt {
769
776
  testId: t,
770
777
  iconName: e
771
778
  }) {
772
- return await this.page.getByTestId(`${t}-${x.APP_PLATFORM}`).getAttribute("data-platform") === e;
779
+ return await this.page.getByTestId(`${t}-${R.APP_PLATFORM}`).getAttribute("data-platform") === e;
780
+ }
781
+ }
782
+ class it {
783
+ constructor(t) {
784
+ c(this, "page");
785
+ this.page = t;
786
+ }
787
+ async waitForComponent({ testId: t }) {
788
+ const e = `[data-testid='${t}-${g.WRAPPER}']`;
789
+ await this.page.waitForSelector(e);
790
+ }
791
+ getAlertText({ testId: t }) {
792
+ return this.page.getByTestId(n(t, g.MESSAGE)).textContent();
793
+ }
794
+ getAlertTitle({ testId: t }) {
795
+ return this.page.getByTestId(n(t, g.TITLE)).textContent();
796
+ }
797
+ async clickOnActionButton({ testId: t }) {
798
+ await this.page.click(
799
+ n(t, g.ACTION_BUTTON)
800
+ );
801
+ }
802
+ getActionButtonText({ testId: t }) {
803
+ return this.page.getByTestId(n(t, g.ACTION_BUTTON)).textContent();
804
+ }
805
+ async closeAlert({ testId: t }) {
806
+ await this.page.getByTestId(n(t, g.CLOSE_BUTTON)).click();
807
+ }
808
+ async isAlertVisible({ testId: t }) {
809
+ return await this.page.getByTestId(n(t, g.WRAPPER)).count() > 0;
810
+ }
811
+ getAlertIconType({ testId: t }) {
812
+ return this.page.getByTestId(n(t, g.WRAPPER)).getAttribute("class");
773
813
  }
774
814
  }
775
815
  export {
776
- nt as AppHeaderComponent,
816
+ it as AlertComponent,
817
+ ot as AppHeaderComponent,
777
818
  X as BannerComponent,
778
819
  G as ButtonComponent,
779
- U as ComponentBasePage,
820
+ Y as ComponentBasePage,
780
821
  f as DialogComponent,
781
- Y as DropdownComponent,
782
- j as DropdownComponentV3,
783
- O as FieldHelpTextComponent,
784
- R as FieldLabelComponent,
785
- et as FormCardComponent,
786
- tt as FormRowComponent,
787
- K as IncludeExcludeComponent,
788
- q as InputsComponent,
789
- M as MultiBarComponent,
790
- at as SearchComponent,
791
- Z as SnackbarComponent,
792
- Q as TableComponent,
793
- z as TabsComponent,
794
- J as TooltipComponent
822
+ j as DropdownComponent,
823
+ K as DropdownComponentV3,
824
+ P as FieldHelpTextComponent,
825
+ A as FieldLabelComponent,
826
+ at as FormCardComponent,
827
+ et as FormRowComponent,
828
+ q as IncludeExcludeComponent,
829
+ z as InputsComponent,
830
+ tt as MultiBarComponent,
831
+ nt as SearchComponent,
832
+ M as SnackbarComponent,
833
+ Z as TableComponent,
834
+ J as TabsComponent,
835
+ Q as TooltipComponent
795
836
  };