I'm trying to mock static video with cy.intercept
cy.intercept('/video.webm', { fixture: 'videos/video.webm' });
And that doesn't seems to work, it still return actual video instead of fixture one. I Also tried specify encoding binary
and null
like that
cy.intercept('/video.webm', { fixture: 'videos/video.webm,null' });
cy.intercept('/video.webm', { fixture: 'videos/video.webm,binary' });
But null
gives me an error - The value "null" is invalid for option "encoding"
And with binary it seems that it returns an empty black video
So what am I doing wrong?