chore(governance): fix failing link test (#4990)

This commit is contained in:
Joe Tsang 2023-10-06 11:00:21 +01:00 committed by GitHub
parent c116762865
commit 63a6e4ecbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,25 +74,12 @@ context(
}); });
it('should be able to see a working link for - find out more about Vega governance', function () { it('should be able to see a working link for - find out more about Vega governance', function () {
// 3001-VOTE-001 // 3001-VOTE-001 // 3002-PROP-001
cy.getByTestId(proposalDocumentationLink) cy.getByTestId(proposalDocumentationLink)
.should('be.visible') .should('be.visible')
.and('have.text', 'Find out more about Vega governance') .and('have.text', 'Find out more about Vega governance')
.and('have.attr', 'href') .and('have.attr', 'href')
.and('equal', governanceDocsUrl); .and('equal', governanceDocsUrl);
// 3002-PROP-001
cy.request(governanceDocsUrl)
.its('body')
.then((body) => {
if (!body.includes('Govern the network')) {
assert.include(
body,
'Govern the network',
`Checking that governance link destination includes 'Govern the network' text`
);
}
});
}); });
// 3007-PNE-021 // 3007-PNE-021