diff --git a/.gitignore b/.gitignore index 61d93d6005..59c717a451 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,5 @@ packages/*/package-lock.json /test-results/ /playwright-report/ /playwright/.cache/ +/tests/*-snapshots/* +!/tests/*-snapshots/*-linux* diff --git a/tests/figure.spec.ts-snapshots/can-open-a-simple-figure-1-chromium-darwin.png b/tests/figure.spec.ts-snapshots/can-open-a-simple-figure-1-chromium-darwin.png deleted file mode 100644 index c5d4bfb4ee..0000000000 Binary files a/tests/figure.spec.ts-snapshots/can-open-a-simple-figure-1-chromium-darwin.png and /dev/null differ diff --git a/tests/figure.spec.ts-snapshots/can-open-a-simple-figure-1-firefox-darwin.png b/tests/figure.spec.ts-snapshots/can-open-a-simple-figure-1-firefox-darwin.png deleted file mode 100644 index 5135b68a9f..0000000000 Binary files a/tests/figure.spec.ts-snapshots/can-open-a-simple-figure-1-firefox-darwin.png and /dev/null differ diff --git a/tests/figure.spec.ts-snapshots/can-open-a-simple-figure-1-webkit-darwin.png b/tests/figure.spec.ts-snapshots/can-open-a-simple-figure-1-webkit-darwin.png deleted file mode 100644 index f1ec1d7620..0000000000 Binary files a/tests/figure.spec.ts-snapshots/can-open-a-simple-figure-1-webkit-darwin.png and /dev/null differ diff --git a/tests/figure.spec.ts-snapshots/can-set-point-shape-and-size-1-chromium-darwin.png b/tests/figure.spec.ts-snapshots/can-set-point-shape-and-size-1-chromium-darwin.png deleted file mode 100644 index 7dc1fd1770..0000000000 Binary files a/tests/figure.spec.ts-snapshots/can-set-point-shape-and-size-1-chromium-darwin.png and /dev/null differ diff --git a/tests/figure.spec.ts-snapshots/can-set-point-shape-and-size-1-firefox-darwin.png b/tests/figure.spec.ts-snapshots/can-set-point-shape-and-size-1-firefox-darwin.png deleted file mode 100644 index 6390b58d43..0000000000 Binary files a/tests/figure.spec.ts-snapshots/can-set-point-shape-and-size-1-firefox-darwin.png and /dev/null differ diff --git a/tests/figure.spec.ts-snapshots/can-set-point-shape-and-size-1-webkit-darwin.png b/tests/figure.spec.ts-snapshots/can-set-point-shape-and-size-1-webkit-darwin.png deleted file mode 100644 index 21630148c3..0000000000 Binary files a/tests/figure.spec.ts-snapshots/can-set-point-shape-and-size-1-webkit-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-1-chromium-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-1-chromium-darwin.png deleted file mode 100644 index b54dfe84d0..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-1-chromium-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-1-firefox-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-1-firefox-darwin.png deleted file mode 100644 index 220cfc0ed9..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-1-firefox-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-1-webkit-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-1-webkit-darwin.png deleted file mode 100644 index 6abe2812ee..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-1-webkit-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-2-chromium-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-2-chromium-darwin.png deleted file mode 100644 index 8851ae02ec..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-2-chromium-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-2-firefox-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-2-firefox-darwin.png deleted file mode 100644 index 3abe85d2a9..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-2-firefox-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-2-webkit-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-2-webkit-darwin.png deleted file mode 100644 index 9608089033..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-2-webkit-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-3-chromium-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-3-chromium-darwin.png deleted file mode 100644 index cefb67d8ce..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-3-chromium-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-3-firefox-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-3-firefox-darwin.png deleted file mode 100644 index 016eead851..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-3-firefox-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-3-webkit-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-3-webkit-darwin.png deleted file mode 100644 index 4dff2fac5a..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-3-webkit-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-import-a-layout-1-chromium-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-import-a-layout-1-chromium-darwin.png deleted file mode 100644 index a864ba0b0b..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-import-a-layout-1-chromium-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-import-a-layout-1-firefox-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-import-a-layout-1-firefox-darwin.png deleted file mode 100644 index f464e7a353..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-import-a-layout-1-firefox-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-import-a-layout-1-webkit-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-import-a-layout-1-webkit-darwin.png deleted file mode 100644 index 49bc106b79..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-import-a-layout-1-webkit-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-maximize-the-first-stack-1-chromium-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-maximize-the-first-stack-1-chromium-darwin.png deleted file mode 100644 index 5f6d501c69..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-maximize-the-first-stack-1-chromium-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-maximize-the-first-stack-1-firefox-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-maximize-the-first-stack-1-firefox-darwin.png deleted file mode 100644 index 121c572148..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-maximize-the-first-stack-1-firefox-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-maximize-the-first-stack-1-webkit-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-maximize-the-first-stack-1-webkit-darwin.png deleted file mode 100644 index 3f50429438..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-maximize-the-first-stack-1-webkit-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-1-chromium-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-1-chromium-darwin.png deleted file mode 100644 index 8904b42bdc..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-1-chromium-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-1-firefox-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-1-firefox-darwin.png deleted file mode 100644 index d71d1e1ee0..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-1-firefox-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-1-webkit-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-1-webkit-darwin.png deleted file mode 100644 index 96cf304bb9..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-1-webkit-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-2-chromium-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-2-chromium-darwin.png deleted file mode 100644 index 56a4513634..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-2-chromium-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-2-firefox-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-2-firefox-darwin.png deleted file mode 100644 index 6eaef762e0..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-2-firefox-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-2-webkit-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-2-webkit-darwin.png deleted file mode 100644 index 056dcb3900..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-2-webkit-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-3-chromium-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-3-chromium-darwin.png deleted file mode 100644 index 02182c7ac7..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-3-chromium-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-3-firefox-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-3-firefox-darwin.png deleted file mode 100644 index e53b2712a4..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-3-firefox-darwin.png and /dev/null differ diff --git a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-3-webkit-darwin.png b/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-3-webkit-darwin.png deleted file mode 100644 index e70e3309f8..0000000000 Binary files a/tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-use-additional-tabs-menu-3-webkit-darwin.png and /dev/null differ diff --git a/tests/table-operations.spec.ts b/tests/table-operations.spec.ts new file mode 100644 index 0000000000..7a5c43aaaa --- /dev/null +++ b/tests/table-operations.spec.ts @@ -0,0 +1,492 @@ +import { test, expect, Page } from '@playwright/test'; +import { + makeTableCommand, + pasteInMonaco, + TableTypes, + dragComponent, + waitForLoadingDone, + openTableOption, +} from './utils'; + +// Run tests serially since they all use the same table +test.describe.configure({ mode: 'serial' }); + +async function changeCondFormatComparison( + page: Page, + condition: string, + column = '' +) { + const formattingRule = page.locator('.formatting-item'); + const conditionSelect = page.locator('data-testid=condition-select'); + const highlightCell = page.getByRole('button', { name: 'Conditional' }); + const doneButton = page.getByRole('button', { name: 'Done' }); + const columnSelect = page + .locator('.conditional-rule-editor') + .getByRole('button') + .first(); + + await expect(formattingRule).toHaveCount(1); + await expect(conditionSelect).toHaveCount(0); + await expect(highlightCell).toHaveCount(0); + + await formattingRule.click(); + + await expect(formattingRule).toHaveCount(0); + await expect(conditionSelect).toHaveCount(1); + await expect(highlightCell).toHaveCount(1); + await expect(columnSelect).toHaveCount(1); + await expect(page.getByText('Edit Formatting Rule')).toHaveCount(1); + + await highlightCell.click(); + await expect(highlightCell).toHaveClass( + 'btn btn-icon btn-formatter-type active' + ); + if (column !== '') { + await columnSelect.click(); + await page.getByRole('button', { name: column, exact: true }).click(); + + await page.locator('.style-editor').click(); + await page + .locator('.style-options') + .getByRole('button', { name: 'Positive' }) + .click(); + } + await conditionSelect.selectOption(condition); + await expect(conditionSelect).toHaveValue(condition); + + await doneButton.click(); + + await expect(formattingRule).toHaveCount(1); + await expect(conditionSelect).toHaveCount(0); + await expect(highlightCell).toHaveCount(0); + await expect(columnSelect).toHaveCount(0); + await waitForLoadingDone(page); +} + +async function changeCondFormatHighlight(page: Page) { + const formattingRule = page.locator('.formatting-item'); + const highlightRow = page.getByRole('button', { name: 'Rows' }); + const doneButton = page.getByRole('button', { name: 'Done' }); + + await expect(formattingRule).toHaveCount(1); + await expect(highlightRow).toHaveCount(0); + await expect(doneButton).toHaveCount(0); + + await formattingRule.click(); + + await expect(highlightRow).toHaveCount(1); + await expect(doneButton).toHaveCount(1); + + await highlightRow.click(); + await expect(highlightRow).toHaveClass( + 'btn btn-icon btn-formatter-type active' + ); + await doneButton.click(); + + await expect(formattingRule).toHaveCount(1); + await expect(highlightRow).toHaveCount(0); + await expect(doneButton).toHaveCount(0); + await waitForLoadingDone(page); +} + +test.beforeEach(async ({ page }) => { + await page.goto(''); + + const consoleInput = page.locator('.console-input'); + await consoleInput.click(); + + const command = makeTableCommand(undefined, TableTypes.AllTypes); + + await pasteInMonaco(consoleInput, command); + await page.keyboard.press('Enter'); + + // Wait for the panel to show + await expect(page.locator('.iris-grid-panel')).toHaveCount(1); + + // Wait until it's done loading + await expect(page.locator('.iris-grid-panel .loading-spinner')).toHaveCount( + 0 + ); + + // Model is loaded, need to make sure table data is also loaded + await waitForLoadingDone(page); + + const tableOperationsMenu = page.locator( + 'data-testid=btn-iris-grid-settings-button-table' + ); + await tableOperationsMenu.click(); + + // Wait for Table Options menu to show + await expect(page.locator('.table-sidebar')).toHaveCount(1); +}); + +test('select distinct values', async ({ page }) => { + await openTableOption(page, 'Select Distinct Values'); + + const columnSelect = page.getByRole('combobox'); + await expect(columnSelect).toHaveCount(1); + + await columnSelect.selectOption('String'); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); +}); + +test('search', async ({ page }) => { + await page.locator('data-testid=menu-item-Search Bar').click(); + + const searchBar = page.getByPlaceholder('Search Data...'); + await expect(searchBar).toHaveCount(1); + + await searchBar.click(); + await page.keyboard.type('2'); + + await expect(searchBar).toHaveValue('2'); + + // Wait until it's done loading + await waitForLoadingDone(page); + + // Check snapshot + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + + // Clear search query + await page.keyboard.press('Backspace'); + + await expect(searchBar).toHaveValue(''); + + // Wait until it's done loading + await waitForLoadingDone(page); + + // Check snapshot + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); +}); + +test('conditional format', async ({ page }) => { + await openTableOption(page, 'Conditional Formatting'); + + await test.step('Setup new formatting rule', async () => { + await page.getByRole('button', { name: 'Add New Rule' }).click(); + await page.locator('.style-editor').click(); + await page.getByRole('button', { name: 'Positive' }).click(); + await page.getByRole('button', { name: 'Done' }).click(); + }); + + await test.step('Is null', async () => { + await changeCondFormatComparison(page, 'is-null'); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + + await changeCondFormatHighlight(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Is not null', async () => { + await changeCondFormatComparison(page, 'is-not-null'); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + + await changeCondFormatHighlight(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Change column', async () => { + await changeCondFormatComparison(page, 'is-not-null', 'Int'); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + + await changeCondFormatHighlight(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Cancel', async () => { + const formattingRule = page.locator('.formatting-item'); + const conditionSelect = page.locator('data-testid=condition-select'); + + await expect(conditionSelect).toHaveCount(0); + + await formattingRule.click(); + await conditionSelect.selectOption('is-null'); + await page.getByRole('button', { name: 'Cancel' }).click(); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Delete', async () => { + await page.getByRole('button', { name: 'Delete rule' }).click(); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); +}); + +test('organize columns', async ({ page }) => { + await openTableOption(page, 'Organize Columns'); + + await test.step('Search', async () => { + await page.getByPlaceholder('Search').click(); + await page.keyboard.type('dou'); + + await expect( + page.locator('.visibility-ordering-builder') + ).toHaveScreenshot(); + }); + + await test.step('Move Selection Down', async () => { + await page + .getByRole('button', { name: 'Move selection down' }) + .click({ clickCount: 2 }); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Move Selection Up', async () => { + await page.getByRole('button', { name: 'Move selection up' }).click(); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Move Selection to Bottom', async () => { + await page + .getByRole('button', { name: 'Move selection to bottom' }) + .click(); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Move Selection to Top', async () => { + await page.getByRole('button', { name: 'Move selection to top' }).click(); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Sort Descending', async () => { + await page.getByRole('button', { name: 'Sort descending' }).click(); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Sort Ascending', async () => { + await page.getByRole('button', { name: 'Sort ascending' }).click(); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Hide Selected', async () => { + await page.getByRole('button', { name: 'Hide Selected' }).click(); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Reset', async () => { + await page.getByRole('button', { name: 'Reset' }).click(); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + const dropIndicator = page + .locator('.visibility-ordering-list') + .locator('.marching-ants'); + await test.step('Drag', async () => { + const floatOption = page.getByRole('button', { + name: 'Toggle visibility Float', + }); + const stringOption = page.getByRole('button', { + name: 'Toggle visibility String', + }); + await dragComponent(floatOption, stringOption, dropIndicator, 20); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Create Group', async () => { + const stringOption = page.getByRole('button', { + name: 'Toggle visibility String', + }); + await stringOption.click(); + await page.getByRole('button', { name: 'Group' }).click(); + await page.getByPlaceholder('Group Name').click(); + await page.keyboard.type('test'); + await page.keyboard.press('Enter'); + + const longOption = page.getByRole('button', { + name: 'Toggle visibility Long', + }); + await dragComponent(longOption, stringOption, dropIndicator); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + + // Edit Group Name + await page.getByRole('button', { name: 'Edit', exact: true }).click(); + await page.keyboard.type('new_test'); + await page.keyboard.press('Enter'); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + + // Delete Group + await page + .getByRole('button', { name: 'Delete group', exact: true }) + .click(); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Toggle Visibility', async () => { + await page + .getByRole('button', { name: 'Toggle visibility Double' }) + .getByRole('button', { name: 'Toggle visibility' }) + .click(); + + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); +}); + +// TODO: Figure out why webkit drag doesn't work if steps aren't insanely high when generating linux snapshot (#1360) +test('custom column', async ({ page }) => { + await openTableOption(page, 'Custom Columns'); + + await test.step('Create custom column', async () => { + const columnName = page.getByPlaceholder('Column Name'); + await expect(columnName).toHaveCount(1); + await columnName.click(); + await page.keyboard.type('Test'); + + const columnFormula = page.locator('.editor-container'); + await expect(columnFormula).toHaveCount(1); + await columnFormula.click(); + await page.keyboard.type('Double * 2'); + }); + + const addColumnButton = page.getByRole('button', { + name: 'Add Another Column', + }); + const saveButton = page.getByRole('button', { name: 'Save Column' }); + + await test.step('Create 2nd custom columns from 1st', async () => { + await addColumnButton.click(); + + const newColumnName = page.getByPlaceholder('Column Name').nth(1); + await newColumnName.click(); + await page.keyboard.type('Test2'); + + const newColumnFormula = page.locator('.editor-container').nth(1); + await newColumnFormula.click(); + await page.keyboard.type('Test * 2'); + + await saveButton.click(); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Delete', async () => { + const deleteLastColumnButton = page + .getByRole('button', { name: 'Delete custom column' }) + .nth(1); + await deleteLastColumnButton.click(); + await saveButton.click(); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Drag', async () => { + await addColumnButton.click(); + + const dragColumn = page.getByPlaceholder('Column Name').nth(1); + await dragColumn.click(); + await page.keyboard.type('Drag'); + + const dragColumnFormula = page.locator('.editor-container').nth(1); + await dragColumnFormula.click(); + await page.keyboard.type('String'); + + const dragButton = page + .getByRole('button', { name: 'Drag column to re-order' }) + .nth(1); + const panelAbove = page + .getByRole('button', { name: 'Drag column to re-order' }) + .first(); + const dropIndicator = page + .locator('.custom-column-builder-container') + .locator('.dragging'); + + const browser = dragButton.page().context().browser()?.browserType().name(); + await dragComponent( + dragButton, + panelAbove, + dropIndicator, + 0, + browser === 'webkit' ? 1000 : undefined + ); + + await saveButton.click(); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); +}); + +test('rollup rows and aggregrate columns', async ({ page }) => { + await openTableOption(page, 'Rollup Rows'); + + const dropdown = page.locator('.rollup-rows-group-by'); + const dropIndicator = dropdown.locator('.is-dropping'); + + const stringColumn = page.getByRole('button', { name: 'String' }); + await test.step('Rollup column', async () => { + expect(stringColumn).toBeTruthy(); + await dragComponent(stringColumn, dropdown, dropIndicator); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Toggle constituents', async () => { + await page.getByText('Constituents').click(); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Toggle non-aggregated columns', async () => { + await page.getByText('Non-Aggregated Columns').click(); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Rollup another column', async () => { + const intColumn = page.getByRole('button', { name: 'Int', exact: true }); + expect(intColumn).toBeTruthy(); + await dragComponent(intColumn, stringColumn, dropIndicator, 10); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Aggregate columns', async () => { + await page.getByText('Constituents').click(); + await page.getByText('Non-Aggregated Columns').click(); + + await page.getByTestId('btn-page-back').click(); + await openTableOption(page, 'Aggregate Columns'); + await page.getByRole('button', { name: 'Add Aggregation' }).click(); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Edit aggregated columns', async () => { + await page + .getByRole('button', { name: 'Edit Columns', exact: true }) + .click(); + await page.getByText('Double', { exact: true }).click(); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); + + await test.step('Reset aggregated columns', async () => { + await page.getByRole('button', { name: 'Reset' }).click(); + + await waitForLoadingDone(page); + await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); + }); +}); diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-1-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-1-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-1-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-1-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-1-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-1-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-2-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-2-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-2-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-2-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-2-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-2-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-3-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-3-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-3-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-3-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-3-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-3-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-4-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-4-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-4-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-4-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-4-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-4-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-5-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-5-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-5-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-5-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-5-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-5-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-6-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-6-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-6-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-6-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-6-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-6-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-7-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-7-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-7-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-7-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-7-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-7-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-8-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-8-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-8-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-8-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/conditional-format-8-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/conditional-format-8-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/custom-column-1-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/custom-column-1-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/custom-column-1-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/custom-column-1-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/custom-column-1-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/custom-column-1-webkit-linux.png diff --git a/tests/table-operations.spec.ts-snapshots/custom-column-2-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/custom-column-2-chromium-linux.png new file mode 100644 index 0000000000..45a63297b5 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/custom-column-2-chromium-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/custom-column-2-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/custom-column-2-firefox-linux.png new file mode 100644 index 0000000000..7ad1468d6c Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/custom-column-2-firefox-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/custom-column-2-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/custom-column-2-webkit-linux.png new file mode 100644 index 0000000000..7996c09a64 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/custom-column-2-webkit-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/custom-column-3-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/custom-column-3-chromium-linux.png new file mode 100644 index 0000000000..8c99a02d9b Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/custom-column-3-chromium-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/custom-column-3-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/custom-column-3-firefox-linux.png new file mode 100644 index 0000000000..676850ddae Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/custom-column-3-firefox-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/custom-column-3-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/custom-column-3-webkit-linux.png new file mode 100644 index 0000000000..83ded3f634 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/custom-column-3-webkit-linux.png differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-1-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-1-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-1-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-1-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-1-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-1-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-10-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-10-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-10-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-10-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-10-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-10-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-11-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-11-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-11-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-11-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-11-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-11-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-12-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-12-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-12-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-12-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-12-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-12-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-13-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-13-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-13-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-13-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-13-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-13-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-14-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-14-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-14-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-14-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-14-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-14-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-2-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-2-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-2-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-2-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-2-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-2-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-3-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-3-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-3-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-3-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-3-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-3-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-4-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-4-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-4-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-4-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-4-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-4-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-5-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-5-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-5-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-5-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-5-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-5-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-6-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-6-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-6-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-6-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-6-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-6-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-7-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-7-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-7-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-7-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-7-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-7-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-8-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-8-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-8-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-8-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-8-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-8-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-9-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-9-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-9-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-9-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/organize-columns-9-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/organize-columns-9-webkit-linux.png diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-1-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-1-chromium-linux.png new file mode 100644 index 0000000000..66e8100836 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-1-chromium-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-1-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-1-firefox-linux.png new file mode 100644 index 0000000000..e7f2ffbfba Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-1-firefox-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-1-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-1-webkit-linux.png new file mode 100644 index 0000000000..b47300ecbc Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-1-webkit-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-2-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-2-chromium-linux.png new file mode 100644 index 0000000000..d4801a4724 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-2-chromium-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-2-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-2-firefox-linux.png new file mode 100644 index 0000000000..03cdbb8684 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-2-firefox-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-2-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-2-webkit-linux.png new file mode 100644 index 0000000000..8bd046af9d Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-2-webkit-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-3-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-3-chromium-linux.png new file mode 100644 index 0000000000..4c1987805d Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-3-chromium-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-3-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-3-firefox-linux.png new file mode 100644 index 0000000000..f65a50fa1c Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-3-firefox-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-3-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-3-webkit-linux.png new file mode 100644 index 0000000000..21e214d568 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-3-webkit-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-4-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-4-chromium-linux.png new file mode 100644 index 0000000000..2636ae6d84 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-4-chromium-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-4-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-4-firefox-linux.png new file mode 100644 index 0000000000..d421320741 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-4-firefox-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-4-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-4-webkit-linux.png new file mode 100644 index 0000000000..db02aeb0a7 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-4-webkit-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-5-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-5-chromium-linux.png new file mode 100644 index 0000000000..67d89ae466 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-5-chromium-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-5-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-5-firefox-linux.png new file mode 100644 index 0000000000..140922d569 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-5-firefox-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-5-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-5-webkit-linux.png new file mode 100644 index 0000000000..266959ec4e Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-5-webkit-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-6-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-6-chromium-linux.png new file mode 100644 index 0000000000..55131ce706 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-6-chromium-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-6-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-6-firefox-linux.png new file mode 100644 index 0000000000..e7a7a2fd0a Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-6-firefox-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-6-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-6-webkit-linux.png new file mode 100644 index 0000000000..14b382209e Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-6-webkit-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-7-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-7-chromium-linux.png new file mode 100644 index 0000000000..8e315668d9 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-7-chromium-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-7-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-7-firefox-linux.png new file mode 100644 index 0000000000..8b7bad8d14 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-7-firefox-linux.png differ diff --git a/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-7-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-7-webkit-linux.png new file mode 100644 index 0000000000..0883271226 Binary files /dev/null and b/tests/table-operations.spec.ts-snapshots/rollup-rows-and-aggregrate-columns-7-webkit-linux.png differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/search-1-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/search-1-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/search-1-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/search-1-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/search-1-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/search-1-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/search-2-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/search-2-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/search-2-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/search-2-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/search-2-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/search-2-webkit-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-chromium-linux.png b/tests/table-operations.spec.ts-snapshots/select-distinct-values-1-chromium-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-chromium-linux.png rename to tests/table-operations.spec.ts-snapshots/select-distinct-values-1-chromium-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-firefox-linux.png b/tests/table-operations.spec.ts-snapshots/select-distinct-values-1-firefox-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-firefox-linux.png rename to tests/table-operations.spec.ts-snapshots/select-distinct-values-1-firefox-linux.png diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-webkit-linux.png b/tests/table-operations.spec.ts-snapshots/select-distinct-values-1-webkit-linux.png similarity index 100% rename from tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-webkit-linux.png rename to tests/table-operations.spec.ts-snapshots/select-distinct-values-1-webkit-linux.png diff --git a/tests/table.spec.ts b/tests/table.spec.ts index 75ee83c1de..05cc01e003 100644 --- a/tests/table.spec.ts +++ b/tests/table.spec.ts @@ -31,75 +31,6 @@ async function waitForLoadingDone(page: Page) { ).toHaveCount(0); } -async function changeCondFormatComparison( - page: Page, - condition: string, - column: string = '' -) { - const formattingRule = page.locator('.formatting-item'); - const conditionSelect = page.locator('data-testid=condition-select'); - const highlightCell = page.getByRole('button', { name: 'Conditional' }); - const doneButton = page.getByRole('button', { name: 'Done' }); - const columnSelect = page - .locator('.conditional-rule-editor') - .getByRole('button') - .first(); - - await expect(formattingRule).toHaveCount(1); - await expect(conditionSelect).toHaveCount(0); - await expect(highlightCell).toHaveCount(0); - - await formattingRule.click(); - - await expect(formattingRule).toHaveCount(0); - await expect(conditionSelect).toHaveCount(1); - await expect(highlightCell).toHaveCount(1); - await expect(columnSelect).toHaveCount(1); - - await highlightCell.click(); - if (column !== '') { - await columnSelect.click(); - await page.getByRole('button', { name: column, exact: true }).click(); - - await page.locator('.style-editor').click(); - await page - .locator('.style-options') - .getByRole('button', { name: 'Positive' }) - .click(); - } - await conditionSelect.selectOption(condition); - await doneButton.click(); - - await expect(formattingRule).toHaveCount(1); - await expect(conditionSelect).toHaveCount(0); - await expect(highlightCell).toHaveCount(0); - await expect(columnSelect).toHaveCount(0); - await waitForLoadingDone(page); -} - -async function changeCondFormatHighlight(page: Page) { - const formattingRule = page.locator('.formatting-item'); - const highlightRow = page.getByRole('button', { name: 'Rows' }); - const doneButton = page.getByRole('button', { name: 'Done' }); - - await expect(formattingRule).toHaveCount(1); - await expect(highlightRow).toHaveCount(0); - await expect(doneButton).toHaveCount(0); - - await formattingRule.click(); - - await expect(highlightRow).toHaveCount(1); - await expect(doneButton).toHaveCount(1); - - await highlightRow.click(); - await doneButton.click(); - - await expect(formattingRule).toHaveCount(1); - await expect(highlightRow).toHaveCount(0); - await expect(doneButton).toHaveCount(0); - await waitForLoadingDone(page); -} - test('can open a simple table', async ({ page }) => { await page.goto(''); await openSimpleTable(page); @@ -163,350 +94,6 @@ column_header_group = column_header_group.layout_hints(column_groups=column_grou // Now we should be able to check the snapshot await expect(page.locator('.iris-grid-panel .iris-grid')).toHaveScreenshot(); }); -test.describe('tests complex table operations', () => { - let page: Page; - - test.beforeEach(async ({ browser }) => { - page = await browser.newPage(); - await page.goto(''); - - const consoleInput = page.locator('.console-input'); - await consoleInput.click(); - - const command = `${makeTableCommand(undefined, TableTypes.AllTypes)}`; - - await pasteInMonaco(consoleInput, command); - await page.keyboard.press('Enter'); - - // Wait for the panel to show - await expect(page.locator('.iris-grid-panel')).toHaveCount(1); - - // Wait until it's done loading - await expect(page.locator('.iris-grid-panel .loading-spinner')).toHaveCount( - 0 - ); - - // Model is loaded, need to make sure table data is also loaded - await waitForLoadingDone(page); - - const tableOperationsMenu = page.locator( - 'data-testid=btn-iris-grid-settings-button-table' - ); - await tableOperationsMenu.click(); - - // Wait for Table Options menu to show - await expect(page.locator('.table-sidebar')).toHaveCount(1); - }); - - test('can select distinct values', async () => { - // open Select Distinct panel - await page.locator('data-testid=menu-item-Select Distinct Values').click(); - - const columnSelect = page.getByRole('combobox'); - await expect(columnSelect).toHaveCount(1); - - await columnSelect.selectOption('String'); - - // Check snapshot - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - test('can search', async () => { - // open Search Bar panel - await page.locator('data-testid=menu-item-Search Bar').click(); - - const searchBar = page.getByPlaceholder('Search Data...'); - await expect(searchBar).toHaveCount(1); - - await searchBar.click(); - await page.keyboard.type('2'); - - await expect(searchBar).toHaveValue('2'); - - // Wait until it's done loading - await waitForLoadingDone(page); - - // Check snapshot - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - - // Clear search query - await page.keyboard.press('Backspace'); - - await expect(searchBar).toHaveValue(''); - - // Wait until it's done loading - await waitForLoadingDone(page); - - // Check snapshot - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - test('can conditional format', async () => { - await page.locator('data-testid=menu-item-Conditional Formatting').click(); - - await test.step(' Setup new formatting rule', async () => { - await page.getByRole('button', { name: 'Add New Rule' }).click(); - await page.locator('.style-editor').click(); - await page.getByRole('button', { name: 'Positive' }).click(); - await page.getByRole('button', { name: 'Done' }).click(); - }); - - await test.step('Is null', async () => { - await changeCondFormatComparison(page, 'is-null'); - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - - await changeCondFormatHighlight(page); - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Is not null', async () => { - await changeCondFormatComparison(page, 'is-not-null'); - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - - await changeCondFormatHighlight(page); - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Change column', async () => { - await changeCondFormatComparison(page, 'is-not-null', 'Int'); - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - - await changeCondFormatHighlight(page); - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Cancel', async () => { - const formattingRule = page.locator('.formatting-item'); - const conditionSelect = page.locator('data-testid=condition-select'); - - await expect(conditionSelect).toHaveCount(0); - - await formattingRule.click(); - await conditionSelect.selectOption('is-null'); - await page.getByRole('button', { name: 'Cancel' }).first().click(); - - await waitForLoadingDone(page); - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Delete', async () => { - await page.getByRole('button', { name: 'Delete rule' }).click(); - - await waitForLoadingDone(page); - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - }); - - test('can organize columns', async () => { - await page.locator('data-testid=menu-item-Organize Columns').click(); - - await test.step('Search', async () => { - await page.getByPlaceholder('Search').click(); - await page.keyboard.type('dou'); - - await expect( - page.locator('.visibility-ordering-builder') - ).toHaveScreenshot(); - }); - - await test.step('Move Selection Down', async () => { - await page - .getByRole('button', { name: 'Move selection down' }) - .click({ clickCount: 2 }); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Move Selection Up', async () => { - await page.getByRole('button', { name: 'Move selection up' }).click(); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Move Selection to Bottom', async () => { - await page - .getByRole('button', { name: 'Move selection to bottom' }) - .click(); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Move Selection to Top', async () => { - await page.getByRole('button', { name: 'Move selection to top' }).click(); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Sort Descending', async () => { - await page.getByRole('button', { name: 'Sort descending' }).click(); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Sort Ascending', async () => { - await page.getByRole('button', { name: 'Sort ascending' }).click(); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Hide Selected', async () => { - await page.getByRole('button', { name: 'Hide Selected' }).click(); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Reset', async () => { - await page.getByRole('button', { name: 'Reset' }).click(); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Drag', async () => { - const dragColumnButton = page.getByRole('button', { - name: 'Toggle visibility Float', - }); - const [x, y] = await dragColumnButton - .boundingBox() - .then(pos => - pos && pos.x != null && pos.y != null ? [pos.x, pos.y - 50] : [0, 0] - ); - await dragColumnButton.hover(); - await page.mouse.down(); - await page.mouse.move(x, y, { steps: 50 }); - await page.mouse.up(); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Create Group', async () => { - await page - .getByRole('button', { name: 'Toggle visibility String' }) - .click(); - await page.getByRole('button', { name: 'Group' }).click(); - await page.getByPlaceholder('Group Name').click(); - await page.keyboard.type('test'); - await page.keyboard.press('Enter'); - - const dragColumnButton = page.getByRole('button', { - name: 'Toggle visibility Long', - }); - const [x, y] = await dragColumnButton - .boundingBox() - .then(pos => - pos && pos.x != null && pos.y != null - ? [pos.x + 200, pos.y - 75] - : [0, 0] - ); - await dragColumnButton.hover(); - await page.mouse.down(); - await page.mouse.move(x, y, { steps: 50 }); - await page.mouse.up(); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - - // Edit Group Name - await page.getByRole('button', { name: 'Edit', exact: true }).click(); - await page.keyboard.type('new_test'); - await page.keyboard.press('Enter'); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - - // Delete Group - await page - .getByRole('button', { name: 'Delete group', exact: true }) - .click(); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Toggle Visibility', async () => { - await page - .getByRole('button', { name: 'Toggle visibility Double' }) - .getByRole('button', { name: 'Toggle visibility' }) - .click(); - - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - }); - - test('can custom column', async () => { - // open Custom Columns panel - await page.locator('data-testid=menu-item-Custom Columns').click(); - - await test.step('Create custom column', async () => { - const columnName = page.getByPlaceholder('Column Name'); - await expect(columnName).toHaveCount(1); - await columnName.click(); - await page.keyboard.type('Test'); - - const columnFormula = page.locator('.editor-container'); - await expect(columnFormula).toHaveCount(1); - await columnFormula.click({ force: true }); - await page.keyboard.type('Double * 2'); - }); - - const addColumnButton = page.getByRole('button', { - name: 'Add Another Column', - }); - const saveButton = page.getByRole('button', { name: 'Save Column' }); - - await test.step('Create 2nd custom columns from 1st', async () => { - await addColumnButton.click(); - - const newColumnName = page.getByPlaceholder('Column Name').nth(1); - await newColumnName.click(); - await page.keyboard.type('Test2'); - - const newColumnFormula = page.locator('.editor-container').nth(1); - await newColumnFormula.click(); - await page.keyboard.type('Test * 2'); - - await saveButton.click(); - - await waitForLoadingDone(page); - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Drag', async () => { - await addColumnButton.click(); - - const dragColumn = page.getByPlaceholder('Column Name').nth(2); - await dragColumn.click(); - await page.keyboard.type('Drag'); - - const dragColumnFormula = page.locator('.editor-container').nth(2); - await dragColumnFormula.click(); - await page.keyboard.type('String'); - - const reorderButton = page - .getByRole('button', { name: 'Drag column to re-order' }) - .nth(2); - const [x, y] = await reorderButton - .boundingBox() - .then(pos => (pos && pos.x && pos.y ? [pos.x, pos.y - 100] : [0, 0])); - await reorderButton.hover(); - await page.mouse.down(); - await page.mouse.move(x, y, { steps: 500 }); - await page.mouse.up(); - - await saveButton.click(); - - await waitForLoadingDone(page); - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - - await test.step('Delete', async () => { - const deleteLastColumnButton = page - .getByRole('button', { name: 'Delete custom column' }) - .nth(1); - await deleteLastColumnButton.click(); - await saveButton.click(); - - await waitForLoadingDone(page); - await expect(page.locator('.iris-grid-column')).toHaveScreenshot(); - }); - }); -}); test.describe('tests simple table operations', () => { let page: Page; diff --git a/tests/table.spec.ts-snapshots/can-open-a-simple-table-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/can-open-a-simple-table-1-chromium-darwin.png deleted file mode 100644 index 5210be0144..0000000000 Binary files a/tests/table.spec.ts-snapshots/can-open-a-simple-table-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/can-open-a-simple-table-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/can-open-a-simple-table-1-firefox-darwin.png deleted file mode 100644 index fd54efd918..0000000000 Binary files a/tests/table.spec.ts-snapshots/can-open-a-simple-table-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/can-open-a-simple-table-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/can-open-a-simple-table-1-webkit-darwin.png deleted file mode 100644 index 423b48dfa1..0000000000 Binary files a/tests/table.spec.ts-snapshots/can-open-a-simple-table-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-1-chromium-darwin.png deleted file mode 100644 index 7e07f659bd..0000000000 Binary files a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-1-firefox-darwin.png deleted file mode 100644 index ab22d4179a..0000000000 Binary files a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-1-webkit-darwin.png deleted file mode 100644 index a9629d53c4..0000000000 Binary files a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-and-hidden-columns-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-and-hidden-columns-1-chromium-darwin.png deleted file mode 100644 index d9ee3e0530..0000000000 Binary files a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-and-hidden-columns-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-and-hidden-columns-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-and-hidden-columns-1-firefox-darwin.png deleted file mode 100644 index 19b0781d78..0000000000 Binary files a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-and-hidden-columns-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-and-hidden-columns-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-and-hidden-columns-1-webkit-darwin.png deleted file mode 100644 index 971e83958b..0000000000 Binary files a/tests/table.spec.ts-snapshots/can-open-a-table-with-column-header-groups-and-hidden-columns-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-chromium-darwin.png deleted file mode 100644 index 4db77c4ef8..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-firefox-darwin.png deleted file mode 100644 index 9076b6a70a..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-webkit-darwin.png deleted file mode 100644 index 2cc6fcea17..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-chromium-darwin.png deleted file mode 100644 index fd63eee940..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-firefox-darwin.png deleted file mode 100644 index d2999ca3b3..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-webkit-darwin.png deleted file mode 100644 index 9968fb2d7a..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-2-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-chromium-darwin.png deleted file mode 100644 index 74c6c64d3a..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-firefox-darwin.png deleted file mode 100644 index 4f4dd90448..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-webkit-darwin.png deleted file mode 100644 index 01b470034c..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-3-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-chromium-darwin.png deleted file mode 100644 index d7b893f752..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-firefox-darwin.png deleted file mode 100644 index 163557e16e..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-webkit-darwin.png deleted file mode 100644 index 5b203608e2..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-4-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-chromium-darwin.png deleted file mode 100644 index 9fc4613529..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-firefox-darwin.png deleted file mode 100644 index a9f9e6d618..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-webkit-darwin.png deleted file mode 100644 index b2be6c5901..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-5-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-chromium-darwin.png deleted file mode 100644 index c137d20b62..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-firefox-darwin.png deleted file mode 100644 index 44be6efe10..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-webkit-darwin.png deleted file mode 100644 index 2353e4cfc7..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-6-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-chromium-darwin.png deleted file mode 100644 index c137d20b62..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-firefox-darwin.png deleted file mode 100644 index 44be6efe10..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-webkit-darwin.png deleted file mode 100644 index 2353e4cfc7..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-7-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-chromium-darwin.png deleted file mode 100644 index ba40f399aa..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-firefox-darwin.png deleted file mode 100644 index f9f1fee743..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-webkit-darwin.png deleted file mode 100644 index 926377753b..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-conditional-format-8-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-chromium-darwin.png deleted file mode 100644 index 8ac37f7f16..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-firefox-darwin.png deleted file mode 100644 index 3e30d73348..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-webkit-darwin.png deleted file mode 100644 index bf7ec51477..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-chromium-darwin.png deleted file mode 100644 index cb946b7da6..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-chromium-linux.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-chromium-linux.png deleted file mode 100644 index ee7b56c81a..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-chromium-linux.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-firefox-darwin.png deleted file mode 100644 index 686e900051..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-firefox-linux.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-firefox-linux.png deleted file mode 100644 index 7619660176..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-firefox-linux.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-webkit-darwin.png deleted file mode 100644 index 59a9b1c4cf..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-webkit-linux.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-webkit-linux.png deleted file mode 100644 index ea149f9b26..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-2-webkit-linux.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-chromium-darwin.png deleted file mode 100644 index 8ac37f7f16..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-chromium-linux.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-chromium-linux.png deleted file mode 100644 index d0484546db..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-chromium-linux.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-firefox-darwin.png deleted file mode 100644 index 3e30d73348..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-firefox-linux.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-firefox-linux.png deleted file mode 100644 index 2388fe3d9f..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-firefox-linux.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-webkit-darwin.png deleted file mode 100644 index bf7ec51477..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-webkit-linux.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-webkit-linux.png deleted file mode 100644 index 9822f09047..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-custom-column-3-webkit-linux.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-chromium-darwin.png deleted file mode 100644 index 28d28f3029..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-firefox-darwin.png deleted file mode 100644 index 6557180149..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-webkit-darwin.png deleted file mode 100644 index abf94cee9c..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-chromium-darwin.png deleted file mode 100644 index 436e72369d..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-firefox-darwin.png deleted file mode 100644 index de63b6aa13..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-webkit-darwin.png deleted file mode 100644 index f011721378..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-10-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-chromium-darwin.png deleted file mode 100644 index d44e270c25..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-firefox-darwin.png deleted file mode 100644 index dec3c80cdf..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-webkit-darwin.png deleted file mode 100644 index f8c3593e71..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-11-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-chromium-darwin.png deleted file mode 100644 index 752b8b8ccb..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-firefox-darwin.png deleted file mode 100644 index 57af6cd697..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-webkit-darwin.png deleted file mode 100644 index dac6024c0b..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-12-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-chromium-darwin.png deleted file mode 100644 index 8d5bae02c6..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-firefox-darwin.png deleted file mode 100644 index 0ab7c32c1b..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-webkit-darwin.png deleted file mode 100644 index f4f18d2337..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-13-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-chromium-darwin.png deleted file mode 100644 index d88fe43536..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-firefox-darwin.png deleted file mode 100644 index 41f365ca22..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-webkit-darwin.png deleted file mode 100644 index f045c41f33..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-14-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-chromium-darwin.png deleted file mode 100644 index 720039a52f..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-firefox-darwin.png deleted file mode 100644 index 0b4e1d3fc6..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-webkit-darwin.png deleted file mode 100644 index 1630023aa4..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-2-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-chromium-darwin.png deleted file mode 100644 index 491f713e4e..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-firefox-darwin.png deleted file mode 100644 index 95737b2d32..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-webkit-darwin.png deleted file mode 100644 index 4c493fe66c..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-3-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-chromium-darwin.png deleted file mode 100644 index 5f497300ef..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-firefox-darwin.png deleted file mode 100644 index 9e9316eca4..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-webkit-darwin.png deleted file mode 100644 index 0e2972a68d..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-4-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-chromium-darwin.png deleted file mode 100644 index eac54c7cee..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-firefox-darwin.png deleted file mode 100644 index 7af6efc8c1..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-webkit-darwin.png deleted file mode 100644 index 68ed5d05fa..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-5-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-chromium-darwin.png deleted file mode 100644 index 0ad5ed150f..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-firefox-darwin.png deleted file mode 100644 index b119b1ba92..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-webkit-darwin.png deleted file mode 100644 index e15118b7e5..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-6-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-chromium-darwin.png deleted file mode 100644 index cd04ad0bb3..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-firefox-darwin.png deleted file mode 100644 index 620ea5f544..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-webkit-darwin.png deleted file mode 100644 index 6ef919d6cb..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-7-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-chromium-darwin.png deleted file mode 100644 index 84737331ca..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-firefox-darwin.png deleted file mode 100644 index ec8b0a3482..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-webkit-darwin.png deleted file mode 100644 index b4cda397bb..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-8-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-chromium-darwin.png deleted file mode 100644 index ba40f399aa..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-firefox-darwin.png deleted file mode 100644 index f9f1fee743..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-webkit-darwin.png deleted file mode 100644 index 926377753b..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-organize-columns-9-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-chromium-darwin.png deleted file mode 100644 index 5899ceca33..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-firefox-darwin.png deleted file mode 100644 index ba914910db..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-webkit-darwin.png deleted file mode 100644 index dff034ffe3..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-chromium-darwin.png deleted file mode 100644 index 8a4db1dc8d..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-firefox-darwin.png deleted file mode 100644 index 8a13eaee9d..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-webkit-darwin.png deleted file mode 100644 index bec2bd5bf5..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-search-2-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-chromium-darwin.png deleted file mode 100644 index 86228641fc..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-firefox-darwin.png deleted file mode 100644 index 76f93d3d1d..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-webkit-darwin.png deleted file mode 100644 index 7438bf94dc..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-complex-table-operations-can-select-distinct-values-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-simple-table-operations-advanced-filters-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-simple-table-operations-advanced-filters-1-chromium-darwin.png deleted file mode 100644 index 963b21f25d..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-simple-table-operations-advanced-filters-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-simple-table-operations-advanced-filters-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-simple-table-operations-advanced-filters-1-firefox-darwin.png deleted file mode 100644 index b6d459455e..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-simple-table-operations-advanced-filters-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-simple-table-operations-advanced-filters-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-simple-table-operations-advanced-filters-1-webkit-darwin.png deleted file mode 100644 index 6624b0d33a..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-simple-table-operations-advanced-filters-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-simple-table-operations-go-to-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-simple-table-operations-go-to-1-chromium-darwin.png deleted file mode 100644 index 43ba526dcd..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-simple-table-operations-go-to-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-simple-table-operations-go-to-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-simple-table-operations-go-to-1-firefox-darwin.png deleted file mode 100644 index 8c8c864050..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-simple-table-operations-go-to-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-simple-table-operations-go-to-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-simple-table-operations-go-to-1-webkit-darwin.png deleted file mode 100644 index 8d8fdde6ad..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-simple-table-operations-go-to-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-simple-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-simple-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-chromium-darwin.png deleted file mode 100644 index ee66c983ce..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-simple-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-simple-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-simple-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-firefox-darwin.png deleted file mode 100644 index 3253edbfba..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-simple-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-simple-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-simple-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-webkit-darwin.png deleted file mode 100644 index ce1b5b00be..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-simple-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-table-operations-advanced-filters-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-table-operations-advanced-filters-1-chromium-darwin.png deleted file mode 100644 index 963b21f25d..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-table-operations-advanced-filters-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-table-operations-advanced-filters-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-table-operations-advanced-filters-1-firefox-darwin.png deleted file mode 100644 index b6d459455e..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-table-operations-advanced-filters-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-table-operations-advanced-filters-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-table-operations-advanced-filters-1-webkit-darwin.png deleted file mode 100644 index 6624b0d33a..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-table-operations-advanced-filters-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-table-operations-go-to-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-table-operations-go-to-1-chromium-darwin.png deleted file mode 100644 index becbc2600a..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-table-operations-go-to-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-table-operations-go-to-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-table-operations-go-to-1-firefox-darwin.png deleted file mode 100644 index 8c8c864050..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-table-operations-go-to-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-table-operations-go-to-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-table-operations-go-to-1-webkit-darwin.png deleted file mode 100644 index 8d8fdde6ad..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-table-operations-go-to-1-webkit-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-chromium-darwin.png b/tests/table.spec.ts-snapshots/tests-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-chromium-darwin.png deleted file mode 100644 index ee66c983ce..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-chromium-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-firefox-darwin.png b/tests/table.spec.ts-snapshots/tests-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-firefox-darwin.png deleted file mode 100644 index 3253edbfba..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-firefox-darwin.png and /dev/null differ diff --git a/tests/table.spec.ts-snapshots/tests-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-webkit-darwin.png b/tests/table.spec.ts-snapshots/tests-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-webkit-darwin.png deleted file mode 100644 index ce1b5b00be..0000000000 Binary files a/tests/table.spec.ts-snapshots/tests-table-operations-quick-filters-with-the-advanced-filters-in-above-test-applied-1-webkit-darwin.png and /dev/null differ diff --git a/tests/utils.ts b/tests/utils.ts index a6bb6c287a..6aa7695ab0 100644 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -1,4 +1,4 @@ -import { Locator } from '@playwright/test'; +import { Locator, expect, Page } from '@playwright/test'; import shortid from 'shortid'; export enum TableTypes { @@ -122,4 +122,79 @@ export async function pasteInMonaco( } } -export default { generateVarName, pasteInMonaco, typeInMonaco }; +/** + * Wait for loading status of iris grid to disappear + * @param page + */ + +export async function waitForLoadingDone(page: Page) { + await expect( + page.locator('.iris-grid .iris-grid-loading-status') + ).toHaveCount(0); +} + +/** + * Drags element to target and waits for drop indicator to show before releasing. Origin is the top-left of the page. + * + * Note: Can slow down drag by increasing the # of steps. Webkit is especially finicky if the drag happens too quick + * Not too sure why but if this is no longer the case the steps param can be removed + * + * @param element Locator for element to be dragged + * @param target Locator for element to drag to + * @param targetIndicator Locator for droppable area that shows a dropping state + * @param offsetY Vertical adjustment from destination element + * @param steps Intermediate mouse move events on the way to destination + */ +export async function dragComponent( + element: Locator, + target: Locator, + targetIndicator: Locator, + offsetY = 0, + steps = 100 +) { + const page = element.page(); + const destinationPos = await target.boundingBox(); + if (destinationPos === null) throw new Error('element not found'); + + await expect(targetIndicator).toHaveCount(0); + + await element.hover(); + await page.mouse.down(); + await page.mouse.move( + destinationPos.x + destinationPos.width / 2, + destinationPos.y + destinationPos.height / 2 + offsetY, + { + steps, + } + ); + + await expect(targetIndicator).not.toHaveCount(0); + await page.mouse.up(); + await expect(targetIndicator).toHaveCount(0); + + await waitForLoadingDone(page); +} + +/** + * Open the specified table option in the table sidebar + * @param page Test page to execute on + * @param tableOption Name of the table option to open. + */ +export async function openTableOption( + page: Page, + tableOption: string +): Promise { + await page.locator(`data-testid=menu-item-${tableOption}`).click(); + + // Wait until the table option has fully appeared, by checking that the top level menu is no longer visible + await expect(page.getByText('Table Options')).toHaveCount(0); +} + +export default { + generateVarName, + pasteInMonaco, + typeInMonaco, + waitForLoadingDone, + dragComponent, + openTableOption, +};