Skip to content

Commit ab1dbca

Browse files
4manasamashmtumms2021389
authored
Fixed the flaky tests (#419)
Co-authored-by: mashm <[email protected]> Co-authored-by: tumms2021389 <[email protected]>
1 parent 19d31d0 commit ab1dbca

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ test.describe('E2E test', () => {
4141

4242
/** Required tests */
4343
const requiredInteger = page.locator('input[data-test-id="0658481a174254dded4a0c1ffe6b8380"]');
44-
requiredInteger.fill('10000');
44+
await requiredInteger.fill('10000');
45+
await requiredInteger.blur();
4546
attributes = await common.getAttributes(requiredInteger);
4647
await expect(attributes.includes('required')).toBeTruthy();
4748
await expect(await requiredInteger.getAttribute('placeholder')).toBe('Integer Placeholder');

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ test.describe('E2E test', () => {
4545
await expect(attributes.includes('required')).toBeFalsy();
4646

4747
const requiredPercentage = page.locator('input[data-test-id="86a805ca8375ed5df057777df74dd085"]');
48-
requiredPercentage.pressSequentially('10');
48+
await requiredPercentage.pressSequentially('10');
49+
await requiredPercentage.blur();
4950
notrequiredPercentage.click();
5051
attributes = await common.getAttributes(requiredPercentage);
5152
await expect(attributes.includes('required')).toBeTruthy();

0 commit comments

Comments
 (0)