Skip to content

Commit 05ca8bc

Browse files
committed
test: ✅ reduce screenshot sensitivity
1 parent 53e2f7f commit 05ca8bc

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

apps/501-recipe-preview-testronaut-solution/playwright-testronaut.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export default defineConfig(
1616
}),
1717
{
1818
timeout,
19+
expect: { toHaveScreenshot: { maxDiffPixelRatio: 0.01 } },
1920
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2021
use: {
2122
actionTimeout: timeout,
2223
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
2324
trace: 'on-first-retry',
2425
},
25-
2626
/* Configure projects for major browsers */
2727
projects: [
2828
{

apps/501-recipe-preview-testronaut-starter/playwright-testronaut.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export default defineConfig(
1616
}),
1717
{
1818
timeout,
19+
expect: { toHaveScreenshot: { maxDiffPixelRatio: 0.01 } },
1920
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2021
use: {
2122
actionTimeout: timeout,
2223
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
2324
trace: 'on-first-retry',
2425
},
25-
2626
/* Configure projects for major browsers */
2727
projects: [
2828
{

apps/502-recipe-filter-testronaut-solution/playwright-testronaut.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export default defineConfig(
1616
}),
1717
{
1818
timeout,
19+
expect: { toHaveScreenshot: { maxDiffPixelRatio: 0.01 } },
1920
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2021
use: {
2122
actionTimeout: timeout,
2223
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
2324
trace: 'on-first-retry',
2425
},
25-
2626
/* Configure projects for major browsers */
2727
projects: [
2828
{

apps/502-recipe-filter-testronaut-starter/playwright-testronaut.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export default defineConfig(
1616
}),
1717
{
1818
timeout,
19+
expect: { toHaveScreenshot: { maxDiffPixelRatio: 0.01 } },
1920
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2021
use: {
2122
actionTimeout: timeout,
2223
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
2324
trace: 'on-first-retry',
2425
},
25-
2626
/* Configure projects for major browsers */
2727
projects: [
2828
{

apps/503-recipe-search-testronaut-solution/playwright-testronaut.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export default defineConfig(
1616
}),
1717
{
1818
timeout,
19+
expect: { toHaveScreenshot: { maxDiffPixelRatio: 0.01 } },
1920
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2021
use: {
2122
actionTimeout: timeout,
2223
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
2324
trace: 'on-first-retry',
2425
},
25-
2626
/* Configure projects for major browsers */
2727
projects: [
2828
{

apps/503-recipe-search-testronaut-starter/playwright-testronaut.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export default defineConfig(
1616
}),
1717
{
1818
timeout,
19+
expect: { toHaveScreenshot: { maxDiffPixelRatio: 0.01 } },
1920
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2021
use: {
2122
actionTimeout: timeout,
2223
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
2324
trace: 'on-first-retry',
2425
},
25-
2626
/* Configure projects for major browsers */
2727
projects: [
2828
{

apps/504-playwright-visual-regression-testing-solution/playwright-testronaut.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export default defineConfig(
1616
}),
1717
{
1818
timeout,
19+
expect: { toHaveScreenshot: { maxDiffPixelRatio: 0.01 } },
1920
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2021
use: {
2122
actionTimeout: timeout,
2223
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
2324
trace: 'on-first-retry',
2425
},
25-
2626
/* Configure projects for major browsers */
2727
projects: [
2828
{

apps/504-playwright-visual-regression-testing-starter/playwright-testronaut.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export default defineConfig(
1616
}),
1717
{
1818
timeout,
19+
expect: { toHaveScreenshot: { maxDiffPixelRatio: 0.01 } },
1920
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2021
use: {
2122
actionTimeout: timeout,
2223
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
2324
trace: 'on-first-retry',
2425
},
25-
2626
/* Configure projects for major browsers */
2727
projects: [
2828
{

0 commit comments

Comments
 (0)