diff --git a/apps/token-e2e/src/integration/flow/staking-flow.cy.js b/apps/token-e2e/src/integration/flow/staking-flow.cy.js index e9e84e398..3621305d4 100644 --- a/apps/token-e2e/src/integration/flow/staking-flow.cy.js +++ b/apps/token-e2e/src/integration/flow/staking-flow.cy.js @@ -25,7 +25,7 @@ const ethWalletContainer = '[data-testid="ethereum-wallet"]'; const txTimeout = { timeout: 40000 }; const epochTimeout = { timeout: 10000 }; -context('Staking Flow - with eth and vega wallets connected', function () { +context('Staking Tab - with eth and vega wallets connected', function () { before('visit staking tab and connect vega wallet', function () { cy.vega_wallet_import(); cy.visit('/'); @@ -411,7 +411,7 @@ context('Staking Flow - with eth and vega wallets connected', function () { .and('be.visible'); }); - it('Disassociating all tokens - removes all staked tokens', function () { + it.skip('Disassociating all tokens max - removes all staked tokens', function () { cy.staking_page_associate_tokens('3'); cy.get(vegaWalletUnstakedBalance, txTimeout).should( diff --git a/apps/token-e2e/src/integration/view/staking.cy.js b/apps/token-e2e/src/integration/view/staking.cy.js index 10914a338..4d0aea1d7 100644 --- a/apps/token-e2e/src/integration/view/staking.cy.js +++ b/apps/token-e2e/src/integration/view/staking.cy.js @@ -1,12 +1,5 @@ const guideLink = '[data-testid="staking-guide-link"]'; -const step1 = '[data-testid="staking-step-1"]'; -const step2 = '[data-testid="staking-step-2"]'; -const step3 = '[data-testid="staking-step-3"]'; -const sectionHeader = 'h2'; -const connectToEthBtn = '[data-testid="connect-to-eth-btn"]'; -const connectToVegaBtn = '[data-testid="connect-to-vega-wallet-btn"]'; -const link = '[data-testid="link"]'; -const warning = '[data-testid="callout"]'; +const validators = '[data-testid="node-list-item"]'; context('Staking Page - verify elements on page', function () { before('navigate to staking page', function () { @@ -20,7 +13,7 @@ context('Staking Page - verify elements on page', function () { }); it('should have STAKING ON VEGA header visible', function () { - cy.verify_page_header('Staking on Vega'); + cy.verify_page_header('Staking'); }); it('should have Staking Guide link visible', function () { @@ -34,73 +27,9 @@ context('Staking Page - verify elements on page', function () { ); }); }); - - describe('step 1 section', function () { - it('should have header visible', function () { - cy.get(step1).within(() => { - cy.get(sectionHeader) - .should('be.visible') - .and('have.text', 'Step 1. Connect to a Vega Wallet'); - }); - }); - - it('should have text visible', function () { - cy.get(step1).within(() => { - cy.get(link) - .should('be.visible') - .and('have.text', 'Vega Wallet') - .and('have.attr', 'href', 'https://vega.xyz/wallet'); - }); - }); - - it('should have connect to eth button visible', function () { - cy.get(step1).within(() => { - cy.get(connectToEthBtn) - .should('be.visible') - .and('have.text', 'Connect Ethereum wallet'); - }); - }); - - it('should have connect to vega button visible', function () { - cy.get(step1).within(() => { - cy.get(connectToVegaBtn) - .should('be.visible') - .and('have.text', 'Connect Vega wallet'); - }); - }); - }); - - describe('step 2 section', function () { - it('should have header visible', function () { - cy.get(step2).within(() => { - cy.get(sectionHeader) - .should('be.visible') - .and('have.text', 'Step 2. Associate tokens with a Vega Wallet'); - }); - }); - - it('should have warning visible', function () { - cy.get(step2).within(() => { - cy.get(warning) - .should('be.visible') - .and( - 'have.text', - 'You need to connect to an Ethereum wallet first' - ); - }); - }); - }); - - describe('step 3 section', function () { - it('should have header visible', function () { - cy.get(step3).within(() => { - cy.get(sectionHeader) - .should('be.visible') - .and( - 'have.text', - "Step 3. Select the validator you'd like to nominate" - ); - }); + describe('validators section', function () { + it('should be visible', function () { + cy.get(validators).should('be.visible'); }); }); }); diff --git a/apps/token/src/components/app-banner/app-banner.tsx b/apps/token/src/components/app-banner/app-banner.tsx index f8a24cafd..0933d8ef9 100644 --- a/apps/token/src/components/app-banner/app-banner.tsx +++ b/apps/token/src/components/app-banner/app-banner.tsx @@ -10,7 +10,7 @@ export const AppBanner = () => { if (!bannerMessage) return
; return ( -
+

diff --git a/apps/token/src/components/page-templates/template-sidebar.tsx b/apps/token/src/components/page-templates/template-sidebar.tsx index 8df528c2f..e5ad8846b 100644 --- a/apps/token/src/components/page-templates/template-sidebar.tsx +++ b/apps/token/src/components/page-templates/template-sidebar.tsx @@ -9,10 +9,10 @@ export interface TemplateSidebarProps { export function TemplateSidebar({ children, sidebar }: TemplateSidebarProps) { return ( -

+