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.mockTradingPage();
|
||||||
cy.visit('/#/markets/market-0');
|
cy.visit('/#/markets/market-0');
|
||||||
cy.getByTestId('Fills').click();
|
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();
|
cy.connectVegaWallet();
|
||||||
validateFillsDisplayed();
|
validateFillsDisplayed();
|
||||||
});
|
});
|
||||||
|
@ -24,7 +24,6 @@ describe('orders list', { tags: '@smoke' }, () => {
|
|||||||
cy.mockGQLSubscription(subscriptionMocks);
|
cy.mockGQLSubscription(subscriptionMocks);
|
||||||
cy.visit('/#/markets/market-0');
|
cy.visit('/#/markets/market-0');
|
||||||
cy.getByTestId('Orders').click();
|
cy.getByTestId('Orders').click();
|
||||||
cy.getByTestId('tab-orders').contains('Please connect Vega wallet');
|
|
||||||
cy.connectVegaWallet();
|
cy.connectVegaWallet();
|
||||||
cy.wait('@Orders').then(() => {
|
cy.wait('@Orders').then(() => {
|
||||||
expect(subscriptionMocks.OrdersUpdate).to.be.calledOnce;
|
expect(subscriptionMocks.OrdersUpdate).to.be.calledOnce;
|
||||||
@ -128,7 +127,6 @@ describe('subscribe orders', { tags: '@smoke' }, () => {
|
|||||||
cy.mockGQLSubscription(subscriptionMocks);
|
cy.mockGQLSubscription(subscriptionMocks);
|
||||||
cy.visit('/#/markets/market-0');
|
cy.visit('/#/markets/market-0');
|
||||||
cy.getByTestId('Orders').click();
|
cy.getByTestId('Orders').click();
|
||||||
cy.getByTestId('tab-orders').contains('Please connect Vega wallet');
|
|
||||||
cy.connectVegaWallet();
|
cy.connectVegaWallet();
|
||||||
cy.wait('@Orders').then(() => {
|
cy.wait('@Orders').then(() => {
|
||||||
expect(subscriptionMocks.OrdersUpdate).to.be.calledOnce;
|
expect(subscriptionMocks.OrdersUpdate).to.be.calledOnce;
|
||||||
|
@ -8,7 +8,10 @@ describe('positions', { tags: '@smoke' }, () => {
|
|||||||
it('renders positions on trading page', () => {
|
it('renders positions on trading page', () => {
|
||||||
cy.visit('/#/markets/market-0');
|
cy.visit('/#/markets/market-0');
|
||||||
cy.getByTestId('Positions').click();
|
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();
|
cy.connectVegaWallet();
|
||||||
validatePositionsDisplayed();
|
validatePositionsDisplayed();
|
||||||
|
Loading…
Reference in New Issue
Block a user