Skip to content

Commit

Permalink
fix(phone-number): event on type
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 committed Mar 11, 2024
1 parent 1600a5e commit 9882236
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe('e2e:osds-phone-number', () => {

const spyOdsValueChange = await page.spyOnEvent('odsValueChange');

await input.type('0');
await input.setProperty('value', '0');
await page.waitForChanges();
expect(spyOdsValueChange).toHaveReceivedEventTimes(1);
expect(spyOdsValueChange).toHaveReceivedEventDetail({
Expand All @@ -192,7 +192,10 @@ describe('e2e:osds-phone-number', () => {

const spyOdsValueChange = await page.spyOnEvent('odsValueChange');

await input.type('0642');
await input.setProperty('value', '0');
await input.setProperty('value', '06');
await input.setProperty('value', '064');
await input.setProperty('value', '0642');
await page.waitForChanges();
expect(spyOdsValueChange).toHaveReceivedEventTimes(4);
expect(spyOdsValueChange).toHaveReceivedEventDetail({
Expand Down

0 comments on commit 9882236

Please sign in to comment.