Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

fix problem of hanging tests in cypress #129

Merged
merged 2 commits into from Oct 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion cypress/integration/Trades.spec.js
Expand Up @@ -18,7 +18,8 @@ context('Trading', () => {
.find('input').should('have.value', `${DAI_AMOUNT_TO_RECEIVE}.00000`);


cy.get(tid("terms-and-conditions")).click();
// NOTE: we need to click this exact spot to avoid downloading PDF file instead (link is in the button as well)
cy.get(tid("terms-and-conditions")).click({ position: "topRight", force: true });
cy.get(tid("initiate-trade")).click();

cy.get(tid("trade-with-builtin-proxy-creation"))
Expand Down