@bigbinary/neeto-playwright-commons 1.11.18 → 1.11.20

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.
@@ -32,6 +32,8 @@ const commonEslintConfig = ({
32
32
  },
33
33
  plugins: ["@typescript-eslint", "import"],
34
34
  rules: {
35
+ "@bigbinary/neeto/use-dayjs-from-neeto-commons-fronted": "off",
36
+ "@bigbinary/neeto/use-array-methods": "off",
35
37
  "@typescript-eslint/no-floating-promises": "error",
36
38
  "no-unused-vars": "off",
37
39
  "@typescript-eslint/no-unused-vars": ["error"],
package/index.cjs.js CHANGED
@@ -365,7 +365,6 @@ const COMMON_SELECTORS = {
365
365
  modalHeader: "modal-header",
366
366
  nameInputError: "name-input-error",
367
367
  selectContainer: "nui-select-container",
368
- selectValueContainer: "nui-select-value-container",
369
368
  dropdownMenu: "nui-select-menu",
370
369
  sidebarToggle: "neeto-molecules-sidebar-toggler",
371
370
  subheader: "subheader",
@@ -399,6 +398,7 @@ const COMMON_SELECTORS = {
399
398
  navigationHeader: "navigation-header",
400
399
  buttonSpinner: ".neeto-ui-btn__spinner",
401
400
  customSelectValueContainer: (label = "nui") => `${hyphenize(label)}-select-value-container`,
401
+ customDropDownMenu: (label = "nui") => `${hyphenize(label)}-select-menu`,
402
402
  };
403
403
 
404
404
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -3599,23 +3599,25 @@ class CustomCommands {
3599
3599
  })}`;
3600
3600
  return await this.request[method](formattedUrl, requestOptions);
3601
3601
  };
3602
- this.selectOptionFromDropdown = async ({ selectValueContainer = COMMON_SELECTORS.selectValueContainer, selectMenu = COMMON_SELECTORS.dropdownMenu, value, page = this.page, options = {}, }) => {
3602
+ this.selectOptionFromDropdown = async ({ label = "nui", value, page = this.page, options = {}, }) => {
3603
+ const selectValueContainerSelector = COMMON_SELECTORS.customSelectValueContainer(label);
3604
+ const selectMenuSelector = COMMON_SELECTORS.customDropDownMenu(label);
3603
3605
  Object.assign({
3604
3606
  visibilityTimeout: 2000,
3605
3607
  textAssertionTimeout: 1000,
3606
3608
  retryTimeout: 20000,
3607
3609
  }, options);
3608
3610
  await test$1.expect(async () => {
3609
- await page.getByTestId(selectValueContainer).click();
3610
- await test$1.expect(page.getByTestId(selectMenu)).toBeVisible({
3611
+ await page.getByTestId(selectValueContainerSelector).click();
3612
+ await test$1.expect(page.getByTestId(selectMenuSelector)).toBeVisible({
3611
3613
  timeout: options.visibilityTimeout,
3612
3614
  });
3613
3615
  await page.keyboard.type(value);
3614
3616
  await page
3615
- .getByTestId(selectMenu)
3617
+ .getByTestId(selectMenuSelector)
3616
3618
  .getByText(value, { exact: true })
3617
3619
  .click();
3618
- await test$1.expect(page.getByTestId(selectValueContainer)).toContainText(value, { timeout: options.textAssertionTimeout });
3620
+ await test$1.expect(page.getByTestId(selectValueContainerSelector)).toContainText(value, { timeout: options.textAssertionTimeout });
3619
3621
  }).toPass({ timeout: options.retryTimeout });
3620
3622
  };
3621
3623
  this.verifyFieldValue = values => {
@@ -15481,8 +15483,6 @@ class SlackPage extends IntegrationBase {
15481
15483
  })).toBeVisible();
15482
15484
  await this.neetoPlaywrightUtilities.selectOptionFromDropdown({
15483
15485
  value: channelToConfigure,
15484
- selectValueContainer: COMMON_SELECTORS.selectValueContainer,
15485
- selectMenu: COMMON_SELECTORS.dropdownMenu,
15486
15486
  });
15487
15487
  await this.page
15488
15488
  .getByRole("button", { name: this.t("neetoSlack.common.continue") })
@@ -16794,7 +16794,7 @@ class OrganizationPage {
16794
16794
  });
16795
16795
  await this.page.getByTestId(SIGNUP_SELECTORS.profileSubmitButton).click();
16796
16796
  await submitProfile;
16797
- await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.pageLoader)).toBeHidden();
16797
+ await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.pageLoader)).toBeHidden({ timeout: 15000 });
16798
16798
  };
16799
16799
  this.loginAndOnboard = async ({ email, firstName, lastName, country, handleOnboarding, baseURL = process.env.BASE_URL, }) => {
16800
16800
  await this.page.goto(`${baseURL}/${ROUTES.admin}`);