# Test info

- Name: Feature case for request-listing >> REQ_044 - Share request: Sharing with a message
- Location: /root/code/portal-automation-test/tests/request/function.spec.ts:1481:9

# Error details

```
Error: locator.screenshot: Error: strict mode violation: locator('//table[@class=\'es-header-body\']/tbody') resolved to 2 elements:
    1) <tbody>…</tbody> aka getByRole('rowgroup').filter({ hasText: 'Portal Assistant Minh Phong' }).nth(2)
    2) <tbody>…</tbody> aka getByRole('rowgroup').filter({ hasText: 'Please don\'t forward this' }).nth(2)

Call log:
  - waiting for locator('//iframe[@class=\'tab-pane d-block\']').contentFrame().locator('//table[@class=\'es-header-body\']/tbody')


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

# Page snapshot

```yaml
- link "MailpitMailpit":
  - /url: /
  - img "Mailpit"
  - text: Mailpit
- button " Mark unread"
- button " Delete"
- button " Download"
- link "":
  - /url: /view/false
- link "":
  - /url: /view/cSuKmMxEE9drtpjHJs9Mu5
- button " Return to inbox 1,574"
- 'link "Portal QA 4 minutes ago To: portal_auto_pharmacy@testmail.loprx.com 243490 your passcode for signing in to Portal QA"':
  - /url: /view/KU2SASBRiTQ9TfRXvPJvRc
  - strong: Portal QA
  - text: "4 minutes ago To: portal_auto_pharmacy@testmail.loprx.com 243490 your passcode for signing in to Portal QA"
- 'link "Summary (via Portal Assistant) 19 minutes ago To: portal_auto_lawyer@testmail.loprx.com \"Reply from B, 1681849269\" - Tri01 Duc added a comment"':
  - /url: /view/cSuKmMxEE9drtpjHJs9Mu5
  - strong: Summary (via Portal Assistant)
  - text: "19 minutes ago To: portal_auto_lawyer@testmail.loprx.com \"Reply from B, 1681849269\" - Tri01 Duc added a comment"
- 'link "Tri01 Duc (via Portal QA) 4 hours ago To: triducgog0301+3@testmail.loprx.com A Coordination #719894 Shared with you (Patient: New Client) 3"':
  - /url: /view/R38SHQkJ7PvuUEntZLtUVK
  - strong: Tri01 Duc (via Portal QA)
  - text: "4 hours ago To: triducgog0301+3@testmail.loprx.com A Coordination #719894 Shared with you (Patient: New Client)"
  - link "3":
    - /url: /search?q=tag%3A3
- 'link "Link Case Second (via Portal QA) 5 hours ago To: triducgog0301+1@testmail.loprx.com FYI: Letter of Protection #591504 for Third Party 1"':
  - /url: /view/fLwseuAZHP4fyBkkmLLiZN
  - strong: Link Case Second (via Portal QA)
  - text: "5 hours ago To: triducgog0301+1@testmail.loprx.com FYI: Letter of Protection #591504 for Third Party"
  - link "1":
    - /url: /search?q=tag%3A1
- 'link "Minh Phong (via Portal QA) 5 hours ago To: portal_auto_pharmacy@testmail.loprx.com Minh Phong Shared Medical Bill #980637 for &*()_o2h Test27"':
  - /url: /view/D796NUw6gwxawotLpe8F9a
  - strong: Minh Phong (via Portal QA)
  - text: "5 hours ago To: portal_auto_pharmacy@testmail.loprx.com Minh Phong Shared Medical Bill #980637 for &*()_o2h Test27"
- 'link "Minh Phong (via Portal QA) 5 hours ago To: portal_auto_pharmacy@testmail.loprx.com FYI: Medical Bill #980637 for &*()_o2h Test27"':
  - /url: /view/X6ysx3w64mv7Qfgi4ey4Vz
  - strong: Minh Phong (via Portal QA)
  - text: "5 hours ago To: portal_auto_pharmacy@testmail.loprx.com FYI: Medical Bill #980637 for &*()_o2h Test27"
- 'link "Portal QA 6 hours ago To: portal_auto_pharmacy@testmail.loprx.com 143169 your passcode for signing in to Portal QA"':
  - /url: /view/GJM4ZijgS92mNnBYgYyRKF
  - strong: Portal QA
  - text: "6 hours ago To: portal_auto_pharmacy@testmail.loprx.com 143169 your passcode for signing in to Portal QA"
- 'link "Minh Phong (via Portal QA) 6 hours ago To: portal_auto_pharmacy@testmail.loprx.com Letter of Protection #281983 - Patient: Test Request"':
  - /url: /view/MSAkLxyHGTJGtZGK266wax
  - strong: Minh Phong (via Portal QA)
  - text: "6 hours ago To: portal_auto_pharmacy@testmail.loprx.com Letter of Protection #281983 - Patient: Test Request"
- 'link "Summary (via Portal Assistant) 6 hours ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this comment 8964833598\" - Minh Phong made a comment"':
  - /url: /view/gEUaLyBTfvxY58Vpp4e7KY
  - strong: Summary (via Portal Assistant)
  - text: "6 hours ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this comment 8964833598\" - Minh Phong made a comment"
- 'link "Summary (via Portal Assistant) 6 hours ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this discusssion 9647561522\" - Minh Phong posted a message in \"Newest ...\" room"':
  - /url: /view/JSdB2wQGr3nbFKkKYukoub
  - strong: Summary (via Portal Assistant)
  - text: "6 hours ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this discusssion 9647561522\" - Minh Phong posted a message in \"Newest ...\" room"
- 'link "Minh Phong (via Portal QA) 6 hours ago To: portal_auto_pharmacy@testmail.loprx.com [+1] Letter of Protection #543267 for John Doe 65423 Shared by Minh Phong 1"':
  - /url: /view/Mj4yu5xChdmxHYtKvu4YWb
  - strong: Minh Phong (via Portal QA)
  - text: "6 hours ago To: portal_auto_pharmacy@testmail.loprx.com [+1] Letter of Protection #543267 for John Doe 65423 Shared by Minh Phong"
  - link "1":
    - /url: /search?q=tag%3A1
- 'link "Minh Phong (via Portal QA) 7 hours ago To: portal_auto_pharmacy@testmail.loprx.com A Medical Bill #980637 Shared with you (Patient: &*()_o2h Test27)"':
  - /url: /view/gXNfxYUNEF3qsmf7A6H72G
  - strong: Minh Phong (via Portal QA)
  - text: "7 hours ago To: portal_auto_pharmacy@testmail.loprx.com A Medical Bill #980637 Shared with you (Patient: &*()_o2h Test27)"
- 'link "Portal QA 9 hours ago To: portal_auto_lawyer@testmail.loprx.com 904326 your passcode for signing in to Portal QA"':
  - /url: /view/HkJvVnENvvLoRyo6sucbd4
  - strong: Portal QA
  - text: "9 hours ago To: portal_auto_lawyer@testmail.loprx.com 904326 your passcode for signing in to Portal QA"
- 'link "Portal QA 9 hours ago To: portal_auto_lawyer@testmail.loprx.com Password Reset for the loprx.com"':
  - /url: /view/GQorCMENs5hHz8xj9Yp8ns
  - strong: Portal QA
  - text: "9 hours ago To: portal_auto_lawyer@testmail.loprx.com Password Reset for the loprx.com"
- 'link "Portal QA 9 hours ago To: portal_auto_lawyer@testmail.loprx.com 471297 is your recovery code for the loprx.com"':
  - /url: /view/FSs3VGvSaYktske2nctVPE
  - strong: Portal QA
  - text: "9 hours ago To: portal_auto_lawyer@testmail.loprx.com 471297 is your recovery code for the loprx.com"
- 'link "Summary (via Portal Assistant) 18 hours ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this discusssion 0182011390\" - Minh Phong shared a message in \"Newest ...\" room"':
  - /url: /view/8eXPiHug65nhsdYxVpeKon
  - strong: Summary (via Portal Assistant)
  - text: "18 hours ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this discusssion 0182011390\" - Minh Phong shared a message in \"Newest ...\" room"
- 'link "Summary (via Portal Assistant) 18 hours ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this comment 2640801873\" - Minh Phong added a comment"':
  - /url: /view/AfZJ6e3bZMsJQBZi4aebqt
  - strong: Summary (via Portal Assistant)
  - text: "18 hours ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this comment 2640801873\" - Minh Phong added a comment"
- 'link "Minh Phong (via Portal QA) 19 hours ago To: portal_auto_pharmacy@testmail.loprx.com Medical Bill #980637 for &*()_o2h Test27 Shared by Minh Phong"':
  - /url: /view/HnXkLv8hmAcmzLH2Qi5M7Y
  - strong: Minh Phong (via Portal QA)
  - text: "19 hours ago To: portal_auto_pharmacy@testmail.loprx.com Medical Bill #980637 for &*()_o2h Test27 Shared by Minh Phong"
- 'link "Cron Daemon 21 hours ago To: root@testmail.loprx.com Cron <root@portalautomationtesting> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )"':
  - /url: /view/PudYh5XftW3mi9WWnEYM8j
  - strong: Cron Daemon
  - text: "21 hours ago To: root@testmail.loprx.com Cron <root@portalautomationtesting> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )"
- 'link "Portal QA 21 hours ago To: portal_auto_lawyer@testmail.loprx.com 179624 your passcode for signing in to Portal QA"':
  - /url: /view/DBtcVcaxjfBPcncyKCUXhM
  - strong: Portal QA
  - text: "21 hours ago To: portal_auto_lawyer@testmail.loprx.com 179624 your passcode for signing in to Portal QA"
- 'link "Portal QA 21 hours ago To: portal_auto_lawyer@testmail.loprx.com Password Reset for the loprx.com"':
  - /url: /view/QrMDNTViURg4ucN62qfLun
  - strong: Portal QA
  - text: "21 hours ago To: portal_auto_lawyer@testmail.loprx.com Password Reset for the loprx.com"
- 'link "Portal QA 21 hours ago To: portal_auto_lawyer@testmail.loprx.com 602366 is your recovery code for the loprx.com"':
  - /url: /view/PgErY3Y7qigeAF3eK6GzX6
  - strong: Portal QA
  - text: "21 hours ago To: portal_auto_lawyer@testmail.loprx.com 602366 is your recovery code for the loprx.com"
- 'link "Summary (via Portal Assistant) a day ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this comment 8589813584\" - Minh Phong made a comment"':
  - /url: /view/Z74SMmjMhmQLr7dht773QE
  - strong: Summary (via Portal Assistant)
  - text: "a day ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this comment 8589813584\" - Minh Phong made a comment"
- 'link "Summary (via Portal Assistant) a day ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this discusssion 2302927449\" - Minh Phong left a message in \"Newest ...\" room"':
  - /url: /view/Xv8biFYvWqyEwXzGU9oEFp
  - strong: Summary (via Portal Assistant)
  - text: "a day ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this discusssion 2302927449\" - Minh Phong left a message in \"Newest ...\" room"
- 'link "Minh Phong (via Portal QA) a day ago To: portal_auto_pharmacy@testmail.loprx.com FYI: Letter of Protection #918138 for John Doe 34274"':
  - /url: /view/DrRr6HQoCStP9mMa9MJ6fo
  - strong: Minh Phong (via Portal QA)
  - text: "a day ago To: portal_auto_pharmacy@testmail.loprx.com FYI: Letter of Protection #918138 for John Doe 34274"
- 'link "Portal QA a day ago To: ducbui313@testmail.loprx.com 645762 your passcode for signing in to Portal QA"':
  - /url: /view/g88V5XTL9MReaiFZiTfeZU
  - strong: Portal QA
  - text: "a day ago To: ducbui313@testmail.loprx.com 645762 your passcode for signing in to Portal QA"
- 'link "Minh Phong (via Portal QA) a day ago To: ducbui313@testmail.loprx.com A Letter of Protection #630061 Shared with you (Client: Jason Sagtham)"':
  - /url: /view/4s4fYV2by3e8cEd3eSfxmU
  - strong: Minh Phong (via Portal QA)
  - text: "a day ago To: ducbui313@testmail.loprx.com A Letter of Protection #630061 Shared with you (Client: Jason Sagtham)"
- 'link "Minh Phong (via Portal QA) a day ago To: portal_auto_pharmacy@testmail.loprx.com Letter of Protection #275078 - &*()_E0S Test27"':
  - /url: /view/QFtnUQ2iHrPD5FGz5bevQ9
  - strong: Minh Phong (via Portal QA)
  - text: "a day ago To: portal_auto_pharmacy@testmail.loprx.com Letter of Protection #275078 - &*()_E0S Test27"
- 'link "Portal QA a day ago To: portal_auto_pharmacy@testmail.loprx.com 251522 your passcode for signing in to Portal QA"':
  - /url: /view/BGEpWsXNEiDpUdrRdGFNJT
  - strong: Portal QA
  - text: "a day ago To: portal_auto_pharmacy@testmail.loprx.com 251522 your passcode for signing in to Portal QA"
- 'link "Minh Phong (via Portal QA) a day ago To: portal_auto_pharmacy@testmail.loprx.com Medical Bill #980637 - Patient: &*()_o2h Test27"':
  - /url: /view/eMrvdFJ2C2R5XqLsYBKWZb
  - strong: Minh Phong (via Portal QA)
  - text: "a day ago To: portal_auto_pharmacy@testmail.loprx.com Medical Bill #980637 - Patient: &*()_o2h Test27"
- 'link "Portal QA a day ago To: portal_auto_lawyer@testmail.loprx.com 193197 your passcode for signing in to Portal QA"':
  - /url: /view/gAnZo43rrWsRc5AXgAFWwb
  - strong: Portal QA
  - text: "a day ago To: portal_auto_lawyer@testmail.loprx.com 193197 your passcode for signing in to Portal QA"
- 'link "Portal QA a day ago To: portal_auto_lawyer@testmail.loprx.com Password Reset for the loprx.com"':
  - /url: /view/P2Kn3iAEDos9TKuutMuzks
  - strong: Portal QA
  - text: "a day ago To: portal_auto_lawyer@testmail.loprx.com Password Reset for the loprx.com"
- 'link "Portal QA a day ago To: portal_auto_lawyer@testmail.loprx.com 183760 is your recovery code for the loprx.com"':
  - /url: /view/KmNGie7EswqDuL3g7DiMsB
  - strong: Portal QA
  - text: "a day ago To: portal_auto_lawyer@testmail.loprx.com 183760 is your recovery code for the loprx.com"
- 'link "Summary (via Portal Assistant) 2 days ago To: portal_auto_lawyer@testmail.loprx.com \"Reply from B, 1811821289\" - Tri01 Duc added a comment"':
  - /url: /view/YzL6fTL4KxX3mvYLFJqQCV
  - strong: Summary (via Portal Assistant)
  - text: "2 days ago To: portal_auto_lawyer@testmail.loprx.com \"Reply from B, 1811821289\" - Tri01 Duc added a comment"
- 'link "Portal QA 2 days ago To: portal_auto_pharmacy@testmail.loprx.com 291015 your passcode for signing in to Portal QA"':
  - /url: /view/acNSp24habCJmZwVFUjMS2
  - strong: Portal QA
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com 291015 your passcode for signing in to Portal QA"
- 'link "Minh Phong (via Portal QA) 2 days ago To: portal_auto_pharmacy@testmail.loprx.com Letter of Protection #281983 Regarding Test Request"':
  - /url: /view/KB3QbvzUirB5xQhXWfzFh4
  - strong: Minh Phong (via Portal QA)
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com Letter of Protection #281983 Regarding Test Request"
- 'link "Summary (via Portal Assistant) 2 days ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this comment 6158247734\" - Minh Phong made a comment"':
  - /url: /view/Kyu9BkhDVQBsjMQnxYuQcb
  - strong: Summary (via Portal Assistant)
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this comment 6158247734\" - Minh Phong made a comment"
- 'link "Summary (via Portal Assistant) 2 days ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this discusssion 4447745955\" - Minh Phong posted a message in \"Newest ...\" room"':
  - /url: /view/TxWY8wWFmwHUPE5bUNDoEK
  - strong: Summary (via Portal Assistant)
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com \"Please check this discusssion 4447745955\" - Minh Phong posted a message in \"Newest ...\" room"
- 'link "Minh Phong (via Portal QA) 2 days ago To: portal_auto_pharmacy@testmail.loprx.com [+1] A Letter of Protection #543267 Shared with you (Client: John Doe 65423) 1"':
  - /url: /view/VM6d8SUpAuwFeccfTz7F3m
  - strong: Minh Phong (via Portal QA)
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com [+1] A Letter of Protection #543267 Shared with you (Client: John Doe 65423)"
  - link "1":
    - /url: /search?q=tag%3A1
- 'link "Summary (via Portal Assistant) 2 days ago To: portal_auto_pharmacy@testmail.loprx.com \"This is message for test notification in mail\" - Minh Phong placed a message in \"Room 1\" room"':
  - /url: /view/UeF7TZ5pFMSfxbhoGmYd22
  - strong: Summary (via Portal Assistant)
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com \"This is message for test notification in mail\" - Minh Phong placed a message in \"Room 1\" room"
- 'link "Summary (via Portal Assistant) 2 days ago To: portal_auto_pharmacy@testmail.loprx.com \"This is message for test notification in mail\" - Minh Phong posted a message in \"Room 1\" room"':
  - /url: /view/ZYdTAJRgZopmjsoetfshko
  - strong: Summary (via Portal Assistant)
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com \"This is message for test notification in mail\" - Minh Phong posted a message in \"Room 1\" room"
- 'link "Minh Phong (via Portal QA) 2 days ago To: portal_auto_pharmacy@testmail.loprx.com \"This is message for test notification in...\" (from Minh Phong) - Shared Letter of Protection #543267 (Patient: John Doe 65423)"':
  - /url: /view/d3Xdc7zhzwaw5A5UoQajxo
  - strong: Minh Phong (via Portal QA)
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com \"This is message for test notification in...\" (from Minh Phong) - Shared Letter of Protection #543267 (Patient: John Doe 65423)"
- 'link "Portal QA 2 days ago To: portal_auto_pharmacy@testmail.loprx.com 807370 your passcode for signing in to Portal QA"':
  - /url: /view/eceVCWP3jfcZLfSgRejkVu
  - strong: Portal QA
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com 807370 your passcode for signing in to Portal QA"
- 'link "Minh Phong (via Portal QA) 2 days ago To: portal_auto_pharmacy@testmail.loprx.com Minh Phong Shared Letter of Protection #918138 for John Doe 34274"':
  - /url: /view/P44kmsDdy5TWWewwWEnTrG
  - strong: Minh Phong (via Portal QA)
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com Minh Phong Shared Letter of Protection #918138 for John Doe 34274"
- 'link "Portal QA 2 days ago To: ducbui313@testmail.loprx.com 222404 your passcode for signing in to Portal QA"':
  - /url: /view/GbLQmXH4tvrJhxsrmsXyEF
  - strong: Portal QA
  - text: "2 days ago To: ducbui313@testmail.loprx.com 222404 your passcode for signing in to Portal QA"
- 'link "Minh Phong (via Portal QA) 2 days ago To: ducbui313@testmail.loprx.com Letter of Protection #630061 for Jason Sagtham Shared by Minh Phong"':
  - /url: /view/2RS7DTN77Utwp5MXJHr3yd
  - strong: Minh Phong (via Portal QA)
  - text: "2 days ago To: ducbui313@testmail.loprx.com Letter of Protection #630061 for Jason Sagtham Shared by Minh Phong"
- 'link "Minh Phong (via Portal QA) 2 days ago To: portal_auto_pharmacy@testmail.loprx.com A Letter of Protection #275078 Shared with you (Patient: &*()_E0S Test27)"':
  - /url: /view/HtZfXQEkivWTw634wEtidP
  - strong: Minh Phong (via Portal QA)
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com A Letter of Protection #275078 Shared with you (Patient: &*()_E0S Test27)"
- 'link "Summary (via Portal Assistant) 2 days ago To: portal_auto_lawyer@testmail.loprx.com \"Inbox from B, 2519822480\" - Tri01 Duc left a message in \"Check D...\" room"':
  - /url: /view/eAj6djHsKS45r7f8mDFJj7
  - strong: Summary (via Portal Assistant)
  - text: "2 days ago To: portal_auto_lawyer@testmail.loprx.com \"Inbox from B, 2519822480\" - Tri01 Duc left a message in \"Check D...\" room"
- 'link "Summary (via Portal Assistant) 2 days ago To: portal_auto_lawyer@testmail.loprx.com \"Reply from B, 3404614335\" - Tri01 Duc made a comment"':
  - /url: /view/Sg5yL5ZhnTPa4ThQMiwz26
  - strong: Summary (via Portal Assistant)
  - text: "2 days ago To: portal_auto_lawyer@testmail.loprx.com \"Reply from B, 3404614335\" - Tri01 Duc made a comment"
- 'link "Minh Phong (via Portal QA) 2 days ago To: portal_auto_pharmacy@testmail.loprx.com Medical Bill #980637 - &*()_o2h Test27"':
  - /url: /view/gmncDsBDgu3no8YgK6kd5q
  - strong: Minh Phong (via Portal QA)
  - text: "2 days ago To: portal_auto_pharmacy@testmail.loprx.com Medical Bill #980637 - &*()_o2h Test27"
- button " About"
- button ""
- table:
  - rowgroup:
    - row "From Portal QA <no-reply@loprx.com>":
      - cell "From"
      - cell "Portal QA <no-reply@loprx.com>":
        - text: Portal QA <
        - link "no-reply@loprx.com":
          - /url: /search?q=no-reply%40loprx.com
        - text: ">"
    - row "To <portal_auto_pharmacy@testmail.loprx.com>":
      - cell "To"
      - cell "<portal_auto_pharmacy@testmail.loprx.com>":
        - text: <
        - link "portal_auto_pharmacy@testmail.loprx.com":
          - /url: /search?q=portal_auto_pharmacy%40testmail.loprx.com
        - text: ">"
    - row "Bcc <test@localhost>":
      - cell "Bcc"
      - cell "<test@localhost>":
        - text: <
        - link "test@localhost":
          - /url: /search?q=test%40localhost
        - text: ">"
    - row "Return-Path <bounce+33c17c.e9ccd3-portal_auto_pharmacy=testmail.loprx.com@no-reply.loprx.com>":
      - cell "Return-Path"
      - cell "<bounce+33c17c.e9ccd3-portal_auto_pharmacy=testmail.loprx.com@no-reply.loprx.com>":
        - text: <
        - link "bounce+33c17c.e9ccd3-portal_auto_pharmacy=testmail.loprx.com@no-reply.loprx.com":
          - /url: /search?q=bounce%2B33c17c.e9ccd3-portal_auto_pharmacy%3Dtestmail.loprx.com%40no-reply.loprx.com
        - text: ">"
    - row "Subject 243490 your passcode for signing in to Portal QA":
      - cell "Subject"
      - cell "243490 your passcode for signing in to Portal QA":
        - strong: 243490 your passcode for signing in to Portal QA
    - row "Date Mon, 2 Feb 2026, 8:55 am (29 kB)":
      - cell "Date"
      - cell "Mon, 2 Feb 2026, 8:55 am (29 kB)"
    - row "Tags":
      - cell "Tags"
      - cell:
        - combobox "Type a value"
- tablist:
  - tab "HTML" [selected]
  - tab "HTML Source"
  - tab "Text"
  - tab "Headers"
  - tab "Raw"
  - tab "HTML Check 86%"
  - tab "Link Check"
  - button ""
  - button ""
  - button "" [disabled]
- tabpanel "HTML":
  - iframe
```

# 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: locator.screenshot: Error: strict mode violation: locator('//table[@class=\'es-header-body\']/tbody') resolved to 2 elements:
  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 | }
```