This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,7 @@ describe('live visualisation', () => {
237
237
cy . get ( '[data-cy="formatsqlbtn"]' ) . click ( )
238
238
239
239
// Verify the changed text
240
+ cy . wait ( waitTime )
240
241
cy . get ( '[data-cy="usersqltext"]' ) . should ( 'contain' ,
241
242
'SELECT\n' +
242
243
' table1.Name,\n' +
Original file line number Diff line number Diff line change @@ -436,8 +436,10 @@ <h4 style="color: {{ statusMessageColour }};" data-cy="statusmsg"> {{ statu
436
436
// Retrieve the SQL and chart settings for the newly chosen visualisation from the server
437
437
$http . get ( "/x/visget/[[ .DB.Info.Owner ]]/[[ .DB.Info.Database ]]?visname=" + newVis ) . then (
438
438
function success ( response ) {
439
- // Clear any existing status message
440
- $scope . statusMessage = "" ;
439
+ if ( execNewVis ) {
440
+ // Clear any existing status message
441
+ $scope . statusMessage = "" ;
442
+ }
441
443
442
444
// Apply the retrieved information
443
445
document . getElementById ( "savename" ) . value = newVis ;
@@ -554,10 +556,12 @@ <h4 style="color: {{ statusMessageColour }};" data-cy="statusmsg"> {{ statu
554
556
$scope . db . Records = { } ;
555
557
}
556
558
} , function failure ( response ) {
557
- // Retrieving visualisation text failed, so display the returned error message
558
- $scope . statusMessageColour = "red" ;
559
- $scope . statusMessage = nowString ( ) + "Retrieving visualisation failed: " + response . data ;
560
- $scope . showVis = false ;
559
+ if ( execNewVis ) {
560
+ // Retrieving visualisation text failed, so display the returned error message
561
+ $scope . statusMessageColour = "red" ;
562
+ $scope . statusMessage = nowString ( ) + "Retrieving visualisation failed: " + response . data ;
563
+ $scope . showVis = false ;
564
+ }
561
565
}
562
566
)
563
567
}
You can’t perform that action at this time.
0 commit comments