Closed david-boydell closed 4 years ago
Was there a solution to this issue please? I'm getting the same error, with a different offset.
@lucidity-joe I believe this happens when you try to snapshot an image that is larger than the viewport. Try resizing the viewport before taking the snapshot and see if that resolves your issue.
Describe the bug I receive the error
The value of "offset" is out of range. It must be >= 0 and <= 22256636. Received -13440
when trying.toMatchImageSnapshot()
To Reproduce
describe('Signed out homepage', () => { it('displays the signed out banner', () => { cy.visit('https://www.test.bbc.co.uk/weatherwatchers').then(() => { cy.get('.banner--intro-signed-out').toMatchImageSnapshot(); }); }); });