Updated fix for failing market test (#392)
* Add additional checks before and after click * Change back to use cy.contains * Add assertion before click * Change assert * Remove force * Add click * Increase timeout
This commit is contained in:
parent
319e14164d
commit
81ea3fe946
@ -55,8 +55,11 @@ export default class MarketPage extends BasePage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
clickOnMarket(text: string) {
|
clickOnMarket(text: string) {
|
||||||
cy.get(`[col-id=${this.marketStateColId}]`)
|
cy.get(`[col-id=${this.marketStateColId}]`).should('be.visible');
|
||||||
.contains(text)
|
cy.get(`[col-id=${this.marketStateColId}]`).contains(text).click();
|
||||||
.click({ force: true });
|
cy.url({ timeout: 8000 }).should(
|
||||||
|
'contain',
|
||||||
|
'portfolio=orders&trade=orderbook'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user