Skip to content

Commit 7a92c20

Browse files
committed
Replace launcher check with 'Close All' cmd that should result in launcher
1 parent 78c4d99 commit 7a92c20

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

tests/acceptance/RobotLab/01_IPython_Notebook.robot

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,13 @@ Chrome
1010
Firefox
1111
headlessfirefox
1212

13-
*** Keywords ***
14-
Run Selenium keyword and return status
15-
[Documentation]
16-
... Run Selenium keyword (optionally with arguments)
17-
... and return status without screenshots on failure
18-
[Arguments] ${keyword} @{arguments}
19-
${tmp}= Register keyword to run on failure No operation
20-
${status}= Run keyword and return status ${keyword} @{arguments}
21-
Register keyword to run on failure ${tmp}
22-
[Return] ${status}
23-
2413
Can RobotLab make an IPython Notebook?
2514
[Arguments] ${browser}
2615
[Documentation] Try a basic IPython Notebook
2716
Set Tags browser:${browser}
2817
${prefix} = Set Variable ipython_${browser}_
2918
Open JupyterLab browser=${browser}
30-
${is_launcher}= Run Selenium keyword and return status
31-
... Page should contain element
32-
... xpath://div[@class='jp-LauncherCard']
33-
Run keyword if not ${is_launcher}
34-
... Execute JupyterLab Command New Launcher
19+
Execute JupyterLab Command Close All
3520
Launch a new JupyterLab Document Python 3 Notebook
3621
Capture Page Screenshot ${prefix}_01_notebook.png
3722
Add and Run JupyterLab Code Cell print("Hello" + " World")

tests/acceptance/RobotLab/02_Robot_Notebook.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Can RobotLab make a Robot Notebook?
1717
Set Tags browser:${browser}
1818
${prefix} = Set Variable robot_${browser}_
1919
Open JupyterLab browser=${browser}
20+
Execute JupyterLab Command Close All
2021
Launch a new JupyterLab Document Robot Framework Notebook
2122
Capture Page Screenshot ${prefix}_01_notebook.png
2223
Add and Run JupyterLab Code Cell | *Test Case* |${\n}| Hello |${\n}| | Log | Hello World

tests/acceptance/RobotLab/__init__.robot

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ Suite Setup Start New RobotLab Server
33
Suite Teardown Terminate All Jupyter Servers
44
Test Teardown Reset JupyterLab and Close
55
Force Tags ui:lab
6-
Library SeleniumLibrary
76
Library JupyterLibrary
87
Resource ../../resources/Launch.robot

0 commit comments

Comments
 (0)