@@ -108,4 +108,50 @@ describe("TESTS: Update Manager => Channels", () => {
108108 cy . verifySuccess ( ) ;
109109 cy . get ( "#update-manager-channel > ul > #" + channels . gav . name ) . should ( "not.exist" ) ;
110110 } ) ;
111+
112+ /**
113+ * Check whether there is some item that starts with 'JBoss EAP' text
114+ */
115+ const isJbossEapChannelPrinted = ( $items : JQuery < HTMLElement > ) : boolean => {
116+ for ( let i = 0 ; i < $items . length ; i ++ ) {
117+ const text = $items [ i ] . innerText . trim ( ) ;
118+ if ( text . startsWith ( 'JBoss EAP' ) ) {
119+ return true ;
120+ }
121+ }
122+ return false ;
123+ } ;
124+
125+ /**
126+ * Get channel versions from first revision on updates section
127+ *
128+ * Make sure that there is at least one channel that starts with "JBoss EAP"
129+ */
130+ it ( "Check channel version in installation manager" , ( ) => {
131+ // navigate to Updates section of web-console
132+ cy . navigateToUpdateManagerPage ( managementEndpoint , [ "update-manager" , "updates" ] ) ;
133+
134+ // click on last printed revision (first revision in history)
135+ cy . get ( '#update-manager-update ul li' ) . last ( ) . click ( ) ;
136+
137+ // try to find EAP channel
138+ cy . contains ( 'li.list-group-item' , 'Channel Versions' )
139+ . find ( '.value ul li' )
140+ . should ( ( $items ) => {
141+ expect ( isJbossEapChannelPrinted ( $items ) , '"JBoss EAP" channel not printed' ) . to . equal ( true ) ;
142+ } ) ;
143+ } ) ;
144+
145+ /**
146+ * Get channel versions from first revision on runtimes section
147+ *
148+ * Make sure that there is at least one channel that starts with "JBoss EAP"
149+ */
150+ it ( "Check channel version in runtimes" , ( ) => {
151+ cy . navigateTo ( managementEndpoint , "runtime;path=standalone-server-column~standalone-host-server" ) ;
152+ cy . get ( '#standalone-server-column ul li' ) . first ( ) . click ( ) ;
153+ cy . get ( '#channel-versions li .value' ) . should ( ( $items ) => {
154+ expect ( isJbossEapChannelPrinted ( $items ) , '"JBoss EAP" channel not printed' ) . to . equal ( true ) ;
155+ } ) ;
156+ } ) ;
111157} ) ;
0 commit comments