Skip to content

Commit

Permalink
remove row hover
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanalvizo committed Oct 18, 2023
1 parent 0cc5db1 commit c0aca30
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/context-menu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down Expand Up @@ -104,13 +108,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.getByLabel('Sort String Descending').click();

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

await openAdvancedFilters(page);
Expand All @@ -119,30 +125,31 @@ 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.getByLabel('Remove Filter').click();

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: 'Clear', exact: true }).click();

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();
});

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c0aca30

Please sign in to comment.