Browse Source

test: mysql correction

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5848/head
Raju Udava 2 years ago
parent
commit
58b5811d8c
  1. 6
      tests/playwright/fixtures/expectedData.txt
  2. 3
      tests/playwright/pages/Dashboard/common/Cell/index.ts
  3. 4
      tests/playwright/tests/db/viewGridShare.spec.ts

6
tests/playwright/fixtures/expectedData.txt

@ -1,4 +1,4 @@
Address,District,PostalCode,Phone,Location,Customer List,Staff List,City
1661 Abha Drive,Tamil Nadu,14400,270456873752,"{""x"":78.8214191,""y"":10.3812871}",1,,Pudukkottai
1993 Tabuk Lane,Tamil Nadu,64221,648482415405,"{""x"":80.1270701,""y"":12.9246028}",2,,Tambaram
381 Kabul Way,Taipei,87272,55477302294,"{""x"":0,""y"":0}",2,,Hsichuh
1661 Abha Drive,Tamil Nadu,14400,270456873752,"{""x"":78.8214191,""y"":10.3812871}",1,0,Pudukkottai
1993 Tabuk Lane,Tamil Nadu,64221,648482415405,"{""x"":80.1270701,""y"":12.9246028}",1,0,Tambaram
381 Kabul Way,Taipei,87272,55477302294,"{""x"":0,""y"":0}",1,0,Hsichuh

3
tests/playwright/pages/Dashboard/common/Cell/index.ts

@ -285,6 +285,9 @@ export class CellPageObject extends BasePage {
await cell.scrollIntoViewIfNeeded();
// lazy load- give enough time for cell to load
await this.rootPage.waitForTimeout(1000);
if (type === 'bt') {
const chips = cell.locator('.chips > .chip');
await expect(await chips.count()).toBe(count);

4
tests/playwright/tests/db/viewGridShare.spec.ts

@ -281,8 +281,8 @@ const sqliteExpectedRecords2 = [
];
const expectedVirtualRecords = [
{ index: 0, columnHeader: 'Customer List', count: 1, value: ['2'] },
{ index: 1, columnHeader: 'Customer List', count: 1, value: ['2'] },
{ index: 0, columnHeader: 'Customer List', count: 1, type: 'hm' },
{ index: 1, columnHeader: 'Customer List', count: 1, type: 'hm' },
{ index: 0, columnHeader: 'City', count: 1, type: 'bt', value: ['Kanchrapara'] },
{ index: 1, columnHeader: 'City', count: 1, type: 'bt', value: ['Tafuna'] },
];

Loading…
Cancel
Save