Logo: Relish

  1. Sign in

Project: Redcar

Cut and Paste

Background
When
I open a new edit tab
Scenarios
Cut removes the text
When
I replace the contents with "Frank"
And
I select from 0 to 3
And
I cut text
Then
I should not see "Fra" in the edit tab
And
I should see "nk" in the edit tab
Copy leaves the text
When
I replace the contents with "Frank"
And
I select from 0 to 3
And
I copy text
Then
I should see "Frank" in the edit tab
Paste inserts the cut text
When
I replace the contents with "Frank"
And
I select from 0 to 3
And
I cut text
And
I move the cursor to 2
And
I paste text
Then
the contents should be "nkFra<c>"
Paste inserts the copied text
When
I replace the contents with "Frank"
And
I select from 0 to 3
And
I copy text
And
I move the cursor to 2
And
I paste text
Then
I should see "FrFraank" in the edit tab
Then
the contents should be "FrFra<c>ank"
Paste pastes the most recent copy
When
I replace the contents with "Frank"
And
I select from 0 to 3
And
I copy text
And
I select from 3 to 5
And
I copy text
And
I move the cursor to 0
And
I paste text
Then
the contents should be "nk<c>Frank"

Last published over 5 years ago by danlucraft.