Skip to content

Commit

Permalink
Add aggregation alttxt err msg test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Lanza committed Mar 29, 2024
1 parent ed693e5 commit 16b7bda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e-tests/alttext.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ test('Alt Text', async ({ page }) => {
await expect(plotInformation).toBeVisible();
await plotInformation.click();

// Test error message for aggregated plots
await page.getByRole('radio', { name: 'Degree' }).check();
const aggErrMsg = await page.getByText("Alt text generation is not yet supported for aggregated plots. To generate an alt text, set aggregation to 'None' in the left sidebar.");
await expect(aggErrMsg).toBeVisible();
await page.getByRole('radio', { name: 'None' }).check();

const editPlotInformationButton = await page.getByLabel('Toggle editable descriptions');
await expect(editPlotInformationButton).toBeVisible();
await editPlotInformationButton.click();
Expand Down

0 comments on commit 16b7bda

Please sign in to comment.