Skip to content

Commit

Permalink
intercept some requests and wait for the response - still flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
schiwaa committed Mar 28, 2024
1 parent d29ed04 commit 74ac43a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend-e2e/cypress/e2e/stemwebdialog.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ const len_stemweb_algorithms = stemweb_algorithms.length;

beforeEach(() => {
// cy.intercept('GET', `**/requests/**`).as('any_req');
cy.intercept('GET', `**/requests/**/algorithms/**`).as('algorithms_req');
// cy.intercept('GET', `**/requests/**/algorithms/**`).as('algorithms_req');
cy.intercept('GET', `**/requests/**/stemmata`).as('stemmata_req');
cy.intercept('GET', `**/requests/**/sections`).as('sections_req');
cy.intercept('GET', `**/requests/**/jobstatus/**`).as('jobstatus_req');
cy.intercept('GET', `**/wasm/**`).as('wasm_call');

cy.visit(`${Cypress.env('CY_STEMMAWEB_FRONTEND_URL')}/`);

cy.wait('@algorithms_req').then(interception => {
/* cy.wait('@algorithms_req').then(interception => {
cy.log('interception.request.url: ' + interception.request.url);
cy.log('interception.response.body: ' + interception.response.body);
cy.log('interception.response.statusCode: ' + interception.response.statusCode);
});
}); */

cy.viewport(1600, 900);
});
Expand Down

0 comments on commit 74ac43a

Please sign in to comment.