Browse Source

test: number to string corrections for pg

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5349/head
Raju Udava 2 years ago
parent
commit
329f1c5542
  1. 6
      tests/playwright/tests/01-webhook.spec.ts

6
tests/playwright/tests/01-webhook.spec.ts

@ -438,15 +438,15 @@ test.describe.serial('Webhook', () => {
// verify records // verify records
for (let j = 0; j < rsp[i].data.rows.length; j++) { for (let j = 0; j < rsp[i].data.rows.length; j++) {
expect(rsp[i].data.rows[j].Number).toBe(111 * (j + 1)); expect(+rsp[i].data.rows[j].Number).toBe(111 * (j + 1));
expect(rsp[i].data.previous_rows[j].Number).toBe(100 * (j + 1) - 111); expect(+rsp[i].data.previous_rows[j].Number).toBe(100 * (j + 1));
} }
} else if (type === 'records.after.bulkDelete') { } else if (type === 'records.after.bulkDelete') {
expect(rsp[i].data.rows.length).toBe(50); expect(rsp[i].data.rows.length).toBe(50);
// verify records // verify records
for (let j = 0; j < rsp[i].data.rows.length; j++) { for (let j = 0; j < rsp[i].data.rows.length; j++) {
expect(rsp[i].data.rows[j].Number).toBe(111 * (j + 1)); expect(+rsp[i].data.rows[j].Number).toBe(111 * (j + 1));
} }
} }
} }

Loading…
Cancel
Save