mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-05 17:11:41 -05:00
38 lines
No EOL
1.3 KiB
Gherkin
38 lines
No EOL
1.3 KiB
Gherkin
@autosave
|
|
Scenario: try autosaving
|
|
Given new default notebook
|
|
And I call "ein:notebook-enable-autosaves"
|
|
Then I should see message "ein:notebook-autosave-frequency is 0"
|
|
|
|
@eldoc
|
|
Scenario: not running server locally
|
|
Given I enable "ein:enable-eldoc-support"
|
|
Given I fset "ein:pytools-add-sys-path" to "ignore"
|
|
Given new default notebook
|
|
And I type "import math"
|
|
And I press "C-a"
|
|
And I call eldoc-documentation-function
|
|
And I switch to log expr "ein:log-all-buffer-name"
|
|
Then I should not see "ein:completions--prepare-oinfo"
|
|
|
|
@reconnect
|
|
Scenario: kernel restart succeeds
|
|
Given new default notebook
|
|
When I type "import math"
|
|
And I wait for cell to execute
|
|
And I kill processes like "websocket"
|
|
And I switch to log expr "ein:log-all-buffer-name"
|
|
Then I should see "WS closed unexpectedly"
|
|
And I switch to buffer like "Untitled"
|
|
And header says "Kernel requires restart C-c C-r"
|
|
And I press "C-c C-r"
|
|
And I wait for the smoke to clear
|
|
And header does not say "Kernel requires restart C-c C-r"
|
|
And I clear log expr "ein:log-all-buffer-name"
|
|
And I force restart kernel
|
|
And I switch to log expr "ein:log-all-buffer-name"
|
|
Then I should not see "[warn]"
|
|
And I should not see "[error]"
|
|
And I should see "ein:kernel-start--complete"
|
|
|
|
|