vega-frontend-monorepo/apps/token-e2e/src/integration/vesting.cy.js
Radosław Szpiech 359414f353
chore(token): get rid of locators files (#749)
* chore(token): get rid of locators files

* chore(token): refactor some functions and locators

Co-authored-by: Rado <rado@vegaprotocol.io>
2022-07-13 17:23:51 +02:00

29 lines
871 B
JavaScript

const connectPrompt = '[data-testid="eth-connect-prompt"]';
const connectButton = '[data-testid="connect-to-eth-btn"]';
context('Vesting Page - verify elements on page', function () {
before('navigate to vesting page', function () {
cy.visit('/').navigate_to('vesting');
});
describe('with wallets disconnected', function () {
it('should have vesting tab highlighted', function () {
cy.verify_tab_highlighted('vesting');
});
it('should have VESTING header visible', function () {
cy.verify_page_header('Vesting');
});
it('should have connect Eth wallet info', function () {
cy.get(connectPrompt).should('be.visible');
});
it('should have connect Eth wallet button', function () {
cy.get(connectButton)
.should('be.visible')
.and('have.text', 'Connect Ethereum wallet');
});
});
});