@@ -30,7 +30,7 @@ describe('WorkflowService subscriptions', () => {
3030 expect ( Object . keys ( subscriptions ) . length ) . to . equal ( 1 )
3131 } )
3232 } )
33- it ( '-> Dashboard -> User Profile, should contain 1 subscription (GScan)' , ( ) => {
33+ it ( '-> Dashboard -> User Profile, should contain 1 subscription ("root" = GScan)' , ( ) => {
3434 cy . visit ( '/#/' )
3535 cy . get ( '[href="#/user-profile"]' ) . click ( { force : true } )
3636 cy . contains ( 'h3' , 'Your Profile' )
@@ -39,30 +39,30 @@ describe('WorkflowService subscriptions', () => {
3939 expect ( Object . keys ( subscriptions ) . length ) . to . equal ( 1 )
4040 } )
4141 } )
42- it ( '-> Dashboard -> Workflows, should contain 2 subscriptions (GScan + Tree)' , ( ) => {
42+ it ( '-> Dashboard -> Workflows, should contain 2 subscriptions ("root" = GScan + Dashboard, and "workflow" = Tree)' , ( ) => {
4343 cy . visit ( '/#/' )
4444 cy . get ( '[href="#/workflows/one"]' ) . click ( { force : true } )
4545 // <div id='main'> is used by Lumino, and its initial tab contains the text tree
46- cy . get ( 'div#main' ) . find ( '.c-tree ' )
46+ cy . get ( 'div#main' ) . find ( '.c-task ' )
4747 getSubscriptions ( ) . then ( subscriptions => {
4848 // GScan subscription "root" and the subscription "workflow" used by the Tree view
4949 expect ( Object . keys ( subscriptions ) . length ) . to . equal ( 2 )
5050 expect ( subscriptions . root . observable . closed ) . to . equal ( false )
5151 expect ( subscriptions . workflow . observable . closed ) . to . equal ( false )
5252 } )
5353 } )
54- it ( '-> Dashboard -> Workflows -> Dashboard, should contain 2 subscriptions (GScan + Dashboard)' , ( ) => {
54+ it ( '-> Dashboard -> Workflows -> Dashboard, should contain 1 subscriptions ("root" = GScan + Dashboard)' , ( ) => {
5555 cy . visit ( '/#/' )
56- cy . get ( '[href="#/workflows/one"]' ) . click ( )
56+ cy . get ( '[href="#/workflows/one"]' ) . click ( { force : true } )
5757 // <div id='main'> is used by Lumino, and its initial tab contains the text tree
58- cy . get ( 'div#main' ) . find ( '.c-tree ' )
58+ cy . get ( 'div#main' ) . find ( '.c-task ' )
5959 cy . get ( '[href="#/"]' ) . click ( { force : true } )
6060 cy . get ( 'div.c-dashboard' )
6161 getSubscriptions ( ) . then ( subscriptions => {
6262 expect ( Object . keys ( subscriptions ) . length ) . to . equal ( 1 )
6363 } )
6464 } )
65- it ( '-> Tree, should contain 2 subscriptions (GScan + Tree)' , ( ) => {
65+ it ( '-> Tree, should contain 2 subscriptions ("root" = GScan + Dashboard, and "workflow" = Tree)' , ( ) => {
6666 cy . visit ( '/#/tree/one' )
6767 cy . get ( '.c-header' ) . should ( 'exist' )
6868 getSubscriptions ( ) . then ( subscriptions => {
0 commit comments