@@ -24,8 +24,8 @@ const callbackRequest: CallbackRequest = {
2424} ;
2525
2626function getProgressComponent ( ) {
27- return ( store . getState ( ) . contributionsRecord . panels [ 0 ] . component !
28- . children ! [ 0 ] as ComponentState ) ;
27+ return store . getState ( ) . contributionsRecord . panels [ 0 ] . component !
28+ . children ! [ 0 ] as ComponentState ;
2929}
3030
3131describe ( "pendingProgress" , ( ) => {
@@ -47,33 +47,33 @@ describe("pendingProgress", () => {
4747 {
4848 type : "CircularProgress" ,
4949 id : "progress" ,
50- visible : false ,
50+ hidden : false ,
5151 } ,
5252 {
5353 type : "Typography" ,
5454 id : "text" ,
55- visible : false ,
55+ hidden : false ,
5656 } ,
5757 ] ,
5858 } ,
5959 callbacks : [
6060 {
6161 function : { name : "calculate" , parameters : [ ] , return : { } } ,
6262 inputs : [ { id : "run" , property : "clicked" } ] ,
63- outputs : [ { id : "progress" , property : "visible " } ] ,
63+ outputs : [ { id : "progress" , property : "hidden " } ] ,
6464 } ,
6565 {
6666 function : { name : "duplicate" , parameters : [ ] , return : { } } ,
6767 inputs : [ { id : "run" , property : "clicked" } ] ,
6868 outputs : [
69- { id : "progress" , property : "visible " } ,
70- { id : "progress" , property : "visible " } ,
69+ { id : "progress" , property : "hidden " } ,
70+ { id : "progress" , property : "hidden " } ,
7171 ] ,
7272 } ,
7373 {
7474 function : { name : "text" , parameters : [ ] , return : { } } ,
7575 inputs : [ { id : "run" , property : "clicked" } ] ,
76- outputs : [ { id : "text" , property : "visible " } ] ,
76+ outputs : [ { id : "text" , property : "hidden " } ] ,
7777 } ,
7878 {
7979 function : { name : "value" , parameters : [ ] , return : { } } ,
@@ -89,13 +89,13 @@ describe("pendingProgress", () => {
8989 } ) ;
9090 } ) ;
9191
92- it ( "finds progress components targeted by visible callback outputs" , ( ) => {
92+ it ( "finds progress components targeted by hidden callback outputs" , ( ) => {
9393 expect ( getPendingProgressTargets ( [ callbackRequest ] ) ) . toEqual ( [
9494 {
9595 contribPoint : "panels" ,
9696 contribIndex : 0 ,
9797 id : "progress" ,
98- output : { id : "progress" , property : "visible " } ,
98+ output : { id : "progress" , property : "hidden " } ,
9999 } ,
100100 ] ) ;
101101 } ) ;
@@ -108,7 +108,7 @@ describe("pendingProgress", () => {
108108 expect ( targets ) . toHaveLength ( 1 ) ;
109109 } ) ;
110110
111- it ( "ignores non-progress components and non-visible outputs" , ( ) => {
111+ it ( "ignores non-progress components and non-hidden outputs" , ( ) => {
112112 expect (
113113 getPendingProgressTargets ( [ { ...callbackRequest , callbackIndex : 2 } ] ) ,
114114 ) . toEqual ( [ ] ) ;
@@ -137,25 +137,25 @@ describe("pendingProgress", () => {
137137
138138 showPendingProgressTargets ( targets ) ;
139139
140- expect ( getProgressComponent ( ) . visible ) . toBe ( true ) ;
140+ expect ( getProgressComponent ( ) . hidden ) . toBe ( true ) ;
141141
142142 releasePendingProgressTargets ( targets , false ) ;
143143
144- expect ( getProgressComponent ( ) . visible ) . toBe ( false ) ;
144+ expect ( getProgressComponent ( ) . hidden ) . toBe ( false ) ;
145145 } ) ;
146146
147- it ( "keeps progress visible until overlapping callbacks have completed" , ( ) => {
147+ it ( "keeps progress hidden until overlapping callbacks have completed" , ( ) => {
148148 const targets = getPendingProgressTargets ( [ callbackRequest ] ) ;
149149
150150 showPendingProgressTargets ( targets ) ;
151151 showPendingProgressTargets ( targets ) ;
152152
153153 releasePendingProgressTargets ( targets , true ) ;
154154
155- expect ( getProgressComponent ( ) . visible ) . toBe ( true ) ;
155+ expect ( getProgressComponent ( ) . hidden ) . toBe ( true ) ;
156156
157157 releasePendingProgressTargets ( targets , false ) ;
158158
159- expect ( getProgressComponent ( ) . visible ) . toBe ( false ) ;
159+ expect ( getProgressComponent ( ) . hidden ) . toBe ( false ) ;
160160 } ) ;
161- } ) ;
161+ } ) ;
0 commit comments