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