# Test info

- Name: Feature case for request-listing >> REQ_060 - Verify bulk edit function to change read/unread
- Location: /root/code/portal-automation-test/tests/request/function.spec.ts:2298:9

# Error details

```
Error: expect(Buffer).toMatchSnapshot(expected)

  Expected an image 1622px by 127px, received 1626px by 127px. 

Expected: /root/code/portal-automation-test/tests/request/function.spec.ts-snapshots/requests-unread-before-bulk-edit-chromium-linux.png
Received: /root/code/portal-automation-test/test-results/tests-request-function-Fea-28ac7-ction-to-change-read-unread-chromium/requests-unread-before-bulk-edit-29-actual.png
    Diff: /root/code/portal-automation-test/test-results/tests-request-function-Fea-28ac7-ction-to-change-read-unread-chromium/requests-unread-before-bulk-edit-29-diff.png


Call Log:
- Test timeout of 80000ms exceeded
    at verifyScreenshot (/root/code/portal-automation-test/utils/screenshot.ts:22:8)
    at /root/code/portal-automation-test/tests/request/function.spec.ts:2355:13
    at /root/code/portal-automation-test/tests/request/function.spec.ts:2346:9
```

# Page snapshot

```yaml
- complementary:
  - img
  - link "(Portal-Auto-Lawyer) Portal QA":
    - /url: /
    - paragraph: (Portal-Auto-Lawyer)
    - 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 "Client":
        - /url: https://qa.loprx.com/clients
        - img
        - text: Client
    - listitem:
      - button "Business/Contact":
        - img
        - text: Business/Contact
    - listitem:
      - button "Inbox/Sent":
        - img
        - text: Inbox/Sent
    - listitem:
      - button "Settings":
        - img
        - text: Settings
  - list:
    - listitem:
      - link "Shared with me":
        - /url: https://qa.loprx.com/shared/requests
        - img
        - text: Shared with me
- banner:
  - button:
    - img
  - button [disabled]:
    - img
  - img
  - text: Tri01 Duc shared some information about Example Search Tab Letter of Protection. Find out what it says. 1 week ago
  - img
  - text: Tri01 Duc included you to the private channel 1 week ago
  - img
  - text: Tri01 Duc released a document concerning Justin Bieber Letter of Protection. Review it here. 1 week ago
  - img
  - text: Tri01 Duc included you to the private channel 1 week ago
  - textbox "Search..."
  - img
  - img
  - textbox "Search..."
  - 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
  - img
  - button "4 Cart":
    - img
    - text: 4 Cart
  - text: Feedback
  - img
  - link "Open user menu":
    - /url: "#"
    - text: Minh
- img
- text: Requests
- button "New Request":
  - img
  - text: New Request
- img
- text: All 2
- img
- text: Active 2
- img
- text: Reference
- img
- text: Archived
- img
- text: Show
- textbox: "10"
- text: entries
- button "4 Quick Submit"
- button "Bulk Edit":
  - img
  - text: Bulk Edit
- button "Filter":
  - img
  - text: Filter
- img
- textbox "Search...": "239382"
- img
- table:
  - rowgroup:
    - 'row "Pin Request #  Case #  Request  Client Name  Shared From  Creator  Directed To  Status  Status Details  Actions"':
      - cell "Pin"
      - 'cell "Request # "'
      - 'cell "Case # "'
      - cell "Request "
      - cell "Client Name "
      - cell "Shared From "
      - cell "Creator "
      - cell "Directed To "
      - cell "Status "
      - cell "Status Details "
      - cell "Actions"
  - rowgroup:
    - row "165391 239382 Letter of Protection Gyhzw55873 Ocdkh48679 -- (Portal-Auto-Lawyer) Missing Open Awaiting":
      - cell:
        - img
      - cell "165391":
        - link "165391":
          - /url: /requests/165391
      - cell "239382":
        - link "239382":
          - /url: /cases/239382
      - cell "Letter of Protection":
        - link "Letter of Protection":
          - /url: /requests/165391
          - img
          - text: Letter of Protection
      - cell "Gyhzw55873 Ocdkh48679":
        - link "Gyhzw55873 Ocdkh48679":
          - /url: /requests/165391
      - cell "--":
        - link "--":
          - /url: /requests/165391
      - cell "(Portal-Auto-Lawyer)":
        - link "(Portal-Auto-Lawyer)":
          - /url: /requests/165391
      - cell "Missing":
        - link "Missing":
          - /url: /requests/165391
        - img
      - cell "Open":
        - link "Open":
          - /url: /requests/165391
      - cell "Awaiting":
        - link "Awaiting":
          - /url: /requests/165391
      - cell:
        - img
        - img
    - row "585054 239382 Letter of Protection Gyhzw55873 Ocdkh48679 -- (Portal-Auto-Lawyer) Missing Open Awaiting":
      - cell:
        - img
      - cell "585054":
        - link "585054":
          - /url: /requests/585054
      - cell "239382":
        - link "239382":
          - /url: /cases/239382
      - cell "Letter of Protection":
        - link "Letter of Protection":
          - /url: /requests/585054
          - img
          - text: Letter of Protection
      - cell "Gyhzw55873 Ocdkh48679":
        - link "Gyhzw55873 Ocdkh48679":
          - /url: /requests/585054
      - cell "--":
        - link "--":
          - /url: /requests/585054
      - cell "(Portal-Auto-Lawyer)":
        - link "(Portal-Auto-Lawyer)":
          - /url: /requests/585054
      - cell "Missing":
        - link "Missing":
          - /url: /requests/585054
        - img
      - cell "Open":
        - link "Open":
          - /url: /requests/585054
      - cell "Awaiting":
        - link "Awaiting":
          - /url: /requests/585054
      - cell:
        - img
        - img
- paragraph: Showing 1 to 2 of 2 entries
```

# Test source

```ts
   1 | import { expect, Locator, Page } from "@playwright/test";
   2 |
   3 | const DEFAULT_VIEWPORT = { width: 1920, height: 1080 };
   4 |
   5 | export const verifyScreenshot = async (
   6 |     snapshotName: string,
   7 |     target: Page | Locator,
   8 |     mask?: Locator[],
   9 |     tolerance: number = 0,
  10 |     viewport: { width: number; height: number } = DEFAULT_VIEWPORT
  11 | ) => {
  12 |     const page = 'page' in target ? target.page() : target;
  13 |     await page.setViewportSize(viewport);
  14 |
  15 |     await page.waitForLoadState('domcontentloaded');
  16 |     await page.waitForTimeout(1_000);
  17 |
  18 |     await expect(async () => {
  19 |         expect(await target.screenshot({ mask })).toMatchSnapshot(snapshotName, {
  20 |             maxDiffPixelRatio: tolerance
  21 |         });
> 22 |     }).toPass();
     |        ^ Error: expect(Buffer).toMatchSnapshot(expected)
  23 | };
  24 |
  25 | export const takeScreenshot = async (snapshotName: string, target: Page | Locator, mask?: Locator[]) => {
  26 |     expect(await target.screenshot({
  27 |         mask
  28 |     })).toMatchSnapshot(snapshotName)
  29 | }
```