Skip to content

Commit 01fc857

Browse files
chore: fix system-test-firefox screenshots_spec flake (#20260)
1 parent 619571e commit 01fc857

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

system-tests/projects/e2e/cypress/e2e/screenshots.cy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ describe('taking screenshots', () => {
308308
cy.visit('http://localhost:3322/color/yellow')
309309
cy.screenshot('overwrite-test', {
310310
overwrite: false,
311+
capture: 'viewport',
311312
clip: { x: 10, y: 10, width: 160, height: 80 },
312313
})
313314

@@ -320,6 +321,7 @@ describe('taking screenshots', () => {
320321

321322
cy.screenshot('overwrite-test', {
322323
overwrite: true,
324+
capture: 'viewport',
323325
clip: { x: 10, y: 10, width: 100, height: 50 },
324326
})
325327

@@ -342,6 +344,7 @@ describe('taking screenshots', () => {
342344
cy.viewport(600, 200)
343345
cy.visit('http://localhost:3322/color/yellow')
344346
cy.screenshot('overwrite-test', {
347+
capture: 'viewport',
345348
clip: { x: 10, y: 10, width: 160, height: 80 },
346349
})
347350

@@ -353,6 +356,7 @@ describe('taking screenshots', () => {
353356
})
354357

355358
cy.screenshot('overwrite-test', {
359+
capture: 'viewport',
356360
clip: { x: 10, y: 10, width: 100, height: 50 },
357361
})
358362

0 commit comments

Comments
 (0)