mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 00:57:11 +00:00
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:
@ -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/);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user