@ironsource/shared-ui-e2e
Advanced tools
Comparing version 2.1.3-rc.26 to 2.1.3-rc.27
{ | ||
"name": "@ironsource/shared-ui-e2e", | ||
"private": false, | ||
"version": "2.1.3-rc.26", | ||
"version": "2.1.3-rc.27", | ||
"description": "", | ||
@@ -6,0 +6,0 @@ "type": "module", |
var D = Object.defineProperty; | ||
var H = (a, t, e) => t in a ? D(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e; | ||
var s = (a, t, e) => (H(a, typeof t != "symbol" ? t + "" : t, e), e); | ||
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 || {}), x = /* @__PURE__ */ ((a) => (a.WRAPPER = "banner-wrapper", a.CONTENT = "banner-content", a))(x || {}), T = /* @__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))(T || {}), g = /* @__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))(g || {}), 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 || {}), I = /* @__PURE__ */ ((a) => (a.TEXT = "tt-text", a.TRIGGER = "tt-trigger", a.HEADER = "tt-header", a))(I || {}), y = /* @__PURE__ */ ((a) => (a.WRAPPER = "tabs-wrapper", a.TAB = "tabs-tab", a))(y || {}), 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 || {}), u = /* @__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))(u || {}), m = /* @__PURE__ */ ((a) => (a.TITLE = "ah-title", a.APP_KEY = "ah-app-key", a.APP_PLATFORM = "ah-app-platform", a))(m || {}), 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 || {}); | ||
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 || {}), x = /* @__PURE__ */ ((a) => (a.WRAPPER = "banner-wrapper", a.CONTENT = "banner-content", a))(x || {}), T = /* @__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))(T || {}), g = /* @__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))(g || {}), 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 || {}), 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 || {}), u = /* @__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))(u || {}), m = /* @__PURE__ */ ((a) => (a.TITLE = "ah-title", a.APP_KEY = "ah-app-key", a.APP_PLATFORM = "ah-app-platform", a.AB_ICON = "ah-ab-icon", a))(m || {}), b = /* @__PURE__ */ ((a) => (a.TEXT = "ic-text", a.COPY_BTN = "ic-copy-btn", a))(b || {}), C = /* @__PURE__ */ ((a) => (a.WRAPPER = "multibar-wrapper", a.CLOSE_BTN = "multibar-close-button", a.MENU = "multibar-menu", a.ACTION = "multibar-action", a))(C || {}); | ||
const W = (a, t) => { | ||
const e = new URLSearchParams(a).toString(); | ||
return t.includes("?") ? `${t}${e}` : `${t}?${e}`; | ||
}, v = (a, t = {}) => { | ||
}, G = (a, t = {}) => { | ||
const e = []; | ||
@@ -20,3 +20,3 @@ Object.entries(t).forEach(([F, $]) => { | ||
}, n = (a, t) => `${a}-${t}`; | ||
class X { | ||
class Y { | ||
constructor(t) { | ||
@@ -37,3 +37,3 @@ s(this, "page"); | ||
} | ||
class Y { | ||
class f { | ||
constructor(t) { | ||
@@ -52,3 +52,3 @@ s(this, "page"); | ||
await this.page.goto( | ||
v( | ||
G( | ||
t.storyId || this.componentId, | ||
@@ -60,3 +60,3 @@ e | ||
} | ||
class f { | ||
class j { | ||
constructor(t) { | ||
@@ -184,3 +184,3 @@ s(this, "page"); | ||
} | ||
class j extends _ { | ||
class K extends _ { | ||
constructor(e) { | ||
@@ -238,3 +238,3 @@ super(e); | ||
} | ||
class K extends _ { | ||
class q extends _ { | ||
constructor(t) { | ||
@@ -253,3 +253,3 @@ super(t); | ||
} | ||
class q { | ||
class z { | ||
constructor(t) { | ||
@@ -344,3 +344,3 @@ s(this, "page"); | ||
} | ||
class z extends k { | ||
class J extends k { | ||
constructor(e) { | ||
@@ -421,3 +421,3 @@ super(e); | ||
} | ||
class J { | ||
class Q { | ||
constructor(t) { | ||
@@ -428,7 +428,7 @@ s(this, "page"); | ||
async waitForComponent({ testId: t }) { | ||
const e = `[data-testid='${t}-${y.WRAPPER}']`; | ||
const e = `[data-testid='${t}-${d.WRAPPER}']`; | ||
await this.page.waitForSelector(e); | ||
} | ||
getSelectedTabText({ testId: t }) { | ||
return this.page.getByTestId(n(t, y.WRAPPER)).locator(".tab-item--active").textContent(); | ||
return this.page.getByTestId(n(t, d.WRAPPER)).locator(".tab-item--active").textContent(); | ||
} | ||
@@ -438,14 +438,14 @@ async selectTab({ testId: t, tabName: e }) { | ||
await this.page.getByTestId( | ||
n(t, `${y.TAB}-${o + 1}`) | ||
n(t, `${d.TAB}-${o + 1}`) | ||
).click(); | ||
} | ||
async getTabIndex({ testId: t, tabName: e }) { | ||
return (await this.page.getByTestId(n(t, y.WRAPPER)).locator(".tab-item").allTextContents()).indexOf(e); | ||
return (await this.page.getByTestId(n(t, d.WRAPPER)).locator(".tab-item").allTextContents()).indexOf(e); | ||
} | ||
async isTabDisabled({ testId: t, tabName: e }) { | ||
const o = await this.getTabIndex({ testId: t, tabName: e }); | ||
return this.page.getByTestId(n(t, `${y.TAB}-${o}`)).locator(".tab-item--disabled").isVisible(); | ||
return this.page.getByTestId(n(t, `${d.TAB}-${o}`)).locator(".tab-item--disabled").isVisible(); | ||
} | ||
} | ||
class Q { | ||
class Z { | ||
constructor(t) { | ||
@@ -466,4 +466,4 @@ s(this, "page"); | ||
} | ||
const d = ".table-row", L = ".icon-wrapper", P = ".states", b = ".table-head-container", N = ".table-row.loading"; | ||
class Z { | ||
const y = ".table-row", L = ".icon-wrapper", N = ".states", O = ".table-head-container", P = ".table-row.loading", v = 1e3; | ||
class M { | ||
constructor(t) { | ||
@@ -478,6 +478,6 @@ s(this, "page"); | ||
getTableRowCount({ testId: t }) { | ||
return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(d).count(); | ||
return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(y).count(); | ||
} | ||
async getColumnHeaders({ testId: t }) { | ||
return this.page.getByTestId(n(t, r.TABLE)).locator(b).allTextContents(); | ||
return this.page.getByTestId(n(t, r.TABLE)).locator(O).allTextContents(); | ||
} | ||
@@ -491,3 +491,3 @@ getTableLabel({ testId: t }) { | ||
async clickOnHeaderByName(t) { | ||
await this.page.locator(b, { | ||
await this.page.locator(O, { | ||
hasText: t | ||
@@ -503,3 +503,3 @@ }).click(); | ||
isArrowVisible({ testId: t, headerName: e }) { | ||
return this.page.getByTestId(n(t, r.TABLE)).locator(b, { hasText: e }).locator(".table-sort-icon").isVisible(); | ||
return this.page.getByTestId(n(t, r.TABLE)).locator(O, { hasText: e }).locator(".table-sort-icon").isVisible(); | ||
} | ||
@@ -514,6 +514,6 @@ async scrollDownTableRows({ testId: t }) { | ||
p && (p.scrollTop = p.scrollHeight); | ||
}, e), await this.waitForTableToLoad(); | ||
}, e), await this.page.waitForTimeout(v); | ||
} | ||
async waitForTableToLoad() { | ||
await this.page.waitForSelector(N, { | ||
await this.page.waitForSelector(P, { | ||
state: "hidden" | ||
@@ -523,9 +523,9 @@ }); | ||
async waitingForTableLoadingToAppear() { | ||
await this.page.waitForSelector(N); | ||
await this.page.waitForSelector(P); | ||
} | ||
async expandRow({ testId: t, rowValue: e }) { | ||
await this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(d, { hasText: e }).locator(L).click(); | ||
await this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(y, { hasText: e }).locator(L).click(); | ||
} | ||
isRowExpanded({ testId: t, rowValue: e }) { | ||
return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(d, { hasText: e }).locator(L).isVisible(); | ||
return this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(y, { hasText: e }).locator(L).isVisible(); | ||
} | ||
@@ -536,3 +536,3 @@ async getExpandedRowContent({ testId: t, rowValue: e }) { | ||
rowValue: e | ||
}) || await this.expandRow({ testId: t, rowValue: e }), this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(d, { hasText: e }).locator(L).textContent(); | ||
}) || await this.expandRow({ testId: t, rowValue: e }), this.page.getByTestId(n(t, r.BODY_WRAPPER)).locator(y, { hasText: e }).locator(L).textContent(); | ||
} | ||
@@ -549,11 +549,11 @@ isEmptyStateVisible({ testId: t }) { | ||
async clickOnRowCheckboxByRowValue({ testId: t, rowValue: e }) { | ||
await this.page.getByTestId(n(t, r.TABLE)).locator(d, { | ||
await this.page.getByTestId(n(t, r.TABLE)).locator(y, { | ||
hasText: e | ||
}).locator(P).click(); | ||
}).locator(N).click(); | ||
} | ||
getCheckedRowsNumber({ testId: t }) { | ||
return this.page.getByTestId(n(t, r.TABLE)).locator(d).locator(".icon.checked").count(); | ||
return this.page.getByTestId(n(t, r.TABLE)).locator(y).locator(".icon.checked").count(); | ||
} | ||
async clickOnSelectAllCheckbox({ testId: t }) { | ||
await this.page.getByTestId(n(t, r.TABLE)).locator(P).nth(0).click(); | ||
await this.page.getByTestId(n(t, r.TABLE)).locator(N).nth(0).click(); | ||
} | ||
@@ -566,3 +566,3 @@ getTableLocator({ testId: t }) { | ||
} | ||
class G { | ||
class U { | ||
constructor(t) { | ||
@@ -589,3 +589,3 @@ s(this, "page"); | ||
} | ||
class M { | ||
class tt { | ||
constructor(t) { | ||
@@ -626,3 +626,3 @@ s(this, "page"); | ||
} | ||
class tt { | ||
class et { | ||
constructor(t) { | ||
@@ -654,3 +654,3 @@ s(this, "page"); | ||
} | ||
class et { | ||
class at { | ||
constructor(t) { | ||
@@ -674,3 +674,3 @@ s(this, "page"); | ||
} | ||
class at { | ||
class nt { | ||
constructor(t) { | ||
@@ -700,3 +700,3 @@ s(this, "page"); | ||
isSaveButtonLoading({ testId: t }) { | ||
return new G(this.page).isButtonLoading({ testId: t }); | ||
return new U(this.page).isButtonLoading({ testId: t }); | ||
} | ||
@@ -752,3 +752,3 @@ async clearForm({ | ||
} | ||
class nt { | ||
class ot { | ||
constructor(t) { | ||
@@ -781,3 +781,3 @@ s(this, "page"); | ||
} | ||
class U { | ||
class V { | ||
constructor(t) { | ||
@@ -788,10 +788,10 @@ s(this, "page"); | ||
async waitForComponent({ testId: t }) { | ||
const e = `[data-testid='${t}-${O.TEXT}']`; | ||
const e = `[data-testid='${t}-${b.TEXT}']`; | ||
await this.page.waitForSelector(e); | ||
} | ||
getInlineCopyText({ testId: t }) { | ||
return this.page.getByTestId(`${t}-${O.TEXT}`).textContent(); | ||
return this.page.getByTestId(`${t}-${b.TEXT}`).textContent(); | ||
} | ||
} | ||
class ot { | ||
class it { | ||
constructor(t) { | ||
@@ -809,3 +809,3 @@ s(this, "page"); | ||
getInlineCopyText({ testId: t }) { | ||
return new U(this.page).getInlineCopyText({ | ||
return new V(this.page).getInlineCopyText({ | ||
testId: t | ||
@@ -821,3 +821,3 @@ }); | ||
} | ||
class it { | ||
class st { | ||
constructor(t) { | ||
@@ -856,23 +856,23 @@ s(this, "page"); | ||
export { | ||
it as AlertComponent, | ||
ot as AppHeaderComponent, | ||
X as BannerComponent, | ||
G as ButtonComponent, | ||
Y as ComponentBasePage, | ||
f as DialogComponent, | ||
j as DropdownComponent, | ||
K as DropdownComponentV3, | ||
st as AlertComponent, | ||
it as AppHeaderComponent, | ||
Y as BannerComponent, | ||
U as ButtonComponent, | ||
f as ComponentBasePage, | ||
j as DialogComponent, | ||
K as DropdownComponent, | ||
q as DropdownComponentV3, | ||
S as FieldHelpTextComponent, | ||
A as FieldLabelComponent, | ||
at as FormCardComponent, | ||
et as FormRowComponent, | ||
q as IncludeExcludeComponent, | ||
U as InlineCopyComponent, | ||
z as InputsComponent, | ||
tt as MultiBarComponent, | ||
nt as SearchComponent, | ||
M as SnackbarComponent, | ||
Z as TableComponent, | ||
J as TabsComponent, | ||
Q as TooltipComponent | ||
nt as FormCardComponent, | ||
at as FormRowComponent, | ||
z as IncludeExcludeComponent, | ||
V as InlineCopyComponent, | ||
J as InputsComponent, | ||
et as MultiBarComponent, | ||
ot as SearchComponent, | ||
tt as SnackbarComponent, | ||
M as TableComponent, | ||
Q as TabsComponent, | ||
Z as TooltipComponent | ||
}; |
@@ -200,3 +200,4 @@ export declare enum IncludeExcludeTestIdModifiers { | ||
APP_KEY = "ah-app-key", | ||
APP_PLATFORM = "ah-app-platform" | ||
APP_PLATFORM = "ah-app-platform", | ||
AB_ICON = "ah-ab-icon" | ||
} | ||
@@ -203,0 +204,0 @@ export declare enum InlineCopyTestIdModifiers { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
169412
2543