For an existing View in a Preview, ensure we pull the same ActionCollection (#7632)

* ensure action collection returned is the cached one from the same view

* add test

* use async await
This commit is contained in:
Scott Bell
2024-03-26 15:11:23 +01:00
committed by GitHub
parent 493b31d0b9
commit 539138437b
3 changed files with 17 additions and 34 deletions

View File

@ -69,5 +69,9 @@ test.describe('Preview mode', () => {
await page.getByLabel('Overlay').getByLabel('More actions').click();
await expect(page.getByLabel('Export Table Data')).toBeVisible();
await expect(page.getByLabel('Export Marked Rows')).toBeVisible();
await expect(page.getByLabel('Export Marked Rows')).toBeDisabled();
await page.getByLabel('Pause').click();
const tableWrapper = page.getByLabel('Preview Container').locator('div.c-table-wrapper');
await expect(tableWrapper).toHaveClass(/is-paused/);
});
});