Add a mask to the state indicator to client-side scale test

This commit is contained in:
Frank Noirot
2024-10-08 09:18:24 -04:00
parent e22a9edde8
commit 372f2eebcc

View File

@ -670,6 +670,7 @@ test.describe(
// screen shot should show the sketch
await expect(page).toHaveScreenshot({
maxDiffPixels: 100,
mask: [page.getByTestId('model-state-indicator')],
})
// exit sketch
@ -687,6 +688,7 @@ test.describe(
// second screen shot should look almost identical, i.e. scale should be the same.
await expect(page).toHaveScreenshot({
maxDiffPixels: 100,
mask: [page.getByTestId('model-state-indicator')],
})
})