Skip to content

Commit b4cee4d

Browse files
committed
test: and e2e tests for loan and lend market page opening succesfully
1 parent 0287d4f commit b4cee4d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/cypress/e2e/lend/basic.cy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ describe('Basic Access Test', () => {
1616
cy.url(LOAD_TIMEOUT).should('match', /http:\/\/localhost:\d+\/lend\/ethereum\/legal\/?\?tab=disclaimers$/)
1717
cy.title().should('equal', 'Legal - Curve Lend')
1818
})
19+
20+
it('should open a lend market page succesfully', () => {
21+
cy.visit('/lend/ethereum/markets/0x23F5a668A9590130940eF55964ead9787976f2CC') // some WETH lend market on ethereum
22+
cy.get('[data-testid^="detail-page-stack"]', LOAD_TIMEOUT).should('be.visible')
23+
})
1924
})

tests/cypress/e2e/loan/basic.cy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ describe('Basic Access Test', () => {
1111
cy.title(LOAD_TIMEOUT).should('equal', 'Savings crvUSD - Curve')
1212
cy.url().should('match', /http:\/\/localhost:\d+\/crvusd\/ethereum\/scrvUSD\/?$/)
1313
})
14+
15+
it('should open a loan market page succesfully', () => {
16+
cy.visit('/crvusd/ethereum/markets/WBTC') // some WBTC mint market on ethereum
17+
cy.get('[data-testid^="detail-page-stack"]', LOAD_TIMEOUT).should('be.visible')
18+
})
1419
})

0 commit comments

Comments
 (0)