File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/integration/tests/namespace Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments