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"
|
|
|
|
|
|
|
|
@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"
|
|
|
|
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"
|
|
|
|
|
|
|
|
|