@bigbinary/neeto-playwright-commons 1.22.49 → 1.23.0

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.d.ts CHANGED
@@ -5274,9 +5274,6 @@ declare const COMMON_SELECTORS: {
5274
5274
  selectOptionError: (option: string) => string;
5275
5275
  button: (label: string) => string;
5276
5276
  customDropDownMenu: (label?: string) => string;
5277
- columnSortableItem: string;
5278
- columnsDropdownIcon: string;
5279
- columnDragHandle: string;
5280
5277
  };
5281
5278
  /**
5282
5279
  *
@@ -7249,7 +7246,6 @@ declare const tableUtils: {
7249
7246
  * @endexample
7250
7247
  */
7251
7248
  verifyFreezeColumnAction: (page: Page, t: TFunction) => Promise<void>;
7252
- verifyReorderColumns: (page: Page) => Promise<void>;
7253
7249
  };
7254
7250
  interface BreadcrumbTitleAndRoute {
7255
7251
  title: string;
package/index.js CHANGED
@@ -4504,9 +4504,6 @@ const COMMON_SELECTORS = {
4504
4504
  selectOptionError: (option) => `${hyphenate(option)}-select-error`,
4505
4505
  button: (label) => `${hyphenate(label)}-button`,
4506
4506
  customDropDownMenu: (label = "nui") => `${hyphenate(label)}-select-menu`,
4507
- columnSortableItem: "column-sortable-item",
4508
- columnsDropdownIcon: "columns-dropdown-icon",
4509
- columnDragHandle: "column-drag-handle",
4510
4507
  };
4511
4508
 
4512
4509
  const THANK_YOU_SELECTORS = {
@@ -123084,47 +123081,11 @@ const validateColumnNames = async (columnHeaders, columnOffset, originalColumnNa
123084
123081
  await expect(columnHeaders[i]).toHaveText(expectedName);
123085
123082
  }
123086
123083
  };
123087
- const verifyReorderColumns = async (page) => {
123088
- const columnDropdownButton = page.getByTestId(COMMON_SELECTORS.columnsDropdownIcon);
123089
- const columnSearchInput = page.getByTestId(COMMON_SELECTORS.columnsSearchInput);
123090
- const columnSortableItems = page.getByTestId(COMMON_SELECTORS.columnSortableItem);
123091
- await columnDropdownButton.click();
123092
- await expect(columnSearchInput).toBeVisible({ timeout: 10000 });
123093
- let columnNames = await columnSortableItems.allTextContents();
123094
- const shuffledColumnOrder = [...columnNames].sort(() => Math.random() - 0.5);
123095
- for (let columnIndex = 0; columnIndex < shuffledColumnOrder.length; columnIndex++) {
123096
- const shuffledColumnName = shuffledColumnOrder[columnIndex];
123097
- const currentColumnName = columnNames[columnIndex];
123098
- if (currentColumnName === shuffledColumnName)
123099
- continue;
123100
- const currentColumnHandle = columnSortableItems
123101
- .filter({ hasText: new RegExp(`^${currentColumnName}$`) })
123102
- .getByTestId(COMMON_SELECTORS.columnDragHandle);
123103
- const shuffledColumnHandle = columnSortableItems
123104
- .filter({ hasText: new RegExp(`^${shuffledColumnName}$`) })
123105
- .getByTestId(COMMON_SELECTORS.columnDragHandle);
123106
- await shuffledColumnHandle.dragTo(currentColumnHandle);
123107
- await expect
123108
- .poll(async () => (await columnSortableItems.allTextContents())[columnIndex], {
123109
- timeout: 10000,
123110
- })
123111
- .toBe(shuffledColumnName);
123112
- columnNames = await columnSortableItems.allTextContents();
123113
- }
123114
- expect(columnNames).toStrictEqual(shuffledColumnOrder);
123115
- await columnDropdownButton.click();
123116
- await expect(columnSearchInput).toBeHidden({ timeout: 10000 });
123117
- const tableHeaders = await page.getByRole("columnheader").allTextContents();
123118
- const expectedTableHeaders = shuffledColumnOrder.filter(columnName => tableHeaders.includes(columnName));
123119
- const actualTableHeaders = tableHeaders.filter(columnName => shuffledColumnOrder.includes(columnName));
123120
- expect(actualTableHeaders).toStrictEqual(expectedTableHeaders);
123121
- };
123122
123084
  const tableUtils = {
123123
123085
  verifyTableColumnsExistence,
123124
123086
  assertColumnHeaderVisibility,
123125
123087
  toggleColumnCheckboxAndVerifyVisibility,
123126
123088
  verifyFreezeColumnAction,
123127
- verifyReorderColumns,
123128
123089
  };
123129
123090
 
123130
123091
  /**