diff --git a/packages/react-sdk-components/tests/e2e/Digv2/FormFields/Attachment.spec.js b/packages/react-sdk-components/tests/e2e/Digv2/FormFields/Attachment.spec.js index e27c9d17..96f91d95 100644 --- a/packages/react-sdk-components/tests/e2e/Digv2/FormFields/Attachment.spec.js +++ b/packages/react-sdk-components/tests/e2e/Digv2/FormFields/Attachment.spec.js @@ -106,7 +106,7 @@ test.describe('E2E test', () => { /** Testing error case by uploading empty file */ await page.setInputFiles(`#AttachmentList`, [zeroBytesFile]); await expect(page.locator('div >> text="Error with one or more files"')).toBeVisible(); - await expect(page.locator(`div >> text="Empty file can't be uploaded."`)).toBeVisible(); + await expect(page.locator(`div >> text="Empty file can't be uploaded." >> nth=0`)).toBeVisible(); const errorFile = await page.locator('div[class="psdk-utility-card"]:has-text("Unable to upload file")'); await errorFile.locator('button[aria-label="Delete Attachment"]').click(); diff --git a/packages/react-sdk-components/tests/e2e/Digv2/FormFields/Email.spec.js b/packages/react-sdk-components/tests/e2e/Digv2/FormFields/Email.spec.js index d57d6821..de94a841 100644 --- a/packages/react-sdk-components/tests/e2e/Digv2/FormFields/Email.spec.js +++ b/packages/react-sdk-components/tests/e2e/Digv2/FormFields/Email.spec.js @@ -44,6 +44,7 @@ test.describe('E2E test', () => { /** Required tests */ const requiredEmail = page.locator('input[data-test-id="96fa7548c363cdd5adb29c2c2749e436"]'); requiredEmail.fill('John@doe.com'); + requiredEmail.blur(); await expect(page.locator('p.Mui-error.Mui-required')).toBeHidden(); /** Checking 'field label', 'placeholder', and 'helper text' */