-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
None
-
None
We have a few keywords to help with cloning keywords in JupyterLab, but they are all based on the "Clone Git Repository" keyword in "JupyterLabLauncher.robot".
Currently this keyword only initiates the clone operation but does not check on its status, and thus we have to rely on arbitrary Sleep times to let the operation complete.
They keyword should be updated to check what the status of the operation is (when it is ongoing, when it finishes, if it finished successfully or not).
The JL UI provides a small pop-up in the lower right corner of the screen informing us of the status of the clone operation. This popup should now be used to check the current status of the operation.
The keyword, after starting the clone, should do the following:
- Verify that the clone in progress popup appears
- Wait until the clone in progress popup disappears
- Verify if the operation was successful (green success popup) or not (red failure popup)
- If the operation is successful, no further action is needed
- If the operation is not successful:
- Verify if a folder with the same name of the git repo we are trying to clone already exists
- If so, remove that folder and try cloning again
- If not, FAIL the execution
- Verify if a folder with the same name of the git repo we are trying to clone already exists