chore: fix few tests looking for connect your vega wallet string (#2284)
This commit is contained in:
parent
6ba7ce5e7f
commit
c450f57e8d
@ -34,7 +34,10 @@ describe('fills', { tags: '@regression' }, () => {
|
||||
cy.mockTradingPage();
|
||||
cy.visit('/#/markets/market-0');
|
||||
cy.getByTestId('Fills').click();
|
||||
cy.getByTestId('tab-fills').contains('Please connect Vega wallet');
|
||||
cy.getByTestId('tab-fills').should(
|
||||
'contain.text',
|
||||
'Connect your Vega wallet'
|
||||
);
|
||||
cy.connectVegaWallet();
|
||||
validateFillsDisplayed();
|
||||
});
|
||||
|
@ -24,7 +24,6 @@ describe('orders list', { tags: '@smoke' }, () => {
|
||||
cy.mockGQLSubscription(subscriptionMocks);
|
||||
cy.visit('/#/markets/market-0');
|
||||
cy.getByTestId('Orders').click();
|
||||
cy.getByTestId('tab-orders').contains('Please connect Vega wallet');
|
||||
cy.connectVegaWallet();
|
||||
cy.wait('@Orders').then(() => {
|
||||
expect(subscriptionMocks.OrdersUpdate).to.be.calledOnce;
|
||||
@ -128,7 +127,6 @@ describe('subscribe orders', { tags: '@smoke' }, () => {
|
||||
cy.mockGQLSubscription(subscriptionMocks);
|
||||
cy.visit('/#/markets/market-0');
|
||||
cy.getByTestId('Orders').click();
|
||||
cy.getByTestId('tab-orders').contains('Please connect Vega wallet');
|
||||
cy.connectVegaWallet();
|
||||
cy.wait('@Orders').then(() => {
|
||||
expect(subscriptionMocks.OrdersUpdate).to.be.calledOnce;
|
||||
|
@ -8,7 +8,10 @@ describe('positions', { tags: '@smoke' }, () => {
|
||||
it('renders positions on trading page', () => {
|
||||
cy.visit('/#/markets/market-0');
|
||||
cy.getByTestId('Positions').click();
|
||||
cy.getByTestId('tab-positions').contains('Please connect Vega wallet');
|
||||
cy.getByTestId('tab-positions').should(
|
||||
'contain.text',
|
||||
'Connect your Vega wallet'
|
||||
);
|
||||
|
||||
cy.connectVegaWallet();
|
||||
validatePositionsDisplayed();
|
||||
|
Loading…
Reference in New Issue
Block a user