Skip to content

Commit

Permalink
Revert "Fix up some e2e tests"
Browse files Browse the repository at this point in the history
This reverts commit 8966c29.
  • Loading branch information
mofojed committed Sep 12, 2024
1 parent f3a96f8 commit d789b90
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/table-multiselect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ async function getGridLocation(page: Page) {
const grid = await page.locator('.iris-grid-panel .iris-grid');
const gridLocation = await grid.boundingBox();
expect(gridLocation).not.toBeNull();
if (gridLocation === null) {
throw new Error('Grid location is null');
}
// TODO: We shouldn't need this wait. We seem to be thinking the grid is loaded before it actually is.
await page.waitForTimeout(100);
return gridLocation;
}

Expand Down Expand Up @@ -83,6 +78,7 @@ function runSpecialSelectFilter(
await gotoPage(page, '');
await openTable(page, `multiselect_${columnType}`);
const gridLocation = await getGridLocation(page);
if (gridLocation === null) return;

await page.mouse.click(
gridLocation.x + 1,
Expand All @@ -109,6 +105,7 @@ function runMultiSelectFilter(
await gotoPage(page, '');
await openTable(page, `multiselect_${columnType}`);
const gridLocation = await getGridLocation(page);
if (gridLocation === null) return;

// activate the quick filter to get that text as well
await test.step('Show quick filter step', async () => {
Expand Down Expand Up @@ -171,6 +168,7 @@ test('char formatting, non selected right click, preview formatting', async ({
await gotoPage(page, '');
await openTable(page, 'multiselect_char');
const gridLocation = await getGridLocation(page);
if (gridLocation === null) return;

// select row 2, 4
await page.keyboard.down('Control');
Expand Down

0 comments on commit d789b90

Please sign in to comment.