Browse Source

test: string to integer for numbers in PG

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5848/head
Raju Udava 1 year ago
parent
commit
699ff5ada3
  1. 7
      tests/playwright/tests/db/undo-redo.spec.ts

7
tests/playwright/tests/db/undo-redo.spec.ts

@ -557,7 +557,7 @@ test.describe('Undo Redo - LTAR', () => {
}
);
expect(currentRecords.list.length).toBe(4);
expect(currentRecords.list[0].CityList).toBe(expectedValues.length);
expect(+currentRecords.list[0].CityList).toBe(expectedValues.length);
} catch (e) {
console.log(e);
}
@ -573,7 +573,10 @@ test.describe('Undo Redo - LTAR', () => {
'CityList'
);
const cities = nestedRecords.list.map((record: any) => record.City);
expect(cities).toEqual(expectedValues);
for (let i = 0; i < expectedValues.length; i++) {
expect(cities.includes(expectedValues[i])).toBeTruthy();
}
}
}

Loading…
Cancel
Save