diff --git a/tests/context-menu.spec.ts b/tests/context-menu.spec.ts index abc25abfef..e06ca12e29 100644 --- a/tests/context-menu.spec.ts +++ b/tests/context-menu.spec.ts @@ -16,6 +16,10 @@ async function openAdvancedFilters(page: Page) { await page.getByRole('button', { name: 'Advanced Filters' }).click(); } +async function moveMouseAwayFromTable(page: Page) { + await page.mouse.move(0, 0); +} + const tableName = generateVarName('t'); test.beforeEach(async ({ page }) => { await page.goto(''); @@ -104,6 +108,7 @@ test('advanced filters', async ({ page }) => { await page.getByRole('button', { name: 'Done' }).click(); await waitForLoadingDone(page); + await moveMouseAwayFromTable(page); await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); await openAdvancedFilters(page); @@ -111,6 +116,7 @@ test('advanced filters', async ({ page }) => { await page.getByRole('button', { name: 'Done' }).click(); await waitForLoadingDone(page); + await moveMouseAwayFromTable(page); await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); await openAdvancedFilters(page); @@ -119,6 +125,7 @@ test('advanced filters', async ({ page }) => { await page.getByRole('button', { name: 'Done' }).click(); await waitForLoadingDone(page); + await moveMouseAwayFromTable(page); await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); await openAdvancedFilters(page); @@ -126,7 +133,7 @@ test('advanced filters', async ({ page }) => { await page.getByRole('button', { name: 'Done' }).click(); await waitForLoadingDone(page); - + await moveMouseAwayFromTable(page); await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); await openAdvancedFilters(page); @@ -134,15 +141,15 @@ test('advanced filters', async ({ page }) => { await page.getByRole('button', { name: 'Done' }).click(); await waitForLoadingDone(page); - + await moveMouseAwayFromTable(page); await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); await openAdvancedFilters(page); await page.getByRole('button', { name: 'Select All' }).click(); await page.getByRole('button', { name: 'Done' }).click(); - await waitForLoadingDone(page); + await moveMouseAwayFromTable(page); await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); }); diff --git a/tests/context-menu.spec.ts-snapshots/advanced-filters-2-chromium-linux.png b/tests/context-menu.spec.ts-snapshots/advanced-filters-2-chromium-linux.png index 23dcfc8a65..c06a824a90 100644 Binary files a/tests/context-menu.spec.ts-snapshots/advanced-filters-2-chromium-linux.png and b/tests/context-menu.spec.ts-snapshots/advanced-filters-2-chromium-linux.png differ diff --git a/tests/context-menu.spec.ts-snapshots/advanced-filters-2-firefox-linux.png b/tests/context-menu.spec.ts-snapshots/advanced-filters-2-firefox-linux.png index 46c1af39fe..41e1e322c9 100644 Binary files a/tests/context-menu.spec.ts-snapshots/advanced-filters-2-firefox-linux.png and b/tests/context-menu.spec.ts-snapshots/advanced-filters-2-firefox-linux.png differ diff --git a/tests/context-menu.spec.ts-snapshots/advanced-filters-2-webkit-linux.png b/tests/context-menu.spec.ts-snapshots/advanced-filters-2-webkit-linux.png index f47f982c8b..7f5861a777 100644 Binary files a/tests/context-menu.spec.ts-snapshots/advanced-filters-2-webkit-linux.png and b/tests/context-menu.spec.ts-snapshots/advanced-filters-2-webkit-linux.png differ diff --git a/tests/context-menu.spec.ts-snapshots/advanced-filters-3-webkit-linux.png b/tests/context-menu.spec.ts-snapshots/advanced-filters-3-webkit-linux.png index 4847cfce31..7a4bf10e86 100644 Binary files a/tests/context-menu.spec.ts-snapshots/advanced-filters-3-webkit-linux.png and b/tests/context-menu.spec.ts-snapshots/advanced-filters-3-webkit-linux.png differ