@bigbinary/neeto-playwright-commons 1.26.0 → 1.26.1

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.
package/index.cjs.js CHANGED
@@ -5229,7 +5229,9 @@ const SIGNUP_SELECTORS = {
5229
5229
  subdomainNameTextField: "signup-organization-subdomain-text-field",
5230
5230
  subdomainError: "subdomain-input-error",
5231
5231
  tryFreeButton: "neeto-auth-signup-link",
5232
- unregisterdEmailError: "unregisterd-email-error",
5232
+ /** @deprecated Use unregisteredEmailError instead. */
5233
+ unregisterdEmailError: "unregistered-email-error",
5234
+ unregisteredEmailError: "unregistered-email-error",
5233
5235
  organization: (organizationName) => `${organizationName}-organization-item`,
5234
5236
  };
5235
5237
 
@@ -113615,8 +113617,8 @@ class EmbedBase {
113615
113617
  };
113616
113618
  this.copyEmbedScript = async (embedType) => {
113617
113619
  await this.selectEmbedType(embedType);
113618
- await this.page.getByTestId(COMMON_SELECTORS.copyButton).click();
113619
- return await this.page.evaluate(() => navigator.clipboard.readText());
113620
+ await this.page.getByTestId(COMMON_SELECTORS.copyToClipboardButton).click();
113621
+ return await getClipboardContent(this.page);
113620
113622
  };
113621
113623
  this.selectEmbedType = async (embedType) => {
113622
113624
  await this.page.locator(EMBED_SELECTORS.embedSelector(embedType)).click();
@@ -113787,7 +113789,6 @@ const TOASTR_MESSAGES = {
113787
113789
  };
113788
113790
  const ZAPIER_LIMIT_EXHAUSTED_MESSAGE = "Zapier free task limit is exhausted. Test will be aborted";
113789
113791
  const EMOJI_LABEL = "thumbs up";
113790
- const SELECT_COUNTRY = "Select country";
113791
113792
  const GOOGLE_CALENDAR_DATE_FORMAT = "YYYY/M/D";
113792
113793
  const MICROSOFT_LOGIN_TEXTS = {
113793
113794
  passwordInput: "Enter the password",
@@ -118200,7 +118201,7 @@ class OrganizationPage {
118200
118201
  };
118201
118202
  this.fillEmailAndSubmit = async (email, loginTimeout) => {
118202
118203
  await this.page.getByTestId(LOGIN_SELECTORS.emailTextField).fill(email);
118203
- const unregisteredEmailError = this.page.getByTestId(SIGNUP_SELECTORS.unregisterdEmailError);
118204
+ const unregisteredEmailError = this.page.getByTestId(SIGNUP_SELECTORS.unregisteredEmailError);
118204
118205
  await test.expect(async () => {
118205
118206
  await this.page.getByTestId(LOGIN_SELECTORS.submitButton).click();
118206
118207
  await this.neetoPlaywrightUtilities.waitForPageLoad();
@@ -118300,7 +118301,7 @@ class OrganizationPage {
118300
118301
  });
118301
118302
  };
118302
118303
  this.changeCountry = async (country) => {
118303
- const countrySelector = this.page.getByTestId(COMMON_SELECTORS.customSelectValueContainer(SELECT_COUNTRY));
118304
+ const countrySelector = this.page.getByTestId(COMMON_SELECTORS.customSelectValueContainer("country"));
118304
118305
  await countrySelector.click();
118305
118306
  await countrySelector.pressSequentially(country);
118306
118307
  await this.page.getByTestId(COMMON_SELECTORS.selectOption(country)).click();
@@ -124161,6 +124162,7 @@ var _a;
124161
124162
  process.env.TEST_ENV = (_a = process.env.TEST_ENV) !== null && _a !== void 0 ? _a : ENVIRONMENT.development;
124162
124163
  const env = dotenv.config({
124163
124164
  path: `./e2e/config/.env.${process.env.TEST_ENV}`,
124165
+ quiet: true,
124164
124166
  });
124165
124167
  dotenvExpand.expand(env);
124166
124168
  if (require$$0__namespace.existsSync("./e2e/config/.env.local")) {
@@ -124388,7 +124390,6 @@ exports.ROLES_SELECTORS = ROLES_SELECTORS;
124388
124390
  exports.ROUTES = ROUTES;
124389
124391
  exports.RoleApis = RoleApis;
124390
124392
  exports.RolesPage = RolesPage;
124391
- exports.SELECT_COUNTRY = SELECT_COUNTRY;
124392
124393
  exports.SIGNUP_SELECTORS = SIGNUP_SELECTORS;
124393
124394
  exports.SINGULAR = SINGULAR;
124394
124395
  exports.SLACK_DATA_QA_SELECTORS = SLACK_DATA_QA_SELECTORS;