From 46fad68923e38e6cc87524bda28efc1a5b7a458f Mon Sep 17 00:00:00 2001 From: Karan Mistry Date: Mon, 3 Feb 2025 16:52:16 +0530 Subject: [PATCH] test: remove unnecessary parameter from visitExample in paging, selection, and sorting tests --- playwright/e2e/paging.spec.ts | 8 ++++---- playwright/e2e/selection.spec.ts | 2 +- playwright/e2e/sorting.spec.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/playwright/e2e/paging.spec.ts b/playwright/e2e/paging.spec.ts index 8884f39d5..c333f1973 100644 --- a/playwright/e2e/paging.spec.ts +++ b/playwright/e2e/paging.spec.ts @@ -32,7 +32,7 @@ test.describe('paging', () => { const example = 'paging-scrolling-novirtualization'; test(example, async ({ si, page }) => { - await si.visitExample(example, false); + await si.visitExample(example); await expect(page.locator('ghost-loader')).toBeVisible(); await page.waitForSelector('datatable-row-wrapper'); @@ -48,7 +48,7 @@ test.describe('paging', () => { const example = 'server-scrolling'; test(example, async ({ si, page }) => { - await si.visitExample(example, false); + await si.visitExample(example); await expect(page.locator('ghost-loader')).toBeVisible(); await expect(page.locator('.bar')).toBeVisible(); @@ -104,13 +104,13 @@ test.describe('paging', () => { const example = 'virtual-paging'; test(example + ' paginator test', async ({ si, page }) => { - await si.visitExample(example, false); + await si.visitExample(example); await pagerTest(page, 9); await si.runVisualAndA11yTests('paginator'); }); test(example, async ({ si, page }) => { - await si.visitExample(example, false); + await si.visitExample(example); await expect(page.locator('ghost-loader')).toBeVisible(); await expect(page.locator('.custom-loading-content')).toBeVisible(); diff --git a/playwright/e2e/selection.spec.ts b/playwright/e2e/selection.spec.ts index 2e2baf01d..f140085b3 100644 --- a/playwright/e2e/selection.spec.ts +++ b/playwright/e2e/selection.spec.ts @@ -5,7 +5,7 @@ test.describe('selection', () => { const example = 'cell-selection'; test(example, async ({ si, page }) => { - await si.visitExample(example, false); + await si.visitExample(example); const nameCell = page.getByRole('cell', { name: 'Ethel Price' }); await expect(nameCell).toBeVisible(); diff --git a/playwright/e2e/sorting.spec.ts b/playwright/e2e/sorting.spec.ts index 9a77981e4..b65e50288 100644 --- a/playwright/e2e/sorting.spec.ts +++ b/playwright/e2e/sorting.spec.ts @@ -83,7 +83,7 @@ test.describe('sorting', () => { test.describe('server side sorting', () => { const example = 'server-sorting'; test(example, async ({ si, page }) => { - await si.visitExample(example, false); + await si.visitExample(example); const companyHeader = page.locator('datatable-header-cell[title="Company"]'); const companyHeaderIcon = companyHeader.locator('span').nth(2); @@ -138,7 +138,7 @@ test.describe('sorting', () => { test.describe('custom sorting comparator', () => { const example = 'comparator-sorting'; test(example, async ({ si, page }) => { - await si.visitExample(example, false); + await si.visitExample(example); const companyHeader = page.locator('datatable-header-cell[title="Company"]'); const companyHeaderIcon = companyHeader.locator('span').nth(2);