From 58b5811d8cf36c0a0eb3e8937af466ac4562a771 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Thu, 22 Jun 2023 19:53:30 +0530 Subject: [PATCH] test: mysql correction Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/fixtures/expectedData.txt | 6 +++--- tests/playwright/pages/Dashboard/common/Cell/index.ts | 3 +++ tests/playwright/tests/db/viewGridShare.spec.ts | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/playwright/fixtures/expectedData.txt b/tests/playwright/fixtures/expectedData.txt index 05639b8ad4..bc0963b7db 100644 --- a/tests/playwright/fixtures/expectedData.txt +++ b/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 \ No newline at end of file +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 \ No newline at end of file diff --git a/tests/playwright/pages/Dashboard/common/Cell/index.ts b/tests/playwright/pages/Dashboard/common/Cell/index.ts index 9f509d4013..1677021b05 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/index.ts +++ b/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); diff --git a/tests/playwright/tests/db/viewGridShare.spec.ts b/tests/playwright/tests/db/viewGridShare.spec.ts index a4e02daa23..e6070a106a 100644 --- a/tests/playwright/tests/db/viewGridShare.spec.ts +++ b/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'] }, ];