Skip to content

Commit 2bfc31b

Browse files
Test correction
1 parent 26566c8 commit 2bfc31b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ context(
3939
});
4040

4141
it('checks the visibility of charts', () => {
42-
cy.get('body').then($body => {
42+
cy.get('ui5-dynamic-page').then($parent => {
4343
// Check if the loading spinner is visible.
44-
if ($body.find('[aria-label="Loading"]').length) {
44+
if ($parent.find('[aria-label="Loading"]').length) {
4545
cy.get('ui5-busy-indicator').should('be.visible');
4646
// Check if the error message is visible when error occurs.
47-
} else if ($body.find('.pods-metrics-error').length) {
47+
} else if ($parent.find('.pods-metrics-error').length) {
4848
cy.get(
4949
'ui5-card-header[title-text="Error while loading memory consumption data"]',
5050
).should('be.visible');
5151
// Check if the proper charts are visible.
52-
} else if ($body.find('.radial-chart-card').length) {
52+
} else if ($parent.find('.radial-chart-card').length) {
5353
cy.contains('CPU Usage').should('be.visible');
5454
cy.contains('Memory Usage').should('be.visible');
5555
// If there is no any pods usage on the namespace.

0 commit comments

Comments
 (0)