@@ -101,32 +101,36 @@ end
101
101
end
102
102
103
103
@testset " Test different display types" begin
104
- sol1 = get_sol ()
105
- sol2 = get_sol (; limit = 1.2 )
106
-
107
- inspect (sol1; display= BrowserDisp (), restart= true , reset= true )
108
- # change observable
109
- empty! (NDI. APPSTATE[]. tsplots[]); notify (NDI. APPSTATE[]. tsplots)
110
- NDI. APPSTATE[]. tsplots[][" ts-1" ] = NDI. TimeseriesPlot (selcomp= [EIndex (i) for i in 1 : 7 ], states= [:P ])
111
- # notify(NDI.APPSTATE[].tsplots) # does not work wihtout display
112
- inspect (sol2) # this should update the plot
113
- inspect (sol2, reset= true )
114
-
115
- # switch to electron
116
- inspect (sol1; display= ElectronDisp ())
117
- @test NDI. BROWSER_STATE[:handler ] == nothing
118
- empty! (NDI. APPSTATE[]. tsplots[]); notify (NDI. APPSTATE[]. tsplots)
119
- NDI. APPSTATE[]. tsplots[][" ts-1" ] = NDI. TimeseriesPlot (selcomp= [EIndex (i) for i in 1 : 7 ], states= [:P ])
120
- notify (NDI. APPSTATE[]. tsplots)
121
- inspect (sol2) # this should update the plot
122
-
123
- # switch to server
124
- inspect (sol1; display= ServerDisp (), restart= true )
125
- @test NDI. BROWSER_STATE[:handler ] == nothing
126
- empty! (NDI. APPSTATE[]. tsplots[]); notify (NDI. APPSTATE[]. tsplots)
127
- NDI. APPSTATE[]. tsplots[][" ts-1" ] = NDI. TimeseriesPlot (selcomp= [EIndex (i) for i in 1 : 7 ], states= [:P ])
128
- # notify(NDI.APPSTATE[].tsplots) # does not work without session open
129
- inspect (sol2) # this should update the plot
104
+ if ! haskey (ENV , " GITHUB_ACTIONS" )
105
+ sol1 = get_sol ()
106
+ sol2 = get_sol (; limit = 1.2 )
107
+
108
+ inspect (sol1; display= BrowserDisp (), restart= true , reset= true )
109
+ # change observable
110
+ empty! (NDI. APPSTATE[]. tsplots[]); notify (NDI. APPSTATE[]. tsplots)
111
+ NDI. APPSTATE[]. tsplots[][" ts-1" ] = NDI. TimeseriesPlot (selcomp= [EIndex (i) for i in 1 : 7 ], states= [:P ])
112
+ # notify(NDI.APPSTATE[].tsplots) # does not work wihtout display
113
+ inspect (sol2) # this should update the plot
114
+ inspect (sol2, reset= true )
115
+
116
+ # switch to electron
117
+ inspect (sol1; display= ElectronDisp ())
118
+ @test NDI. BROWSER_STATE[:handler ] == nothing
119
+ empty! (NDI. APPSTATE[]. tsplots[]); notify (NDI. APPSTATE[]. tsplots)
120
+ NDI. APPSTATE[]. tsplots[][" ts-1" ] = NDI. TimeseriesPlot (selcomp= [EIndex (i) for i in 1 : 7 ], states= [:P ])
121
+ notify (NDI. APPSTATE[]. tsplots)
122
+ inspect (sol2) # this should update the plot
123
+
124
+ # switch to server
125
+ inspect (sol1; display= ServerDisp (), restart= true )
126
+ @test NDI. BROWSER_STATE[:handler ] == nothing
127
+ empty! (NDI. APPSTATE[]. tsplots[]); notify (NDI. APPSTATE[]. tsplots)
128
+ NDI. APPSTATE[]. tsplots[][" ts-1" ] = NDI. TimeseriesPlot (selcomp= [EIndex (i) for i in 1 : 7 ], states= [:P ])
129
+ # notify(NDI.APPSTATE[].tsplots) # does not work without session open
130
+ inspect (sol2) # this should update the plot
131
+ else
132
+ @info " Skip test for different display types on GitHub Actions"
133
+ end
130
134
end
131
135
132
136
@testset " Widget Tests" begin
0 commit comments