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', () => {
237237 cy . get ( '[data-cy="formatsqlbtn"]' ) . click ( )
238238
239239 // Verify the changed text
240+ cy . wait ( waitTime )
240241 cy . get ( '[data-cy="usersqltext"]' ) . should ( 'contain' ,
241242 'SELECT\n' +
242243 ' 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
436436 // Retrieve the SQL and chart settings for the newly chosen visualisation from the server
437437 $http . get ( "/x/visget/[[ .DB.Info.Owner ]]/[[ .DB.Info.Database ]]?visname=" + newVis ) . then (
438438 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+ }
441443
442444 // Apply the retrieved information
443445 document . getElementById ( "savename" ) . value = newVis ;
@@ -554,10 +556,12 @@ <h4 style="color: {{ statusMessageColour }};" data-cy="statusmsg"> {{ statu
554556 $scope . db . Records = { } ;
555557 }
556558 } , 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+ }
561565 }
562566 )
563567 }
You can’t perform that action at this time.
0 commit comments