Logo: Relish

  1. Sign in

Project: Redcar

Multiple notebooks

Scenarios
Begins with one notebook
Then
there should be one notebook
New notebooks
When
I make a new notebook
Then
there should be two notebooks
Open tabs stay in the first notebook
When
I open a new edit tab
And
I make a new notebook
Then
there should be two notebooks
And
notebook 1 should have 1 tab
And
notebook 2 should have 0 tabs
First notebook remains focussed
When
I make a new notebook
And
I open a new edit tab
Then
there should be two notebooks
And
notebook 1 should have 1 tab
And
notebook 2 should have 0 tabs
Can move a tab to another notebook
When
I open a new edit tab
And
I make a new notebook
And
I move the tab to the other notebook
Then
notebook 1 should have 0 tabs
And
notebook 2 should have 1 tab
Can move a tab to another notebook and it keeps its contents
When
I open a new edit tab
And
I replace the contents with "Syndrome!"
And
I make a new notebook
And
I move the tab to the other notebook
Then
notebook 1 should have 0 tabs
And
notebook 2 should have 1 tab
And
the tab in notebook 2 should contain "Syndrome!"
Can move a tab to another notebook and back again
When
I open a new edit tab
And
I make a new notebook
And
I move the tab to the other notebook
And
I move the tab to the other notebook
Then
notebook 1 should have 1 tabs
And
notebook 2 should have 0 tab
Close notebooks
When
I make a new notebook
And
I close the current notebook
Then
there should be one notebook
Can focus on a notebook
When
I open a new edit tab
And
I open a new edit tab
And
I make a new notebook
And
I move the tab to the other notebook
And
I focus on the edit_view in the tab in notebook focus nb
And
I open a new edit tab
Then
notebook 1 should have num in 1 tabs
And
notebook 2 should have num in 2 tab
Examples:
focus nb num in 1 num in 2
1 2 1
2 1 2
When you close a tab the focus moves to another notebook if required
When
I open a new edit tab
And
I make a new notebook
And
I open a new edit tab
And
I move the tab to the other notebook
And
I close the focussed tab
Then
there should be one edit tab
And
the edit tab should have the focus

Last published over 5 years ago by danlucraft.