Skip to content

Commit

Permalink
Include e2e test for the warning banner
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Sep 23, 2022
1 parent d06647d commit f220510
Show file tree
Hide file tree
Showing 3 changed files with 806 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .photofinish.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ files = ["./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51

files = ["./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_ha_cluster_discovery_unnamed.json"]

[cluster-unknown-provider]

files = ["./test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_unknown_provider.json"]

[host-details-azure]

files = ["./test/fixtures/scenarios/healthy-27-node-SAP-cluster/9cd46919-5f19-59aa-993e-cf3736c71053_cloud_discovery.json"]
Expand Down
18 changes: 18 additions & 0 deletions test/e2e/cypress/integration/hana_cluster_details.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,22 @@ context('HANA database details', () => {
cy.get('.tn-check-result-row').should('have.length', 68);
});
});

describe('Cluster with unknown provider', () => {
before(() => {
cy.loadScenario('cluster-unknown-provider');
cy.visit(`/clusters/${availableHanaCluster.id}`);
});

it(`should show a warning message in the check selection view`, () => {
cy.contains('button', 'Settings').click();
cy.get('[data-testid="warning-banner"]').contains('The following catalog is valid for on-premise bare metal platforms.');
});

it(`should show a warning message in the checks results view`, () => {
cy.visit(`/clusters/${availableHanaCluster.id}/checks/results`);
cy.get('[data-testid="warning-banner"]').contains('The following results are valid for on-premise bare metal platforms.');
});

});
});
Loading

0 comments on commit f220510

Please sign in to comment.