# Test info

- Name: UI case for client tests >> TC_SWR_005 - Verify feature sort shared requests
- Location: /root/code/portal-automation-test/tests/share-with-me-request/function.spec.ts:74:7

# Error details

```
Error: Timed out 10000ms waiting for expect(locator).toHaveURL(expected)

Locator: locator(':root')
Expected pattern: /.*sort=created_by_business_id&direction=asc/
Received string:  "https://qa.loprx.com/shared/requests?sort=created_by_business_name&direction=asc"
Call log:
  - expect.toHaveURL with timeout 10000ms
  - waiting for locator(':root')
    14 × locator resolved to <html lang="en" class=" ">…</html>
       - unexpected value "https://qa.loprx.com/shared/requests?sort=created_by_business_name&direction=asc"

    at /root/code/portal-automation-test/tests/share-with-me-request/function.spec.ts:86:44
```

# Page snapshot

```yaml
- complementary:
  - img
  - link "WellCare Pharmacy12321@@@@ Portal QA":
    - /url: /
    - paragraph: WellCare Pharmacy12321@@@@
    - paragraph: Portal QA
  - list:
    - listitem:
      - link "Home":
        - /url: https://qa.loprx.com
        - img
        - text: Home
    - listitem:
      - link "Case":
        - /url: https://qa.loprx.com/cases
        - img
        - text: Case
    - listitem:
      - link "Request":
        - /url: https://qa.loprx.com/requests
        - img
        - text: Request
    - listitem:
      - link "Patient":
        - /url: https://qa.loprx.com/clients
        - img
        - text: Patient
    - listitem:
      - button "Business/Contact":
        - img
        - text: Business/Contact
    - listitem:
      - button "Inbox/Sent":
        - img
        - text: Inbox/Sent
    - listitem:
      - button "Settings":
        - img
        - text: Settings
  - list:
    - listitem:
      - button "Shared with me":
        - img
        - text: Shared with me
      - link "Case":
        - /url: https://qa.loprx.com/shared/cases
        - img
        - text: Case
      - link "Request":
        - /url: https://qa.loprx.com/shared/requests
        - img
        - text: Request
- banner:
  - button:
    - img
  - button [disabled]:
    - img
  - img
  - text: Tri01 Duc shared details regarding Auto_YXQ Test Letter of Protection. Read it now. 11 hours ago
  - img
  - text: Son HaiBon Phan assigned a request to you 11 hours ago
  - img
  - text: Son HaiBon Phan assigned a case to you 55 minutes ago
  - img
  - img
  - img
  - paragraph: No notifications yet
  - paragraph: When you get notifications, they'll show up here
  - button "Refresh"
  - list:
    - listitem:
      - img
      - paragraph: Pause notifications...
      - list:
        - listitem: For 30 minutes
        - listitem: For 1 hour
        - listitem: For 2 hours
        - listitem: Until tomorrow
    - listitem:
      - img
    - listitem:
      - img
    - listitem:
      - img
    - listitem:
      - img
    - listitem:
      - img
    - listitem:
      - img
  - img
  - button "2 Cart":
    - img
    - text: 2 Cart
  - text: Feedback
  - img
  - link "Open user menu":
    - /url: "#"
    - text: Minh
- img
- text: Shared Requests
- img
- heading "Manage" [level=2]:
  - text: Manage
  - img
- img
- text: Show
- textbox: "10"
- text: entries
- button "Filter":
  - img
  - text: Filter
- img
- textbox "Search..."
- table:
  - rowgroup:
    - 'row "Pin Request #  Request Type  Client Name  From  Directed To  Status  Status Details  Updated "':
      - cell "Pin"
      - 'cell "Request # "'
      - cell "Request Type "
      - cell "Client Name "
      - cell "From "
      - cell "Directed To "
      - cell "Status "
      - cell "Status Details "
      - cell "Updated "
  - rowgroup:
    - row "340673 Medical Bill Test Case Share (Portal-Auto-Lawyer) WellCare Pharmacy Open Awaiting 12/07/2025":
      - cell:
        - img
      - cell "340673":
        - link "340673":
          - /url: https://qa.loprx.com/shared/requests/340673
      - cell "Medical Bill":
        - link "Medical Bill":
          - /url: https://qa.loprx.com/shared/requests/340673
          - img
          - text: Medical Bill
      - cell "Test Case Share":
        - link "Test Case Share":
          - /url: https://qa.loprx.com/shared/requests/340673
      - cell "(Portal-Auto-Lawyer)":
        - link "(Portal-Auto-Lawyer)":
          - /url: https://qa.loprx.com/shared/requests/340673
      - cell "WellCare Pharmacy":
        - link "WellCare Pharmacy":
          - /url: https://qa.loprx.com/shared/requests/340673
      - cell "Open":
        - link "Open":
          - /url: https://qa.loprx.com/shared/requests/340673
      - cell "Awaiting":
        - link "Awaiting":
          - /url: https://qa.loprx.com/shared/requests/340673
      - cell "12/07/2025":
        - link "12/07/2025":
          - /url: https://qa.loprx.com/shared/requests/340673
    - row "584474 Letter of Protection John Doe (Portal-auto-Pharmacy) WellCare Pharmacy Open Awaiting 09/11/2025":
      - cell:
        - img
      - cell "584474":
        - link "584474":
          - /url: https://qa.loprx.com/shared/requests/584474
      - cell "Letter of Protection":
        - link "Letter of Protection":
          - /url: https://qa.loprx.com/shared/requests/584474
          - img
          - text: Letter of Protection
      - cell "John Doe":
        - link "John Doe":
          - /url: https://qa.loprx.com/shared/requests/584474
      - cell "(Portal-auto-Pharmacy)":
        - link "(Portal-auto-Pharmacy)":
          - /url: https://qa.loprx.com/shared/requests/584474
      - cell "WellCare Pharmacy":
        - link "WellCare Pharmacy":
          - /url: https://qa.loprx.com/shared/requests/584474
      - cell "Open":
        - link "Open":
          - /url: https://qa.loprx.com/shared/requests/584474
      - cell "Awaiting":
        - link "Awaiting":
          - /url: https://qa.loprx.com/shared/requests/584474
      - cell "09/11/2025":
        - link "09/11/2025":
          - /url: https://qa.loprx.com/shared/requests/584474
    - row "351295 Medical Bill *&(_tNM Test26 A Taylor Law Firm WellCare Pharmacy Open Inquiry 08/24/2025":
      - cell:
        - img
      - cell "351295":
        - link "351295":
          - /url: https://qa.loprx.com/requests/351295
      - cell "Medical Bill":
        - link "Medical Bill":
          - /url: https://qa.loprx.com/requests/351295
          - img
          - text: Medical Bill
      - cell "*&(_tNM Test26":
        - link "*&(_tNM Test26":
          - /url: https://qa.loprx.com/requests/351295
      - cell "A Taylor Law Firm":
        - link "A Taylor Law Firm":
          - /url: https://qa.loprx.com/requests/351295
      - cell "WellCare Pharmacy":
        - link "WellCare Pharmacy":
          - /url: https://qa.loprx.com/requests/351295
      - cell "Open":
        - link "Open":
          - /url: https://qa.loprx.com/requests/351295
      - cell "Inquiry":
        - link "Inquiry":
          - /url: https://qa.loprx.com/requests/351295
      - cell "08/24/2025":
        - link "08/24/2025":
          - /url: https://qa.loprx.com/requests/351295
    - row "964577 Letter of Protection &*()_E0S Test27 A Taylor Law Firm Son35 Pharmacy Closed LoP on File 09/22/2025":
      - cell:
        - img
      - cell "964577":
        - link "964577":
          - /url: https://qa.loprx.com/shared/requests/964577
      - cell "Letter of Protection":
        - link "Letter of Protection":
          - /url: https://qa.loprx.com/shared/requests/964577
          - img
          - text: Letter of Protection
      - cell "&*()_E0S Test27":
        - link "&*()_E0S Test27":
          - /url: https://qa.loprx.com/shared/requests/964577
      - cell "A Taylor Law Firm":
        - link "A Taylor Law Firm":
          - /url: https://qa.loprx.com/shared/requests/964577
      - cell "Son35 Pharmacy":
        - link "Son35 Pharmacy":
          - /url: https://qa.loprx.com/shared/requests/964577
      - cell "Closed":
        - link "Closed":
          - /url: https://qa.loprx.com/shared/requests/964577
      - cell "LoP on File":
        - link "LoP on File":
          - /url: https://qa.loprx.com/shared/requests/964577
      - cell "09/22/2025":
        - link "09/22/2025":
          - /url: https://qa.loprx.com/shared/requests/964577
    - row "734960 Medical Bill Tom Harland A Taylor Law Firm WellCare Pharmacy Open Inquiry 11/30/2025":
      - cell:
        - img
      - cell "734960":
        - link "734960":
          - /url: https://qa.loprx.com/requests/734960
      - cell "Medical Bill":
        - link "Medical Bill":
          - /url: https://qa.loprx.com/requests/734960
          - img
          - text: Medical Bill
      - cell "Tom Harland":
        - link "Tom Harland":
          - /url: https://qa.loprx.com/requests/734960
      - cell "A Taylor Law Firm":
        - link "A Taylor Law Firm":
          - /url: https://qa.loprx.com/requests/734960
      - cell "WellCare Pharmacy":
        - link "WellCare Pharmacy":
          - /url: https://qa.loprx.com/requests/734960
      - cell "Open":
        - link "Open":
          - /url: https://qa.loprx.com/requests/734960
      - cell "Inquiry":
        - link "Inquiry":
          - /url: https://qa.loprx.com/requests/734960
      - cell "11/30/2025":
        - link "11/30/2025":
          - /url: https://qa.loprx.com/requests/734960
    - row "308713 Prescription Mr Jangoe Tai01 Law Firm WellCare Pharmacy Open Inquiry 08/01/2025":
      - cell:
        - img
      - cell "308713":
        - link "308713":
          - /url: https://qa.loprx.com/requests/308713
      - cell "Prescription":
        - link "Prescription":
          - /url: https://qa.loprx.com/requests/308713
          - img
          - text: Prescription
      - cell "Mr Jangoe":
        - link "Mr Jangoe":
          - /url: https://qa.loprx.com/requests/308713
      - cell "Tai01 Law Firm":
        - link "Tai01 Law Firm":
          - /url: https://qa.loprx.com/requests/308713
      - cell "WellCare Pharmacy":
        - link "WellCare Pharmacy":
          - /url: https://qa.loprx.com/requests/308713
      - cell "Open":
        - link "Open":
          - /url: https://qa.loprx.com/requests/308713
      - cell "Inquiry":
        - link "Inquiry":
          - /url: https://qa.loprx.com/requests/308713
      - cell "08/01/2025":
        - link "08/01/2025":
          - /url: https://qa.loprx.com/requests/308713
    - row "464242 Medical Bill Test1122 Name The Vu Law Firm WellCare Pharmacy Open Inquiry 09/25/2025":
      - cell:
        - img
      - cell "464242":
        - link "464242":
          - /url: https://qa.loprx.com/requests/464242
      - cell "Medical Bill":
        - link "Medical Bill":
          - /url: https://qa.loprx.com/requests/464242
          - img
          - text: Medical Bill
      - cell "Test1122 Name":
        - link "Test1122 Name":
          - /url: https://qa.loprx.com/requests/464242
      - cell "The Vu Law Firm":
        - link "The Vu Law Firm":
          - /url: https://qa.loprx.com/requests/464242
      - cell "WellCare Pharmacy":
        - link "WellCare Pharmacy":
          - /url: https://qa.loprx.com/requests/464242
      - cell "Open":
        - link "Open":
          - /url: https://qa.loprx.com/requests/464242
      - cell "Inquiry":
        - link "Inquiry":
          - /url: https://qa.loprx.com/requests/464242
      - cell "09/25/2025":
        - link "09/25/2025":
          - /url: https://qa.loprx.com/requests/464242
    - row "773076 Letter of Protection Mr Jangie The Vu Law Firm Missing Open Awaiting 08/22/2025":
      - cell:
        - img
      - cell "773076":
        - link "773076":
          - /url: https://qa.loprx.com/shared/requests/773076
      - cell "Letter of Protection":
        - link "Letter of Protection":
          - /url: https://qa.loprx.com/shared/requests/773076
          - img
          - text: Letter of Protection
      - cell "Mr Jangie":
        - link "Mr Jangie":
          - /url: https://qa.loprx.com/shared/requests/773076
      - cell "The Vu Law Firm":
        - link "The Vu Law Firm":
          - /url: https://qa.loprx.com/shared/requests/773076
      - cell "Missing":
        - link "Missing":
          - /url: https://qa.loprx.com/shared/requests/773076
        - img
      - cell "Open":
        - link "Open":
          - /url: https://qa.loprx.com/shared/requests/773076
      - cell "Awaiting":
        - link "Awaiting":
          - /url: https://qa.loprx.com/shared/requests/773076
      - cell "08/22/2025":
        - link "08/22/2025":
          - /url: https://qa.loprx.com/shared/requests/773076
    - row "407846 Letter of Protection Jason Phan,P The Vu Law Firm WellCare Pharmacy Open Inquiry 06/16/2025":
      - cell:
        - img
      - cell "407846":
        - link "407846":
          - /url: https://qa.loprx.com/requests/407846
      - cell "Letter of Protection":
        - link "Letter of Protection":
          - /url: https://qa.loprx.com/requests/407846
          - img
          - text: Letter of Protection
      - cell "Jason Phan,P":
        - link "Jason Phan,P":
          - /url: https://qa.loprx.com/requests/407846
      - cell "The Vu Law Firm":
        - link "The Vu Law Firm":
          - /url: https://qa.loprx.com/requests/407846
      - cell "WellCare Pharmacy":
        - link "WellCare Pharmacy":
          - /url: https://qa.loprx.com/requests/407846
      - cell "Open":
        - link "Open":
          - /url: https://qa.loprx.com/requests/407846
      - cell "Inquiry":
        - link "Inquiry":
          - /url: https://qa.loprx.com/requests/407846
      - cell "06/16/2025":
        - link "06/16/2025":
          - /url: https://qa.loprx.com/requests/407846
    - row "221618 Medical Bill Test1122 Name WellCare Pharmacy12321@@@@ Son35 Pharmacy Open Awaiting 12/07/2025":
      - cell:
        - img
      - cell "221618":
        - link "221618":
          - /url: https://qa.loprx.com/requests/221618
      - cell "Medical Bill":
        - link "Medical Bill":
          - /url: https://qa.loprx.com/requests/221618
          - img
          - text: Medical Bill
      - cell "Test1122 Name":
        - link "Test1122 Name":
          - /url: https://qa.loprx.com/requests/221618
      - cell "WellCare Pharmacy12321@@@@":
        - link "WellCare Pharmacy12321@@@@":
          - /url: https://qa.loprx.com/requests/221618
      - cell "Son35 Pharmacy":
        - link "Son35 Pharmacy":
          - /url: https://qa.loprx.com/requests/221618
      - cell "Open":
        - link "Open":
          - /url: https://qa.loprx.com/requests/221618
      - cell "Awaiting":
        - link "Awaiting":
          - /url: https://qa.loprx.com/requests/221618
      - cell "12/07/2025":
        - link "12/07/2025":
          - /url: https://qa.loprx.com/requests/221618
- paragraph: Showing 1 to 10 of 17 entries
- list:
  - listitem:
    - img
    - text: Prev
  - listitem: "1"
  - listitem: "2"
  - listitem:
    - text: Next
    - img
```

# Test source

```ts
   1 | import { test, expect } from '../../fixtures/index';
   2 | import { LoginPage } from '../../pom/login.page';
   3 | import { SharedRequestPage } from '../../pom/share-request.page';
   4 | import { Mail } from '../../pom/utils/mail.page';
   5 | import { getTodayInTimeZone } from '../../pom/utils/utlisFunc';
   6 | import { randomString } from '../../utils/array';
   7 | import { takeScreenshot, verifyScreenshot } from '../../utils/screenshot';
   8 |
   9 | test.describe('UI case for client tests', async () => {
   10 |   let loginPage: LoginPage;
   11 |   let sharedRequestPage: SharedRequestPage;
   12 |
   13 |   test.beforeEach(async ({ page, conf }) => {
   14 |     loginPage = new LoginPage(page);
   15 |     sharedRequestPage = new SharedRequestPage(page);
   16 |
   17 |     await loginPage.open();
   18 |     await loginPage.login(conf.data.username, conf.data.password);
   19 |     await expect(loginPage.baseLoc.dashboardContainer).toBeVisible();
   20 |
   21 |     await sharedRequestPage.open();
   22 |   });
   23 |
   24 |   test('TC_SWR_003 - Verify feature Search shared requests', {
   25 |     tag: ['@TC_SWR_003', '@share-request', '@function']
   26 |   }, async ({ conf }) => {
   27 |     for (const [key, value] of Object.entries(conf.data.search_field as Record<string, any>)) {
   28 |       await test.step(`Search with invalid ${key}`, async () => {
   29 |         await sharedRequestPage.search(value.invalid_data);
   30 |         await expect(sharedRequestPage.dashboardLoc.table.noResult).toBeVisible();
   31 |       });
   32 |     }
   33 |
   34 |     for (const [key, value] of Object.entries(conf.data.search_field as Record<string, any>)) {
   35 |       await test.step(`Search with valid ${key}`, async () => {
   36 |         await sharedRequestPage.search(value.valid_data);
   37 |         if (key === 'doi' || key === 'dob' || key === 'doi_full_date' || key === 'doi_month_day_numeric' || key === 'case') {
   38 |           expect(async () => {
   39 |             const rowCount = await sharedRequestPage.getRowCount();
   40 |             expect(rowCount).toBeGreaterThan(0);
   41 |             await expect(sharedRequestPage.dashboardLoc.table.noResult).not.toBeVisible();
   42 |           }).toPass();
   43 |         } else {
   44 |           await expect(sharedRequestPage.dashboardLoc.table.itemInRow(value.valid_data).first()).toBeVisible();
   45 |         }
   46 |       });
   47 |     }
   48 |   });
   49 |
   50 |   test('TC_SWR_004 - Verify when change entries per page', {
   51 |     tag: ['@TC_SWR_004', '@share-request', '@function']
   52 |   }, async ({ page }) => {
   53 |     await test.step('Select "10" entries per page', async () => {
   54 |       await sharedRequestPage.dashboardLoc.search.perPage.input.fill('10');
   55 |       await sharedRequestPage.page.keyboard.press('Enter');
   56 |
   57 |       await expect(async () => {
   58 |         const rowCount = await sharedRequestPage.getTableRowCount();
   59 |         expect(rowCount).toBeLessThanOrEqual(10);
   60 |       }).toPass();
   61 |     });
   62 |
   63 |     await test.step('Select "25" entries per page', async () => {
   64 |       await sharedRequestPage.dashboardLoc.search.perPage.input.fill('25');
   65 |       await sharedRequestPage.page.keyboard.press('Enter');
   66 |
   67 |       await expect(async () => {
   68 |         const rowCount = await sharedRequestPage.getTableRowCount();
   69 |         expect(rowCount).toBeLessThanOrEqual(25);
   70 |       }).toPass();
   71 |     });
   72 |   });
   73 |
   74 |   test('TC_SWR_005 - Verify feature sort shared requests', {
   75 |     tag: ['@TC_SWR_005', '@share-request', '@function']
   76 |   }, async ({ page }) => {
   77 |     const displayNames = ['Request #', 'Client Name', 'From', 'Directed To'];
   78 |     const sortedFieldName = ['id', 'customer_name', 'created_by_business_id', 'provider_name']
   79 |     const propertyNames = ['id', 'customer_name', 'from_business', 'to_business'];
   80 |     const directions = ['asc', 'asc', 'asc', 'asc'];
   81 |     // const defaultPerPage = 10;
   82 |     // const defaultPage = 1;
   83 |     for (let i = 0; i < displayNames.length; i++) {
   84 |       await expect(sharedRequestPage.dashboardLoc.table.headingColumn(displayNames[i])).toBeVisible();
   85 |       await sharedRequestPage.dashboardLoc.table.headingColumn(displayNames[i]).click();
>  86 |       await expect(sharedRequestPage.page).toHaveURL(
      |                                            ^ Error: Timed out 10000ms waiting for expect(locator).toHaveURL(expected)
   87 |         new RegExp(`.*sort=${sortedFieldName[i]}&direction=${directions[i]}`)
   88 |       );
   89 |
   90 |       let apiDataUrl = `shared/requests?return_type=json&is_archived=false&sort=${sortedFieldName[i]}&direction=${directions[i]}`;
   91 |       const data = await sharedRequestPage.getDataInTable(displayNames[i], propertyNames[i], apiDataUrl);
   92 |       console.log(`Sort by: ${displayNames[i]}, direction: ${directions[i]}, property: ${propertyNames[i]}`)
   93 |       expect(data.dataApi).toEqual(data.dataUI);
   94 |     }
   95 |   });
   96 |
   97 |   test('TC_SWR_006 - Verify feature filter shared requests', {
   98 |     tag: ['@TC_SWR_006', '@share-request', '@function']
   99 |   }, async ({ conf }) => {
  100 |     const filterFields = sharedRequestPage.shareRequestProps.filterProperties;
  101 |     for (let i = 0; i < filterFields.length; i++) {
  102 |       // clear filter
  103 |       await sharedRequestPage.open();
  104 |
  105 |       // prepare locator
  106 |       let fieldLocator;
  107 |       switch (filterFields[i].type) {
  108 |         case 'input':
  109 |           fieldLocator = sharedRequestPage.dashboardLoc.search.filter.popup.inputField(filterFields[i].name);
  110 |           break;
  111 |         default:
  112 |           throw new Error(`Unsupported filter type: ${filterFields[i].type}`);
  113 |       }
  114 |
  115 |       // Fill invalid value
  116 |       await sharedRequestPage.dashboardLoc.search.filter.btn.click();
  117 |       await expect(sharedRequestPage.dashboardLoc.search.filter.popup.container).toBeVisible();
  118 |       await fieldLocator.fill(conf.data.filter_data[filterFields[i].name].invalid_data);
  119 |       await sharedRequestPage.dashboardLoc.search.filter.popup.btnApply.click();
  120 |       await expect(sharedRequestPage.dashboardLoc.table.noResult).toBeVisible();
  121 |
  122 |       // Fill valid value
  123 |       await sharedRequestPage.dashboardLoc.search.filter.btn.click();
  124 |       await expect(sharedRequestPage.dashboardLoc.search.filter.popup.container).toBeVisible();
  125 |       await fieldLocator.fill(conf.data.filter_data[filterFields[i].name].valid_data);
  126 |       await sharedRequestPage.dashboardLoc.search.filter.popup.btnApply.click();
  127 |       await expect(sharedRequestPage.dashboardLoc.table.noResult).not.toBeVisible();
  128 |     }
  129 |   });
  130 |
  131 |   test('TC_SWR_007 - Verify feature customized columns', {
  132 |     tag: ['@TC_SWR_007', '@share-request', '@function']
  133 |   }, async ({ page }) => {
  134 |     // Verify default columns displayed
  135 |     await test.step("Verify default columns displayed", async () => {
  136 |       const customizedColumns = sharedRequestPage.shareRequestProps.customizedColumns;
  137 |       for (let i = 0; i < customizedColumns.length; i++) {
  138 |         if (customizedColumns[i].default) {
  139 |           await expect(sharedRequestPage.dashboardLoc.table.headingColumn(customizedColumns[i].tableDisplayName)).toBeVisible();
  140 |         }
  141 |       }
  142 |     });
  143 |
  144 |     // Verify customized column show disable items and active items
  145 |     await test.step("Verify customized columns popup state", async () => {
  146 |       await sharedRequestPage.openThreedotMenu(sharedRequestPage.shareRequestProps.threeDotDropdownMenus.customizedColumn);
  147 |
  148 |       // Verify enabled column and disabled column
  149 |       const customizedColumns = sharedRequestPage.shareRequestProps.customizedColumns;
  150 |       for (let i = 0; i < customizedColumns.length; i++) {
  151 |         if (customizedColumns[i].default) {
  152 |           await expect(sharedRequestPage.dashboardLoc.listing.popup.customizedColumn.columnCheckbox(customizedColumns[i].name)).toBeDisabled();
  153 |         } else {
  154 |           await expect(sharedRequestPage.dashboardLoc.listing.popup.customizedColumn.columnCheckbox(customizedColumns[i].name)).toBeEnabled();
  155 |         }
  156 |       }
  157 |     });
  158 |
  159 |     // Pre-condition: disable all enabled column
  160 |     await test.step("Pre-condition: disable all enabled column", async () => {
  161 |       const customizedColumns = sharedRequestPage.shareRequestProps.customizedColumns;
  162 |       for (let i = 0; i < customizedColumns.length; i++) {
  163 |         if (!customizedColumns[i].default) {
  164 |           await sharedRequestPage.dashboardLoc.listing.popup.customizedColumn.columnCheckbox(customizedColumns[i].name).setChecked(false);
  165 |         }
  166 |       }
  167 |     });
  168 |
  169 |     // Check each columns and verify it shown
  170 |     await test.step("Check each columns and verify it shown", async () => {
  171 |       await sharedRequestPage.open();
  172 |       const customizedColumns = sharedRequestPage.shareRequestProps.customizedColumns.filter(column => !column.default);
  173 |       for (let i = 0; i < customizedColumns.length; i++) {
  174 |         await sharedRequestPage.openThreedotMenu(sharedRequestPage.shareRequestProps.threeDotDropdownMenus.customizedColumn);
  175 |         await sharedRequestPage.dashboardLoc.listing.popup.customizedColumn.columnCheckbox(customizedColumns[i].name).setChecked(true);
  176 |         await sharedRequestPage.dashboardLoc.listing.popup.customizedColumn.btnApply.click();
  177 |         await expect(sharedRequestPage.dashboardLoc.listing.heading.headingColumn(customizedColumns[i].tableDisplayName)).toBeVisible();
  178 |       }
  179 |     });
  180 |
  181 |     // Uncheck each columns and verify it hidden
  182 |     await test.step("Uncheck each columns and verify it hidden", async () => {
  183 |       await sharedRequestPage.open();
  184 |       await sharedRequestPage.waitAllRequestCompeleted();
  185 |       const customizedColumns = sharedRequestPage.shareRequestProps.customizedColumns.filter(column => !column.default);
  186 |       // TODO: change to all columns. We're facing with some issues with the last column
```