Skip to content

Commit

Permalink
fix: project IPFS failure test to destroy request before route load
Browse files Browse the repository at this point in the history
  • Loading branch information
aziolek committed May 2, 2024
1 parent 5c42bbe commit 948ff90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/cypress/e2e/project.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,16 @@ Object.values(viewports).forEach(({ device, viewportWidth, viewportHeight }) =>
});

beforeEach(() => {
cy.intercept('GET', '**/ipfs/**', req => {
req.destroy();
});

mockCoinPricesServer();
localStorage.setItem(IS_ONBOARDING_DONE, 'true');
visitWithLoader(ROOT_ROUTES.projects.absolute);
});

it('entering project view shows Toast with info about IPFS failure when all providers fail', () => {
cy.intercept('GET', '**/ipfs/**', req => {
req.destroy();
});

cy.get('[data-test=Toast--ipfsMessage').should('be.visible');
});
Expand Down

0 comments on commit 948ff90

Please sign in to comment.