Skip to content

Commit 40e043c

Browse files
committed
Fix the focus loss test
1 parent eb6e0a0 commit 40e043c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

atest/05_Features/Completion.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ Invalidates On Cell Change
6060
Invalidates On Focus Loss
6161
Enter Cell Editor 1 line=2
6262
Press Keys None TAB
63-
Click JupyterLab Menu Menu
64-
Enter Cell Editor 1 line=2
63+
Click JupyterLab Menu File
6564
# just to increase chances of catching this on CI (which is slow)
6665
Sleep 4s
6766
Completer Should Not Suggest test
67+
Enter Cell Editor 1 line=2
6868

6969
Uses LSP Completions When Kernel Resoponse Times Out
7070
Configure JupyterLab Plugin {"kernelResponseTimeout": 1, "waitForBusyKernel": true} plugin id=${COMPLETION PLUGIN ID}

atest/Keywords.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Click JupyterLab Menu
184184
[Arguments] ${label}
185185
[Documentation] Click a top-level JupyterLab menu bar item with by ``label``,
186186
... e.g. File, Help, etc.
187-
${xpath} = Set Variable ${JLAB XP TOP}${JLAB XP MENU LABEL}\[text() = '${label}']
187+
${xpath} = Set Variable xpath:${JLAB XP TOP}${JLAB XP MENU LABEL}\[text() = '${label}']
188188
Wait Until Page Contains Element ${xpath}
189189
Mouse Over ${xpath}
190190
Click Element ${xpath}

atest/Variables.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ ${HEADLESS} 1
1919
${CMD PALETTE INPUT} css:#command-palette .lm-CommandPalette-input
2020
${CMD PALETTE ITEM ACTIVE} css:#command-palette .lm-CommandPalette-item.lm-mod-active
2121
${JLAB XP TOP} //div[@id='jp-top-panel']
22-
${JLAB XP MENU ITEM LABEL} //div[@class='lm-Menu-itemLabel']
23-
${JLAB XP MENU LABEL} //div[@class='lm-MenuBar-itemLabel']
22+
${JLAB XP MENU ITEM LABEL} //div[contains(@class, 'lm-Menu-itemLabel')]
23+
${JLAB XP MENU LABEL} //div[contains(@class, 'lm-MenuBar-itemLabel')]
2424
${JLAB XP DOCK TAB} xpath://div[contains(@class, 'lm-DockPanel-tabBar')]//li[contains(@class, 'lm-TabBar-tab')]
2525
${JLAB CSS VERSION} css:.jp-About-version
2626
${JLAB CSS REFRESH FILES} css:button[title="Refresh File List"]

0 commit comments

Comments
 (0)