chore: update test asserting SSL (#1136)

This commit is contained in:
Joe Tsang 2022-08-24 17:30:07 +01:00 committed by GitHub
parent e269fdb8d4
commit 50da2a9d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View File

@ -36,7 +36,7 @@ jobs:
uses: actions/setup-go@v3 uses: actions/setup-go@v3
id: go id: go
with: with:
go-version: 1.18 go-version: 1.19
- name: Set up Node 16 - name: Set up Node 16
uses: actions/setup-node@v2 uses: actions/setup-node@v2
id: npm id: npm

View File

@ -20,7 +20,7 @@ jobs:
uses: actions/setup-go@v3 uses: actions/setup-go@v3
id: go id: go
with: with:
go-version: 1.18 go-version: 1.19
- name: Set up Node 16 - name: Set up Node 16
uses: actions/setup-node@v2 uses: actions/setup-node@v2
id: npm id: npm

View File

@ -31,7 +31,7 @@ context('Node switcher', function () {
cy.contains('-').should('not.exist'); cy.contains('-').should('not.exist');
cy.getByTestId('response-time-cell').should('contain.text', 'ms'); cy.getByTestId('response-time-cell').should('contain.text', 'ms');
cy.getByTestId('block-cell').should('not.be.empty'); cy.getByTestId('block-cell').should('not.be.empty');
cy.getByTestId('ssl-cell').should('have.text', 'Yes'); cy.getByTestId('ssl-cell').should('not.be.empty');
}); });
}); });
@ -55,9 +55,12 @@ context('Node switcher', function () {
cy.getByTestId('node-url-custom').click(); cy.getByTestId('node-url-custom').click();
cy.getByTestId(customNodeBtn).within(() => { cy.getByTestId(customNodeBtn).within(() => {
cy.get('input').clear().type('https://api.token.vega.xyz/query'); cy.get('input')
.clear()
.type('https://api.n10.testnet.vega.xyz/graphql');
cy.getByTestId('link').click(); cy.getByTestId('link').click();
}); });
cy.getByTestId('ssl-cell').should('contain.text', 'Yes');
validateNodeError(errorTypeTxt, nodeErrorTxt); validateNodeError(errorTypeTxt, nodeErrorTxt);
}); });