test(governance): un-skip governance tests (#4292)

This commit is contained in:
Joe Tsang 2023-07-13 10:10:48 +01:00 committed by GitHub
parent 27cd8086e1
commit 8b6b904cd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 10 deletions

View File

@ -320,8 +320,8 @@ context(
// 3001-VOTE-076 // 3001-VOTE-076
cy.getByTestId(connectToVegaWalletButton) cy.getByTestId(connectToVegaWalletButton)
.should('be.visible') .should('be.visible')
.and('have.text', 'Connect Vega wallet') .and('have.text', 'Connect Vega wallet');
.click(); cy.getByTestId(connectToVegaWalletButton).click();
cy.getByTestId('connector-jsonRpc').click(); cy.getByTestId('connector-jsonRpc').click();
cy.getByTestId(vegaWalletNameElement).should('be.visible'); cy.getByTestId(vegaWalletNameElement).should('be.visible');
cy.getByTestId(connectToVegaWalletButton).should('not.exist'); cy.getByTestId(connectToVegaWalletButton).should('not.exist');

View File

@ -161,7 +161,7 @@ context('Home Page - verify elements on page', { tags: '@smoke' }, function () {
cy.getByTestId('menu-drawer').should('be.visible'); cy.getByTestId('menu-drawer').should('be.visible');
}); });
it.skip('should have link for proposal page', function () { it('should have link for proposal page', function () {
cy.getByTestId('menu-drawer').within(() => { cy.getByTestId('menu-drawer').within(() => {
cy.get('[href="/proposals"]') cy.get('[href="/proposals"]')
.should('exist') .should('exist')

View File

@ -1,13 +1,12 @@
/// <reference types="cypress" /> /// <reference types="cypress" />
import { import {
navigateTo,
navigation,
turnTelemetryOff, turnTelemetryOff,
waitForSpinner, waitForSpinner,
} from '../../support/common.functions'; } from '../../support/common.functions';
import { import {
enterUniqueFreeFormProposalBody, createTenDigitUnixTimeStampForSpecifiedDays,
enterRawProposalBody,
goToMakeNewProposal, goToMakeNewProposal,
governanceProposalType, governanceProposalType,
} from '../../support/governance.functions'; } from '../../support/governance.functions';
@ -47,12 +46,11 @@ context('View functionality with public key', { tags: '@smoke' }, function () {
.and('contain.text', 'USDC (fake)'); .and('contain.text', 'USDC (fake)');
}); });
it.skip('Unable to submit proposal with public key', function () { it('Unable to submit proposal with public key', function () {
const expectedErrorTxt = `You are connected in a view only state for public key: ${vegaWalletPubKey}. In order to send transactions you must connect to a real wallet.`; const expectedErrorTxt = `You are connected in a view only state for public key: ${vegaWalletPubKey}. In order to send transactions you must connect to a real wallet.`;
navigateTo(navigation.proposals); goToMakeNewProposal(governanceProposalType.RAW);
goToMakeNewProposal(governanceProposalType.FREEFORM); enterRawProposalBody(createTenDigitUnixTimeStampForSpecifiedDays(8));
enterUniqueFreeFormProposalBody('50', 'pub key proposal test');
cy.getByTestId('dialog-content') cy.getByTestId('dialog-content')
.first() .first()
.within(() => { .within(() => {