You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@ironsource/shared-ui-e2e

Package Overview
Dependencies
Maintainers
2
Versions
384
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ironsource/shared-ui-e2e - npm Package Compare versions

Comparing version

to
2.1.5-rc.1

2

package.json
{
"name": "@ironsource/shared-ui-e2e",
"private": false,
"version": "2.1.5-rc.0",
"version": "2.1.5-rc.1",
"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 || {}), 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 || {}), 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 || {}), R = /* @__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))(R || {}), 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 || {});
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 || {}), 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 || {}), 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 || {}), 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 || {}), h = /* @__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))(h || {}), R = /* @__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))(R || {}), 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) => {

@@ -114,4 +114,4 @@ const e = new URLSearchParams(a).toString();

}
async getDropdownButtonContent(t) {
await this.page.getByTestId(n(t, c.BUTTON_CONTENT)).textContent();
getDropdownButtonContent(t) {
return this.page.getByTestId(n(t, c.BUTTON_CONTENT)).textContent();
}

@@ -582,17 +582,17 @@ async openDropdownComponent({ testId: t }) {

async waitForComponent({ testId: t }) {
const e = `[data-testid='${t}-${h.CONTAINER}']`;
const e = `[data-testid='${t}-${u.CONTAINER}']`;
await this.page.waitForSelector(e);
}
getSnackbarTitle({ testId: t }) {
return this.page.getByTestId(n(t, h.TITLE)).textContent();
return this.page.getByTestId(n(t, u.TITLE)).textContent();
}
async closeSnackbar({ testId: t }) {
await this.page.getByTestId(n(t, h.CLOSE)).locator(".icon-name--x").click();
await this.page.getByTestId(n(t, u.CLOSE)).locator(".icon-name--x").click();
}
async waitForSnackbarToBeClosed({ testId: t }) {
const e = `[data-testid='${t}-${h.CONTAINER}']`;
const e = `[data-testid='${t}-${u.CONTAINER}']`;
await this.page.waitForSelector(e, { state: "detached" });
}
getSnackbarDescription({ testId: t }) {
return this.page.getByTestId(n(t, h.MESSAGE)).textContent();
return this.page.getByTestId(n(t, u.MESSAGE)).textContent();
}

@@ -603,3 +603,3 @@ async clickOnActionButton({ testId: t, buttonName: e }) {

buttonName: e
}), p = `[data-testid='${t}-${h.ACTION_BUTTON}-${o}']`;
}), p = `[data-testid='${t}-${u.ACTION_BUTTON}-${o}']`;
await this.page.click(p);

@@ -611,3 +611,3 @@ }

}) {
return (await this.page.getByTestId(n(t, h.CONTAINER)).locator(".font-button").allTextContents()).indexOf(e);
return (await this.page.getByTestId(n(t, u.CONTAINER)).locator(".font-button").allTextContents()).indexOf(e);
}

@@ -667,10 +667,10 @@ }

async waitForComponent({ testId: t }) {
const e = `[data-testid='${t}-${u.CONTENT}']`;
const e = `[data-testid='${t}-${h.CONTENT}']`;
await this.page.waitForSelector(e);
}
getCardTitle({ testId: t }) {
return this.page.getByTestId(n(t, u.TITLE)).textContent();
return this.page.getByTestId(n(t, h.TITLE)).textContent();
}
getCardContentText({ testId: t }) {
return this.page.getByTestId(n(t, u.CONTENT)).textContent();
return this.page.getByTestId(n(t, h.CONTENT)).textContent();
}

@@ -681,6 +681,6 @@ getCardLabelText({ testId: t }) {

async clickOnSaveButton({ testId: t }) {
await this.page.getByTestId(n(t, u.SAVE_BUTTON)).click();
await this.page.getByTestId(n(t, h.SAVE_BUTTON)).click();
}
async clickOnCancelButton({ testId: t }) {
await this.page.getByTestId(n(t, u.CANCEL_BUTTON)).click();
await this.page.getByTestId(n(t, h.CANCEL_BUTTON)).click();
}

@@ -694,3 +694,3 @@ isSaveButtonLoading({ testId: t }) {

}) {
(await this.page.getByTestId(n(t, u.CONTENT)).locator(
(await this.page.getByTestId(n(t, h.CONTENT)).locator(
`[data-testid='ad-units-form-card-form-card-content'] input[type='${e}']`

@@ -697,0 +697,0 @@ ).all()).forEach((p) => p.clear());

@@ -10,3 +10,3 @@ import { Page } from '@playwright/test';

selectDropdownOptionByIndex({ testId, index }: SelectionByIndex): Promise<void>;
getDropdownButtonContent(testId: string): Promise<void>;
getDropdownButtonContent(testId: string): Promise<string>;
openDropdownComponent({ testId }: {

@@ -13,0 +13,0 @@ testId: string;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet