Skip to content

Commit 26566c8

Browse files
Test correction
1 parent 4d9fd96 commit 26566c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integration/tests/namespace/test-namespace-overview.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,21 @@ context(
4040

4141
it('checks the visibility of charts', () => {
4242
cy.get('body').then($body => {
43+
// Check if the loading spinner is visible.
4344
if ($body.find('[aria-label="Loading"]').length) {
4445
cy.get('ui5-busy-indicator').should('be.visible');
46+
// Check if the error message is visible when error occurs.
4547
} else if ($body.find('.pods-metrics-error').length) {
4648
cy.get(
4749
'ui5-card-header[title-text="Error while loading memory consumption data"]',
4850
).should('be.visible');
51+
// Check if the proper charts are visible.
4952
} else if ($body.find('.radial-chart-card').length) {
5053
cy.contains('CPU Usage').should('be.visible');
5154
cy.contains('Memory Usage').should('be.visible');
55+
// If there is no any pods usage on the namespace.
56+
} else {
57+
cy.log('Pods metrics data is empty.');
5258
}
5359
});
5460
});

0 commit comments

Comments
 (0)