[e2e] Update remaining tests and add missing comparison coverage (#7363)

This commit is contained in:
John Hill
2024-01-11 14:47:00 -08:00
committed by GitHub
parent 6fd7b6f7a3
commit 6ce340cebd
88 changed files with 561 additions and 382 deletions

View File

@ -69,7 +69,7 @@ test.describe('Stacked Plot', () => {
await page.goto(stackedPlot.url);
await page.click('button[title="Edit"]');
await page.getByLabel('Edit Object').click();
await page.getByRole('tab', { name: 'Elements' }).click();
@ -101,7 +101,7 @@ test.describe('Stacked Plot', () => {
await page.goto(stackedPlot.url);
await page.click('button[title="Edit"]');
await page.getByLabel('Edit Object').click();
await page.getByRole('tab', { name: 'Elements' }).click();
@ -187,7 +187,7 @@ test.describe('Stacked Plot', () => {
).toContainText(swgC.name);
// Go into edit mode
await page.click('button[title="Edit"]');
await page.getByLabel('Edit Object').click();
await page.getByRole('tab', { name: 'Config' }).click();
@ -231,8 +231,10 @@ test.describe('Stacked Plot', () => {
test('the legend toggles between aggregate and per child', async ({ page }) => {
await page.goto(stackedPlot.url);
await waitForPlotsToRender(page);
// Go into edit mode
await page.click('button[title="Edit"]');
await page.getByLabel('Edit Object').click();
await page.getByRole('tab', { name: 'Config' }).click();
@ -245,10 +247,14 @@ test.describe('Stacked Plot', () => {
await page.locator('button[title="Save"]').click();
await page.getByRole('listitem', { name: 'Save and Finish Editing' }).click();
await waitForPlotsToRender(page);
await assertAggregateLegendIsVisible(page);
await page.reload();
await waitForPlotsToRender(page);
await assertAggregateLegendIsVisible(page);
});
});