@ironsource/shared-ui-e2e 2.1.3-rc.1 → 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.
Files changed (32) hide show
  1. package/package.json +1 -1
  2. package/shared-e2e-commands.js +371 -155
  3. package/shared-e2e-commands.umd.cjs +2 -2
  4. package/tests/components/appHeader/app-header-component.d.ts +18 -0
  5. package/tests/components/appHeader/app-header-page.d.ts +11 -0
  6. package/tests/components/appHeader/consts.d.ts +3 -0
  7. package/tests/components/button/button-component.d.ts +20 -0
  8. package/tests/components/button/button-page.d.ts +12 -0
  9. package/tests/components/button/consts.d.ts +3 -0
  10. package/tests/components/formCard/consts.d.ts +3 -0
  11. package/tests/components/formCard/form-card-component.d.ts +23 -0
  12. package/tests/components/formCard/form-card-page.d.ts +13 -0
  13. package/tests/components/formRow/consts.d.ts +3 -0
  14. package/tests/components/formRow/form-row-component.d.ts +17 -0
  15. package/tests/components/formRow/form-row-page.d.ts +10 -0
  16. package/tests/components/inlineCopy/consts.d.ts +3 -0
  17. package/tests/components/inlineCopy/inline-copy-component.d.ts +11 -0
  18. package/tests/components/inlineCopy/inline-copy-page.d.ts +9 -0
  19. package/tests/components/multibar/consts.d.ts +3 -0
  20. package/tests/components/multibar/multibar-component.d.ts +23 -0
  21. package/tests/components/multibar/multibar-page.d.ts +14 -0
  22. package/tests/components/search/consts.d.ts +3 -0
  23. package/tests/components/search/search-component.d.ts +28 -0
  24. package/tests/components/search/search-page.d.ts +14 -0
  25. package/tests/components/snackbar/consts.d.ts +4 -0
  26. package/tests/components/snackbar/snackbar-component.d.ts +27 -0
  27. package/tests/components/snackbar/snackbar-page.d.ts +13 -0
  28. package/tests/components/table/table-component.d.ts +11 -19
  29. package/tests/components/table/types.d.ts +13 -0
  30. package/tests/index.d.ts +6 -0
  31. package/tests/testids/index.d.ts +9 -1
  32. package/tsconfig.tsbuildinfo +1 -1
@@ -1,44 +1,44 @@
1
- var A = Object.defineProperty;
2
- var m = (a, t, e) => t in a ? A(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
- var l = (a, t, e) => (m(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 || {}), 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 || {}), d = /* @__PURE__ */ ((a) => (a.WRAPPER = "banner-wrapper", a.CONTENT = "banner-content", a))(d || {}), 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 || {}), c = /* @__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))(c || {}), B = /* @__PURE__ */ ((a) => (a.CONTAINER = "search-container", a.FIELD = "search-field", a.CLOSE = "search-close", a.CLEAR = "search-clear", a))(B || {}), 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 || {}), u = /* @__PURE__ */ ((a) => (a.TEXT = "tt-text", a.TRIGGER = "tt-trigger", a.HEADER = "tt-header", a))(u || {}), h = /* @__PURE__ */ ((a) => (a.WRAPPER = "tabs-wrapper", a.TAB = "tabs-tab", a))(h || {}), 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 || {}), E = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-help-text-container", a.TEXT = "field-help-text-text", a.ICON = "field-help-text-icon", a))(E || {});
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
- }, b = (a, t = {}) => {
8
+ }, k = (a, t = {}) => {
9
9
  const e = [];
10
- Object.entries(t).forEach(([g, y]) => {
11
- e.push(`${g}:${y}`);
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 S {
20
+ class $ {
21
21
  constructor(t) {
22
- l(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}-${d.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, d.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, d.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 N {
36
+ class D {
37
37
  constructor(t) {
38
- l(this, "page");
39
- l(this, "testId");
40
- l(this, "componentId");
41
- l(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,16 +47,16 @@ class N {
47
47
  ...t.additionalComponentParams
48
48
  };
49
49
  await this.page.goto(
50
- b(
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 k {
57
+ class H {
58
58
  constructor(t) {
59
- l(this, "page");
59
+ c(this, "page");
60
60
  this.page = t;
61
61
  }
62
62
  async waitForComponent({ testId: t }) {
@@ -98,29 +98,29 @@ class k {
98
98
  )).isVisible();
99
99
  }
100
100
  }
101
- class x {
101
+ class L {
102
102
  constructor(t) {
103
- l(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, s.WRAPPER)
108
+ n(t, l.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, s.LIST_CONTAINER)).locator("ul > li").nth(e).click();
112
+ await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, l.LIST_CONTAINER)).locator("ul > li").nth(e).click();
113
113
  }
114
114
  async openDropdownComponent({ testId: t }) {
115
- await this.page.getByTestId(n(t, s.TRIGGER)).click({ position: { x: 10, y: 10 } });
115
+ await this.page.getByTestId(n(t, l.TRIGGER)).click({ position: { x: 10, y: 10 } });
116
116
  }
117
117
  async selectDropdownOptionByName({ testId: t, name: e }) {
118
- await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, s.LIST_CONTAINER)).locator("ul > li span", { hasText: e }).click();
118
+ await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, l.LIST_CONTAINER)).locator("ul > li span", { hasText: e }).click();
119
119
  }
120
120
  async selectMultipleItemsByIndex({ testId: t, itemsToSelect: e }) {
121
121
  await this.openDropdownComponent({ testId: t });
122
122
  for (const o of e)
123
- await this.page.getByTestId(n(t, s.LIST_CONTAINER)).locator("ul > li").nth(o).click();
123
+ await this.page.getByTestId(n(t, l.LIST_CONTAINER)).locator("ul > li").nth(o).click();
124
124
  }
125
125
  async selectMultipleItemsByName({
126
126
  testId: t,
@@ -128,54 +128,54 @@ class x {
128
128
  }) {
129
129
  await this.openDropdownComponent({ testId: t });
130
130
  for (const o of e)
131
- await this.page.getByTestId(n(t, s.LIST_CONTAINER)).locator("ul > li span", { hasText: o }).first().click();
131
+ await this.page.getByTestId(n(t, l.LIST_CONTAINER)).locator("ul > li span", { hasText: o }).first().click();
132
132
  }
133
133
  async clickOnApply({ testId: t }) {
134
- await this.page.getByTestId(n(t, s.ACTION_APPLY)).click();
134
+ await this.page.getByTestId(n(t, l.ACTION_APPLY)).click();
135
135
  }
136
136
  async clickOnCancel({ testId: t }) {
137
- await this.page.getByTestId(n(t, s.ACTION_CANCEL)).click();
137
+ await this.page.getByTestId(n(t, l.ACTION_CANCEL)).click();
138
138
  }
139
139
  }
140
- class R {
140
+ class A {
141
141
  constructor(t) {
142
- l(this, "page");
142
+ c(this, "page");
143
143
  this.page = t;
144
144
  }
145
145
  getLabelText({ testId: t }) {
146
- return this.page.getByTestId(n(t, w.TEXT)).textContent();
146
+ return this.page.getByTestId(n(t, C.TEXT)).textContent();
147
147
  }
148
148
  isMandatory({ testId: t }) {
149
- return this.page.getByTestId(n(t, w.MANDATORY)).isVisible();
149
+ return this.page.getByTestId(n(t, C.MANDATORY)).isVisible();
150
150
  }
151
151
  async getHelpIconText({ testId: t }) {
152
152
  const e = await this.page.getByTestId(
153
- n(t, w.TOOLTIP)
153
+ n(t, C.TOOLTIP)
154
154
  );
155
155
  return await e.hover(), e.getAttribute("text");
156
156
  }
157
157
  }
158
- class I {
158
+ class b {
159
159
  constructor(t) {
160
- l(this, "page");
160
+ c(this, "page");
161
161
  this.page = t;
162
162
  }
163
163
  hasExtraText({ testId: t }) {
164
- return this.page.getByTestId(n(t, E.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, E.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, E.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 _ extends x {
173
+ class V extends L {
174
174
  constructor(e) {
175
175
  super(e);
176
- l(this, "fieldLabelComponent");
177
- l(this, "fieldHelpTextComponent");
178
- this.fieldLabelComponent = new R(e), this.fieldHelpTextComponent = new I(e);
176
+ c(this, "fieldLabelComponent");
177
+ c(this, "fieldHelpTextComponent");
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 });
@@ -196,47 +196,47 @@ class _ extends x {
196
196
  return this.fieldHelpTextComponent.hasExtraTextIconType({ testId: e, type: o });
197
197
  }
198
198
  getSelectedLabel({ testId: e }) {
199
- return this.page.getByTestId(n(e, s.BUTTON_CONTENT)).textContent();
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, c.FIELD)).fill(o), this.page.getByTestId(n(e, s.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
- return this.page.getByTestId(n(e, s.TRIGGER)).locator(".state-error").isVisible();
205
+ return this.page.getByTestId(n(e, l.TRIGGER)).locator(".state-error").isVisible();
206
206
  }
207
207
  async isDisabled({ testId: e }) {
208
- return (await this.page.getByTestId(n(e, s.TRIGGER)).locator(".button__container--disabled")).isVisible();
208
+ return (await this.page.getByTestId(n(e, l.TRIGGER)).locator(".button__container--disabled")).isVisible();
209
209
  }
210
210
  async clearAllOptions({ testId: e }) {
211
- await this.page.getByTestId(n(e, s.ACTION_CLEAR_ALL)).click();
211
+ await this.page.getByTestId(n(e, l.ACTION_CLEAR_ALL)).click();
212
212
  }
213
213
  isSelectAllChecked({ testId: e }) {
214
- return this.page.getByTestId(n(e, s.SELECT_ALL)).locator(".checkbox.input").isChecked();
214
+ return this.page.getByTestId(n(e, l.SELECT_ALL)).locator(".checkbox.input").isChecked();
215
215
  }
216
216
  isSelectAllIndeterminate({ testId: e }) {
217
- return this.page.getByTestId(n(e, s.SELECT_ALL)).locator(".icon.indeterminate").isVisible();
217
+ return this.page.getByTestId(n(e, l.SELECT_ALL)).locator(".icon.indeterminate").isVisible();
218
218
  }
219
219
  async removeChipSelection({ testId: e }) {
220
- await this.page.getByTestId(n(e, s.BUTTON_CLEAR)).click();
220
+ await this.page.getByTestId(n(e, l.BUTTON_CLEAR)).click();
221
221
  }
222
222
  }
223
- class H extends x {
223
+ class W extends L {
224
224
  constructor(t) {
225
225
  super(t);
226
226
  }
227
227
  getDropdownTitle({ testId: t }) {
228
- return this.page.getByTestId(n(t, s.WRAPPER)).locator("label > span").textContent();
228
+ return this.page.getByTestId(n(t, l.WRAPPER)).locator("label > span").textContent();
229
229
  }
230
230
  getSelectedItem({ testId: t }) {
231
- return this.page.getByTestId(n(t, s.TRIGGER)).locator("button > span").textContent();
231
+ return this.page.getByTestId(n(t, l.TRIGGER)).locator("button > span").textContent();
232
232
  }
233
233
  async searchForItem({ testId: t, searchTerm: e }) {
234
- return await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, B.FIELD)).fill(e), this.page.getByTestId(n(t, s.LIST_CONTAINER)).locator("ul > li span").first().textContent();
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 D {
237
+ class G {
238
238
  constructor(t) {
239
- l(this, "page");
239
+ c(this, "page");
240
240
  this.page = t;
241
241
  }
242
242
  async waitForComponent({ testId: t }) {
@@ -302,40 +302,40 @@ class D {
302
302
  }
303
303
  class O {
304
304
  constructor(t) {
305
- l(this, "page");
305
+ c(this, "page");
306
306
  this.page = t;
307
307
  }
308
308
  getInputsFieldText({ testId: t }) {
309
- return this.page.getByTestId(n(t, c.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, c.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, c.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, c.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, c.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, c.FIELD)).isDisabled();
324
+ return this.page.getByTestId(n(t, i.FIELD)).isDisabled();
325
325
  }
326
326
  }
327
- class F extends O {
327
+ class v extends O {
328
328
  constructor(e) {
329
329
  super(e);
330
- l(this, "fieldLabelComponent");
331
- l(this, "fieldHelpTextComponent");
332
- this.fieldLabelComponent = new R(e), this.fieldHelpTextComponent = new I(e);
330
+ c(this, "fieldLabelComponent");
331
+ c(this, "fieldHelpTextComponent");
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}-${c.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 F extends O {
348
348
  return this.fieldHelpTextComponent.getExtraText({ testId: e });
349
349
  }
350
350
  async clickOnApplyButton({ testId: e }) {
351
- await (await this.page.getByTestId(n(e, c.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, c.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, c.TOOLTIP)
358
+ n(e, i.TOOLTIP)
359
359
  );
360
360
  return await o.hover(), o.getAttribute("text");
361
361
  }
@@ -363,17 +363,17 @@ class F extends O {
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, c.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, c.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, c.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 F extends O {
382
382
  }
383
383
  async isDisabled({ testId: e }) {
384
384
  return (await this.page.getByTestId(
385
- n(e, c.FIELD)
385
+ n(e, i.FIELD)
386
386
  )).isDisabled();
387
387
  }
388
388
  hasApplyButton({ testId: e }) {
389
- return this.page.getByTestId(n(e, c.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,15 +395,15 @@ class F extends O {
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, c.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 G {
404
+ class f {
405
405
  constructor(t) {
406
- l(this, "page");
406
+ c(this, "page");
407
407
  this.page = t;
408
408
  }
409
409
  async waitForComponent({ testId: t }) {
@@ -427,25 +427,25 @@ class G {
427
427
  return this.page.getByTestId(n(t, `${h.TAB}-${o}`)).locator(".tab-item--disabled").isVisible();
428
428
  }
429
429
  }
430
- class $ {
430
+ class U {
431
431
  constructor(t) {
432
- l(this, "page");
432
+ c(this, "page");
433
433
  this.page = t;
434
434
  }
435
435
  async waitForComponent({ testId: t }) {
436
- const e = `[data-testid='${t}-${u.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}-${u.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}-${u.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
- l(this, "page");
448
+ c(this, "page");
449
449
  this.page = t;
450
450
  }
451
451
  async waitForComponent({ testId: 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 y of i) {
479
- const C = await this.getTableRowContentByIndex({
475
+ for (const E of s) {
476
+ const m = await this.getTableRowContentByIndex({
480
477
  testId: t,
481
- index: y
478
+ index: E
482
479
  });
483
- g.push(C);
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 C = (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(C);
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, c.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, c.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,18 +635,237 @@ 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
+ }
654
+ }
655
+ class _ {
656
+ constructor(t) {
657
+ c(this, "page");
658
+ this.page = t;
659
+ }
660
+ async waitForComponent({ testId: t }) {
661
+ const e = `[data-testid='${t}']`;
662
+ await this.page.waitForSelector(e);
663
+ }
664
+ async clickOnButton({ testId: t }) {
665
+ await this.page.click(`[data-testid='${t}']`);
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
+ }
676
+ }
677
+ class Y {
678
+ constructor(t) {
679
+ c(this, "page");
680
+ this.page = t;
681
+ }
682
+ async waitForComponent({ testId: t }) {
683
+ const e = `[data-testid='${t}-${u.CONTAINER}']`;
684
+ await this.page.waitForSelector(e);
685
+ }
686
+ getSnackbarTitle({ testId: t }) {
687
+ return this.page.getByTestId(n(t, u.TITLE)).textContent();
688
+ }
689
+ async closeSnackbar({ testId: t }) {
690
+ await this.page.getByTestId(n(t, u.CLOSE)).locator(".icon-name--x").click();
691
+ }
692
+ async waitForSnackbarToBeClosed({ testId: t }) {
693
+ const e = `[data-testid='${t}-${u.CONTAINER}']`;
694
+ await this.page.waitForSelector(e, { state: "detached" });
695
+ }
696
+ getSnackbarDescription({ testId: t }) {
697
+ return this.page.getByTestId(n(t, u.MESSAGE)).textContent();
698
+ }
699
+ async clickOnActionButton({ testId: t, buttonName: e }) {
700
+ const o = await this.getActionButtonIndex({
701
+ testId: t,
702
+ buttonName: e
703
+ }), s = `[data-testid='${t}-${u.ACTION_BUTTON}-${o}']`;
704
+ await this.page.click(s);
705
+ }
706
+ async getActionButtonIndex({
707
+ testId: t,
708
+ buttonName: e
709
+ }) {
710
+ return (await this.page.getByTestId(n(t, u.CONTAINER)).locator(".font-button").allTextContents()).indexOf(e);
711
+ }
712
+ }
713
+ class j {
714
+ constructor(t) {
715
+ c(this, "page");
716
+ this.page = t;
717
+ }
718
+ async waitForComponent({ testId: t }) {
719
+ const e = `[data-testid='${t}-${y.WRAPPER}']`;
720
+ await this.page.waitForSelector(e);
721
+ }
722
+ async closeMultiBar({ testId: t }) {
723
+ await this.page.getByTestId(n(t, y.CLOSE_BTN)).locator(".icon-wrapper").click();
724
+ }
725
+ getMultiBarCountText({ testId: t }) {
726
+ return this.page.getByTestId(n(t, y.WRAPPER)).locator(".count-text").textContent();
727
+ }
728
+ async isMultiBarVisible({ testId: t }) {
729
+ return await this.page.waitForTimeout(1e3), this.page.getByTestId(n(t, y.WRAPPER)).locator(".multi-bar-panel").isVisible();
730
+ }
731
+ async clickOnActionButton({ testId: t, actionButtonId: e }) {
732
+ await this.page.getByTestId(
733
+ n(
734
+ t,
735
+ `${y.ACTION}-${e}`
736
+ )
737
+ ).locator(".start-icon").click();
738
+ }
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
+ }
641
851
  }
642
852
  export {
643
- S as BannerComponent,
644
- N as ComponentBasePage,
645
- k as DialogComponent,
646
- _ as DropdownComponent,
647
- H as DropdownComponentV3,
648
- I as FieldHelpTextComponent,
649
- R as FieldLabelComponent,
650
- D as IncludeExcludeComponent,
651
- F as InputsComponent,
652
- V as TableComponent,
653
- G as TabsComponent,
654
- $ as TooltipComponent
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,
867
+ Y as SnackbarComponent,
868
+ X as TableComponent,
869
+ f as TabsComponent,
870
+ U as TooltipComponent
655
871
  };