Skip to content

Commit

Permalink
Update e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Sep 7, 2023
1 parent 17c7bba commit feae09d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
25 changes: 16 additions & 9 deletions test/e2e/cypress/e2e/host_details.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,25 @@ context('Host Details', () => {
.should('eq', 'page');
});

it('should show the host I clicked on in the overview', () => {
cy.get('.grid-flow-col > :nth-child(1) > :nth-child(2) > span').should(
'contain',
selectedHost.hostName
);
it('should show the correct cluster', () => {
cy.get('div')
.contains(/Cluster$/)
.next()
.should('contain', selectedHost.clusterName);
});

it('should show the correct agent version', () => {
cy.get('.grid-flow-col > :nth-child(3) > :nth-child(2) > span').should(
'contain',
selectedHost.agentVersion
);
cy.get('div')
.contains(/Agent Version$/)
.next()
.should('contain', selectedHost.agentVersion);
});

it('should show the correct IP addresses', () => {
cy.get('div')
.contains(/IP addresses$/)
.next()
.should('contain', selectedHost.ipAddresses);
});
});

Expand Down
1 change: 1 addition & 0 deletions test/e2e/cypress/fixtures/host-details/selected_host.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const selectedHost = {
hostName: 'vmhdbprd01',
clusterName: 'hana_cluster_3',
clusterId: '469e7be5-4e20-5007-b044-c6f540a87493',
ipAddresses: '10.80.1.11,10.80.1.13',
azureCloudDetails: {
provider: 'Azure',
vmName: 'vmhdbprd01',
Expand Down

0 comments on commit feae09d

Please sign in to comment.