Skip to content

Commit

Permalink
remove scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanalvizo committed Oct 17, 2023
1 parent baea73d commit 0cc5db1
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/context-menu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ async function openAdvancedFilters(page: Page) {
await page.getByRole('button', { name: 'Advanced Filters' }).click();
}

async function scrollUpIrisGrid(page: Page) {
await page
.locator('.iris-grid .grid-wrapper')
.hover({ position: { x: 20, y: 20 } });
await page.mouse.wheel(0, -100);
}

const tableName = generateVarName('t');
test.beforeEach(async ({ page }) => {
await page.goto('');
Expand Down Expand Up @@ -111,15 +104,13 @@ test('advanced filters', async ({ page }) => {

await page.getByRole('button', { name: 'Done' }).click();
await waitForLoadingDone(page);
await scrollUpIrisGrid(page);
await expect(page.locator('.iris-grid-column')).toHaveScreenshot();

await openAdvancedFilters(page);
await page.getByLabel('Sort String Descending').click();

await page.getByRole('button', { name: 'Done' }).click();
await waitForLoadingDone(page);
await scrollUpIrisGrid(page);
await expect(page.locator('.iris-grid-column')).toHaveScreenshot();

await openAdvancedFilters(page);
Expand All @@ -128,15 +119,13 @@ test('advanced filters', async ({ page }) => {

await page.getByRole('button', { name: 'Done' }).click();
await waitForLoadingDone(page);
await scrollUpIrisGrid(page);
await expect(page.locator('.iris-grid-column')).toHaveScreenshot();

await openAdvancedFilters(page);
await page.getByLabel('Remove Filter').click();

await page.getByRole('button', { name: 'Done' }).click();
await waitForLoadingDone(page);
await scrollUpIrisGrid(page);

await expect(page.locator('.iris-grid-column')).toHaveScreenshot();

Expand All @@ -145,7 +134,6 @@ test('advanced filters', async ({ page }) => {

await page.getByRole('button', { name: 'Done' }).click();
await waitForLoadingDone(page);
await scrollUpIrisGrid(page);

await expect(page.locator('.iris-grid-column')).toHaveScreenshot();

Expand All @@ -155,7 +143,6 @@ test('advanced filters', async ({ page }) => {
await page.getByRole('button', { name: 'Done' }).click();

await waitForLoadingDone(page);
await scrollUpIrisGrid(page);
await expect(page.locator('.iris-grid-column')).toHaveScreenshot();
});

Expand Down

0 comments on commit 0cc5db1

Please sign in to comment.