emacs-ipython-notebook/features/notebook.feature
John Miller ea90c4a3e2 Are double slashes confusing the test?
Let's push and find out!
2018-11-08 06:33:26 -06:00

60 lines
2.4 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 reconnect 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 reconnect \[ein:notebook-reconnect-kernel]"
And I clear log expr "ein:log-all-buffer-name"
And I press "C-c C-r"
And I wait for the smoke to clear
And header does not say "Kernel requires reconnect \[ein:notebook-reconnect-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-retrieve-session--complete"
And I switch to buffer like "Untitled"
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 reconnect \[ein:notebook-reconnect-kernel]"
And I clear log expr "ein:log-all-buffer-name"
And I wait for cell to execute
And header does not say "Kernel requires reconnect \[ein:notebook-reconnect-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-retrieve-session--complete"
And I switch to buffer like "Untitled"
And I clear log expr "ein:log-all-buffer-name"
And I 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-retrieve-session--complete"
And I switch to buffer like "Untitled"
And I kill kernel
And header says "Kernel requires reconnect \[ein:notebook-reconnect-kernel]"
And I clear log expr "ein:log-all-buffer-name"
And my reconnect is questioned