2018-10-01 18:40:31 -04:00
|
|
|
Scenario: No warnings
|
|
|
|
Given I switch to log expr "ein:log-all-buffer-name"
|
|
|
|
Then I should see "[info]"
|
|
|
|
And I should not see "[warn]"
|
|
|
|
And I should not see "[error]"
|
|
|
|
|
|
|
|
Scenario: Breadcrumbs
|
|
|
|
Given I am in notebooklist buffer
|
|
|
|
When I click on dir "step-definitions"
|
|
|
|
Then I should see "ein-steps"
|
|
|
|
And I click on "Home"
|
|
|
|
Then I should see "support"
|
|
|
|
|
|
|
|
Scenario: New Notebook
|
|
|
|
Given I am in notebooklist buffer
|
|
|
|
When I clear log expr "ein:log-all-buffer-name"
|
|
|
|
And I click on "New Notebook"
|
|
|
|
And I switch to log expr "ein:log-all-buffer-name"
|
|
|
|
Then I should see "Opened notebook Untitled"
|
|
|
|
|
|
|
|
Scenario: Resync
|
|
|
|
Given I am in notebooklist buffer
|
|
|
|
When I clear log expr "ein:log-all-buffer-name"
|
|
|
|
And I click on "Resync"
|
|
|
|
And I switch to log expr "ein:log-all-buffer-name"
|
|
|
|
Then I should see "kernelspecs--complete"
|
|
|
|
|
|
|
|
@foo
|
|
|
|
Scenario: Global notebooks
|
|
|
|
Given I am in notebooklist buffer
|
|
|
|
When I clear log expr "ein:log-all-buffer-name"
|
|
|
|
And I call "ein:notebooklist-open-notebook-global"
|
|
|
|
And I wait 0.9 seconds
|
|
|
|
And I switch to log expr "ein:log-all-buffer-name"
|
|
|
|
Then I should see "Opened notebook"
|
2018-10-11 16:53:02 -04:00
|
|
|
|
2018-10-15 16:57:22 -04:00
|
|
|
@login
|
|
|
|
Scenario: No token server
|
|
|
|
Given I start the server configured "c.NotebookApp.token = u''\n"
|
|
|
|
And I switch to log expr "ein:log-all-buffer-name"
|
|
|
|
Then I should not see "[warn]"
|
|
|
|
And I should not see "[error]"
|
|
|
|
|
|
|
|
@login
|
|
|
|
Scenario: With token server
|
|
|
|
Given I start the server configured "\n"
|
2018-10-11 16:53:02 -04:00
|
|
|
And I login if necessary
|
|
|
|
And I switch to log expr "ein:log-all-buffer-name"
|
|
|
|
Then I should not see "[warn]"
|
|
|
|
And I should not see "[error]"
|
2018-10-15 16:57:22 -04:00
|
|
|
|
|
|
|
@login
|
|
|
|
Scenario: With password server
|
|
|
|
Given I start the server configured "c.NotebookApp.password=u'sha1:712118ed6c09:bc02227d84b76b720cc320b855e1006d0b120f98'\n"
|
|
|
|
And I login with password "foo"
|
|
|
|
And I switch to log expr "ein:log-all-buffer-name"
|
|
|
|
Then I should not see "[warn]"
|
|
|
|
And I should not see "[error]"
|
|
|
|
|
2018-10-18 18:59:33 -04:00
|
|
|
@login
|
2018-10-17 19:34:19 -04:00
|
|
|
Scenario: To the cloud with password
|
|
|
|
Given I start the server configured "c.NotebookApp.password=u'sha1:712118ed6c09:bc02227d84b76b720cc320b855e1006d0b120f98'\n"
|
|
|
|
And I login disabling token cribbing with password "foo"
|
|
|
|
And I switch to log expr "ein:log-all-buffer-name"
|
|
|
|
Then I should not see "[warn]"
|
|
|
|
And I should not see "[error]"
|
|
|
|
|
2018-10-15 16:57:22 -04:00
|
|
|
@login
|
|
|
|
Scenario: Logging into nowhere
|
|
|
|
Given I login to 0
|
2018-10-17 19:34:19 -04:00
|
|
|
Then I should see message "ein: [error] Login to http://127.0.0.1:0 failed"
|