File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -172,14 +172,14 @@ describe('Dashboard refresh', () => {
172172 cy . wait ( 5000 )
173173 cy . getByTestID (
174174 'enable-auto-refresh-button'
175- ) . contains ( 'ENABLE AUTO REFRESH' , { matchCase : false } )
175+ ) . contains ( 'SET AUTO REFRESH' , { matchCase : false } )
176176 } )
177177 } )
178178 it ( 'can timeout on a preset inactivity timeout' , done => {
179179 cy . get < Organization > ( '@org' ) . then ( ( org : Organization ) => {
180180 cy . getByTestID (
181181 'enable-auto-refresh-button'
182- ) . contains ( 'ENABLE AUTO REFRESH' , { matchCase : false } )
182+ ) . contains ( 'SET AUTO REFRESH' , { matchCase : false } )
183183
184184 cy . getByTestID ( 'enable-auto-refresh-button' ) . click ( )
185185 cy . getByTestID ( 'auto-refresh-input' )
@@ -214,7 +214,7 @@ describe('Dashboard refresh', () => {
214214 cy . wait ( 3100 )
215215 cy . getByTestID (
216216 'enable-auto-refresh-button'
217- ) . contains ( 'ENABLE AUTO REFRESH' , { matchCase : false } )
217+ ) . contains ( 'SET AUTO REFRESH' , { matchCase : false } )
218218
219219 cy . wait ( '@refreshQuery' )
220220 cy . wait ( '@refreshQuery' )
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ const DashboardHeader: FC<Props> = ({
258258 text = {
259259 isActive
260260 ? `Refreshing Every ${ autoRefresh . label } `
261- : 'Enable Auto Refresh'
261+ : 'Set Auto Refresh'
262262 }
263263 color = { isActive ? ComponentColor . Secondary : ComponentColor . Default }
264264 onClick = {
Original file line number Diff line number Diff line change @@ -100,9 +100,7 @@ const AutoRefreshButton: FC = () => {
100100 return (
101101 < Button
102102 text = {
103- isActive
104- ? `Refreshing Every ${ autoRefresh ?. label } `
105- : 'Enable Auto Refresh'
103+ isActive ? `Refreshing Every ${ autoRefresh ?. label } ` : 'Set Auto Refresh'
106104 }
107105 color = { isActive ? ComponentColor . Secondary : ComponentColor . Default }
108106 onClick = {
Original file line number Diff line number Diff line change @@ -389,13 +389,13 @@ const FlowHeader: FC = () => {
389389 < Page . ControlBar fullWidth >
390390 < Page . ControlBarLeft >
391391 < Submit />
392+ { isFlagEnabled ( 'flowAutoRefresh' ) && < AutoRefreshButton /> }
392393 < SaveState />
393394 </ Page . ControlBarLeft >
394395 < Page . ControlBarRight >
395396 < PresentationMode />
396397 < TimeZoneDropdown />
397398 < TimeRangeDropdown />
398- { isFlagEnabled ( 'flowAutoRefresh' ) && < AutoRefreshButton /> }
399399 { flow ?. id && (
400400 < >
401401 < SquareButton
You can’t perform that action at this time.
0 commit comments