2018-10-31 03:28:25 -04:00
|
|
|
@autosave
|
2018-10-30 14:17:29 -04:00
|
|
|
Scenario: try autosaving
|
|
|
|
Given new default notebook
|
2018-10-31 03:28:25 -04:00
|
|
|
And I call "ein:notebook-enable-autosaves"
|
2018-10-30 14:17:29 -04:00
|
|
|
Then I should see message "ein:notebook-autosave-frequency is 0"
|
|
|
|
|
2018-11-02 00:00:10 -04:00
|
|
|
@eldoc
|
|
|
|
Scenario: not running server locally
|
|
|
|
Given I enable "ein:enable-eldoc-support"
|
2018-11-02 12:06:59 -04:00
|
|
|
Given I fset "ein:pytools-add-sys-path" to "ignore"
|
2018-11-02 00:00:10 -04:00
|
|
|
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"
|
|
|
|
|
2018-10-30 14:17:29 -04:00
|
|
|
@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"
|
2018-10-31 03:28:25 -04:00
|
|
|
And I switch to log expr "ein:log-all-buffer-name"
|
2018-10-30 14:17:29 -04:00
|
|
|
Then I should see "WS closed unexpectedly"
|
|
|
|
And I switch to buffer like "Untitled"
|
2018-11-02 11:29:51 -04:00
|
|
|
And header says "Kernel requires reconnect C-c C-r"
|
2018-10-30 14:17:29 -04:00
|
|
|
And I press "C-c C-r"
|
|
|
|
And I wait for the smoke to clear
|
2018-11-02 11:29:51 -04:00
|
|
|
And header does not say "Kernel requires reconnect C-c C-r"
|
2018-11-01 20:08:10 -04:00
|
|
|
And I clear log expr "ein:log-all-buffer-name"
|
2018-11-02 11:29:51 -04:00
|
|
|
And I reconnect kernel
|
2018-11-01 20:08:10 -04:00
|
|
|
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"
|
|
|
|
|
2018-10-30 14:17:29 -04:00
|
|
|
|