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) {
|
||||
cy.get(`[col-id=${this.marketStateColId}]`)
|
||||
.contains(text)
|
||||
.click({ force: true });
|
||||
cy.get(`[col-id=${this.marketStateColId}]`).should('be.visible');
|
||||
cy.get(`[col-id=${this.marketStateColId}]`).contains(text).click();
|
||||
cy.url({ timeout: 8000 }).should(
|
||||
'contain',
|
||||
'portfolio=orders&trade=orderbook'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user