Skip to content

Commit ccdc218

Browse files
committed
Use jp-button
1 parent f710b76 commit ccdc218

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

atest/_resources/Keywords.resource

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,7 @@ Ensure Sidebar Is Closed
239239

240240
Refresh File List
241241
Ensure File Browser is Open
242-
IF [int(part) for part in "${LAB VERSION}".split(".")] >= [3, 4, 0]
243-
Click Element ${JLAB CSS REFRESH FILES}
244-
ELSE
245-
Click Element ${JLAB CSS REFRESH F_OLD}
246-
END
242+
Click Element ${JLAB CSS REFRESH FILES}
247243

248244
Open Context Menu for File
249245
[Arguments] ${file}
@@ -438,7 +434,7 @@ Configure JupyterLab Plugin
438434
Open in Advanced Settings ${plugin id}
439435
Set Editor Content ${settings json} ${CSS USER SETTINGS}
440436
Wait Until Page Contains No errors found
441-
Click Element css:button[title^\='Save User Settings']
437+
Click Element css:jp-button[title^\='Save User Settings']
442438
Wait Until Page Contains No errors found
443439
Click Element ${JLAB XP CLOSE SETTINGS}
444440

atest/_resources/Variables.resource

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ ${JLAB XP MENU LABEL} //div[contains(@class, 'lm-MenuBar-itemLabel')]
2727
${JLAB XP DOCK TAB}
2828
... xpath://div[contains(@class, 'lm-DockPanel-tabBar')]//li[contains(@class, 'lm-TabBar-tab')]
2929
${JLAB CSS VERSION} css:.jp-About-version
30-
${JLAB CSS REFRESH F_OLD} css:button[title="Refresh File List"]
31-
${JLAB CSS REFRESH FILES} css:button[data-command="filebrowser:refresh"]
30+
${JLAB CSS REFRESH FILES} css:jp-button[data-command="filebrowser:refresh"]
3231
${CSS DIALOG OK} css:.jp-Dialog .jp-mod-accept
3332
${MENU OPEN WITH} xpath://div[contains(@class, 'lm-Menu-itemLabel')][contains(text(), "Open With")]
3433
# R is missing on purpose (may need to use .)

atest/suites/07_Configuration.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Settings Should Change Editor Diagnostics
103103
Set Editor Content {"language_servers": {"${server}": {"${setting_key}": ${settings}}}} ${CSS USER SETTINGS}
104104
Wait Until Page Contains No errors found
105105
Capture Page Screenshot 02-default-diagnostics-and-unsaved-settings.png
106-
Click Element css:button[title^\='Save User Settings']
106+
Click Element css:jp-button[title^\='Save User Settings']
107107
Click Element ${JLAB XP CLOSE SETTINGS}
108108
Drag and Drop By Offset ${tab} 0 100
109109
Lab Command ${save command}

0 commit comments

Comments
 (0)