-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
677 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
*** Settings *** | ||
Documentation Cell-level styling works | ||
Library JupyterLibrary | ||
Resource ./_keywords.resource | ||
|
||
Suite Setup Set Attempt Screenshot Directory cells | ||
Suite Teardown Reset JupyterLab And Close With Coverage | ||
Test Teardown Clean Up After Cell Test | ||
|
||
|
||
*** Variables *** | ||
${NS} @deathbeds/jupyterlab-fonts | ||
${META_EMPTY} {} | ||
${META_RED} {"tags":["red"], "${NS}": {"styles": {"background-color": "red"}}} | ||
${META_IMPORT} {"${NS}": {"styles": {"@import": "url('./style.css')"}}} | ||
${RED_TAG} css:[${DATA_TAGS}=",red,"] | ||
${ID_TAG} css:[${DATA_CELL_ID}] | ||
|
||
|
||
*** Test Cases *** | ||
Cell Styling | ||
Launch A New JupyterLab Document | ||
Wait Until JupyterLab Kernel Is Idle | ||
Stylesheet Should Not Contain background-color: red | ||
Wait Until Page Contains Element ${ID_TAG} | ||
Wait Until Page Does Not Contain Element ${RED_TAG} | ||
Set Cell Metadata ${META_RED} 1 00-red.png | ||
Wait Until Page Contains Element ${RED_TAG} | ||
Stylesheet Should Contain background-color: red | ||
Set Cell Metadata ${META_EMPTY} 1 01-empty.png | ||
Wait Until Page Does Not Contain Element ${RED_TAG} | ||
Stylesheet Should Not Contain background-color: red | ||
Capture Page Screenshot 02-end.png | ||
|
||
Importing | ||
${nbdir} = Get Jupyter Directory | ||
${nburl} = Get Jupyter Server URL | ||
Create File ${nbdir}${/}style.css body { background-color: green; } | ||
Launch A New JupyterLab Document | ||
Wait Until JupyterLab Kernel Is Idle | ||
Set Cell Metadata ${META_IMPORT} 1 10-green.png | ||
Stylesheet Should Contain @import url('${nburl}files/./style.css') | ||
Capture Page Screenshot 11-end.png | ||
|
||
|
||
*** Keywords *** | ||
Clean Up After Cell Test | ||
Execute JupyterLab Command Close All Tabs | ||
${nbdir} = Get Jupyter Directory | ||
Remove File ${nbdir}${/}Untitled.ipynb |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
*** Settings *** | ||
Documentation The font editor allows changing fonts in notebooks | ||
Resource ./_keywords.resource | ||
|
||
|
||
*** Test Cases *** | ||
Global Font Editor | ||
[Documentation] Customize Global fonts with the Font Editor | ||
[Template] Use the font editor to configure fonts | ||
[Setup] Open the Global Font Editor | ||
Global Code Anonymous Pro Bold | ||
Global Code Anonymous Pro Regular | ||
Global Code DejaVu Sans Mono | ||
Global Code DejaVu Sans Mono Bold | ||
Global Code Fira Code Bold | ||
Global Code Fira Code Light | ||
Global Code Fira Code Medium | ||
Global Code Fira Code Regular | ||
Global Content Anonymous Pro Bold | ||
Global Content Anonymous Pro Regular | ||
Global Content DejaVu Sans Mono | ||
Global Content DejaVu Sans Mono Bold | ||
Global Content Fira Code Bold | ||
Global Content Fira Code Light | ||
Global Content Fira Code Medium | ||
Global Content Fira Code Regular | ||
[Teardown] Close the Font Editor Global |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
*** Settings *** | ||
Documentation The font editor allows changing fonts in notebooks | ||
Resource ./_keywords.resource | ||
|
||
|
||
*** Test Cases *** | ||
Notebook Font Editor | ||
[Documentation] Customize Notebook fonts with the Font Editor | ||
[Template] Use the font editor to configure fonts | ||
[Setup] Open the Notebook Font Editor | ||
Notebook Code - | ||
Notebook Code Anonymous Pro Bold | ||
Notebook Code Anonymous Pro Regular | ||
Notebook Code DejaVu Sans Mono | ||
Notebook Code DejaVu Sans Mono Bold | ||
Notebook Code Fira Code Bold | ||
Notebook Code Fira Code Light | ||
Notebook Code Fira Code Medium | ||
Notebook Code Fira Code Regular | ||
Notebook Content - | ||
Notebook Content Anonymous Pro Bold | ||
Notebook Content Anonymous Pro Regular | ||
Notebook Content DejaVu Sans Mono | ||
Notebook Content DejaVu Sans Mono Bold | ||
Notebook Content Fira Code Bold | ||
Notebook Content Fira Code Light | ||
Notebook Content Fira Code Medium | ||
Notebook Content Fira Code Regular | ||
[Teardown] Close the Font Editor Untitled |
Oops, something went wrong.