kind-artist-92362
11/14/2022, 7:10 PMgray-kilobyte-89541
11/14/2022, 8:09 PMkind-artist-92362
11/14/2022, 8:35 PMkind-artist-92362
11/14/2022, 8:36 PMkind-artist-92362
11/14/2022, 8:36 PMkind-artist-92362
11/14/2022, 8:37 PMkind-artist-92362
11/14/2022, 8:37 PMbillowy-librarian-83114
11/14/2022, 9:05 PMcy.intercept("POST", "**/PostAskServiceForGridData")
gray-kilobyte-89541
11/14/2022, 9:33 PMastonishing-air-69539
11/14/2022, 9:37 PMmysterious-belgium-25713
11/15/2022, 5:30 AMmysterious-belgium-25713
11/15/2022, 8:06 AMmysterious-motherboard-13344
11/15/2022, 12:29 PMcool-businessperson-53870
11/15/2022, 12:40 PMfresh-doctor-14925
11/15/2022, 12:40 PMnutritious-analyst-96582
11/15/2022, 12:40 PMflaky-article-23611
11/15/2022, 12:44 PMloud-magician-68396
11/15/2022, 2:16 PMmysterious-belgium-25713
11/15/2022, 2:18 PMloud-magician-68396
11/15/2022, 2:19 PMloud-magician-68396
11/15/2022, 2:20 PMbillowy-librarian-83114
11/15/2022, 3:06 PMmysterious-belgium-25713
11/15/2022, 3:14 PMbillowy-librarian-83114
11/15/2022, 3:21 PMbusy-wall-71096
11/15/2022, 3:22 PMcy.wait('...')
is blocking pretty much every call that is happening and in consequence times out 😮 I think it only passes if MP3 stream is fast enough to fulfill before waiting begins. Otherwise, it always fails. See screenshots. Could this be related to problems Cypress has with intercepting binary/stream data (https://github.com/cypress-io/cypress/issues/24278 )? Does anyone have any idea what I'm doing incorrectly?
Using:
* Cypress 11.0.1
* NodeJS: 16
* Chrome E2E
Code for reproduction:
describe('E2E: Intercept', () => {
it('Can intercept player related requests without getting blocked', () => {
cy.intercept({
url: 'https://api.energy.ch/sts/energych-player',
}).as('audioStreamRelatedRequest');
cy.visit('https://energy.ch/on-air');
cy.wait(5000);
cy.visit('https://energy.ch/on-air');
cy.wait(5000);
cy.get('button.flex-shrink-0.w-12.h-12.p-2.cursor-pointer')
.filter(':visible')
.click();
// This randomly causes https://energyzuerich.mp3.energy.ch/energyzuerich-high.mp3?ua=energy+website+desktop
// request to hang and consecutive awaited @audioStreamRelatedRequest request never fires, then timeout happens
cy.wait('@audioStreamRelatedRequest')
.its('response.statusCode')
.should('eq', 200);
cy.wait(3000);
});
});
kind-van-46599
11/15/2022, 4:30 PMkind-van-46599
11/15/2022, 4:31 PMbitter-fountain-36713
11/15/2022, 5:44 PMnutritious-army-46708
11/15/2022, 6:16 PMkind-van-46599
11/15/2022, 6:48 PM