From 85d5402f7848a15f94e9a4a6d79599588d850c82 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 24 Jul 2024 06:30:40 +0200 Subject: [PATCH] chore: increase screenshot threshold --- e2e/chart.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e2e/chart.spec.ts b/e2e/chart.spec.ts index 7f3e81a4..8654a725 100644 --- a/e2e/chart.spec.ts +++ b/e2e/chart.spec.ts @@ -60,7 +60,9 @@ test.describe('Chart', () => { // Close Plot configurator await page.getByRole('button', { name: 'Plot configurator' }).click(); - await expect(page.locator('canvas')).toHaveScreenshot('Chart-Plot-with_BollingerBands.png'); + await expect(page.locator('canvas')).toHaveScreenshot('Chart-Plot-with_BollingerBands.png', { + threshold: 0.15, + }); // Should assert if indicators have been set // but it's a canvas ... });