Skip to content

Commit

Permalink
Make check selector more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-suse committed Oct 14, 2022
1 parent bd132dd commit 3bd5c17
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/e2e/cypress/integration/host_details.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,19 @@ context('Host Details', () => {
it(`should show KVM cloud details correctly`, () => {
cy.loadScenario('host-details-kvm');

cy.get('div').should('contain', selectedHost.kvmCloudDetails.provider);
cy.get('div')
.contains(/^Provider$/)
.next()
.should('contain', selectedHost.kvmCloudDetails.provider);
});

it(`should show Nutanix cloud details correctly`, () => {
cy.loadScenario('host-details-nutanix');

cy.get('div').should('contain', selectedHost.nutanixCloudDetails.provider);
cy.get('div')
.contains(/^Provider$/)
.next()
.should('contain', selectedHost.nutanixCloudDetails.provider);
});

it(`should display provider not recognized message`, () => {
Expand Down

0 comments on commit 3bd5c17

Please sign in to comment.