Skip to content

test: introduce visual regression testing for styles refactoring#2610

Draft
lllarsen wants to merge 2 commits into
testfrom
lily/visualregressiontesting
Draft

test: introduce visual regression testing for styles refactoring#2610
lllarsen wants to merge 2 commits into
testfrom
lily/visualregressiontesting

Conversation

@lllarsen
Copy link
Copy Markdown
Contributor

@lllarsen lllarsen commented Jun 3, 2026

Summary

Introduces visual regression testing for refactoring of styles

Related Issues

Tooling for #2602

Screenshots / UI Changes

N/A

i18n

N/A

Tests & Build

  • npm run lint passes
  • npm test passes (or N/A)
  • npm run build succeeds

@lllarsen lllarsen force-pushed the lily/visualregressiontesting branch from 00f0151 to 4412a4d Compare June 5, 2026 17:39
@lllarsen lllarsen deployed to dev-lily June 5, 2026 17:39 — with GitHub Actions Active
await page
.getByRole('menuitem', { name: 'Baseline Baseline search' })
.click();
await expect(page).toHaveScreenshot();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one can go.

Comment on lines +22 to +34
await expect(page).toHaveScreenshot();

await page.getByRole('button', { name: '1/1/2015', exact: true }).click();
await expect(page).toHaveScreenshot();

await page.getByRole('button', { name: '/1/2015' }).click();

await openEndDateCalendar.click();
await page.getByRole('button', { name: '2015' }).click();
await expect(page).toHaveScreenshot();

await page.getByRole('button', { name: '1/1/2015', exact: true }).click();
await expect(page).toHaveScreenshot();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These can go. The calendar is pretty much a default angular component.

Comment on lines 7 to +66
@@ -20,6 +22,8 @@ test('Map: Gridlines Overlay toggle updates checkbox state', async ({
});

await layerButton.click();
await expect(page).toHaveScreenshot();

await gridlinesItem.click();

await layerButton.click();
@@ -35,6 +39,8 @@ test('Map: Coherence Layer activates when a month range is selected', async ({
const coherenceItem = page.getByRole('menuitem', { name: 'Coherence Layer' });

await layerButton.click();
await expect(page).toHaveScreenshot();

await coherenceItem.click();
await page.getByRole('menuitem', { name: 'Mar, Apr, May' }).click();

@@ -51,10 +57,14 @@ test('Map: switch base layer between Satellite and Street', async ({
const layerIcon = layerButton.locator('mat-icon.control-icon');

await layerButton.click();
await expect(page).toHaveScreenshot();

await page.getByRole('menuitem', { name: 'Street Layer' }).click();
await expect(layerIcon).toHaveText('directions_car');

await layerButton.click();
await expect(page).toHaveScreenshot();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these look the same on my machine.

await sbasFiltersButton.click();

await page.getByRole('textbox', { name: 'Start Date' }).fill('9/1/2018');
await expect(page).toHaveScreenshot();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this up so it's 'both empty' and 'both filled' for date filters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants