Skip to content

Commit 1255f5c

Browse files
vishalshrm539Vishaltumms2021389
authored
Fixed some of the tests (#416)
Co-authored-by: Vishal <[email protected]> Co-authored-by: tumms2021389 <[email protected]>
1 parent b5e550c commit 1255f5c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/react-sdk-components/tests/e2e/Digv2/FormFields/Attachment.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ test.describe('E2E test', () => {
106106
/** Testing error case by uploading empty file */
107107
await page.setInputFiles(`#AttachmentList`, [zeroBytesFile]);
108108
await expect(page.locator('div >> text="Error with one or more files"')).toBeVisible();
109-
await expect(page.locator(`div >> text="Empty file can't be uploaded."`)).toBeVisible();
109+
await expect(page.locator(`div >> text="Empty file can't be uploaded." >> nth=0`)).toBeVisible();
110110

111111
const errorFile = await page.locator('div[class="psdk-utility-card"]:has-text("Unable to upload file")');
112112
await errorFile.locator('button[aria-label="Delete Attachment"]').click();

packages/react-sdk-components/tests/e2e/Digv2/FormFields/Email.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ test.describe('E2E test', () => {
4444
/** Required tests */
4545
const requiredEmail = page.locator('input[data-test-id="96fa7548c363cdd5adb29c2c2749e436"]');
4646
requiredEmail.fill('[email protected]');
47+
requiredEmail.blur();
4748
await expect(page.locator('p.Mui-error.Mui-required')).toBeHidden();
4849

4950
/** Checking 'field label', 'placeholder', and 'helper text' */

0 commit comments

Comments
 (0)