This test ensures that we can copy and paste.
We use a mock server running to serve the HTML defined in this page.
script | mock xml server setup |
add response | <html> <body> <input id='src1' value='Bert'/> <input id='target1' value='Ernie'/> <textarea id='src2' rows="4" cols="50">Elmo</textarea> <textarea id='target2' rows="4" cols="50">Big Bird</textarea> </body> </html> |
$url<-[http://127.0.0.1:8001/FitNesseMock] | get mock server url |
script | browser test |
seconds before timeout | 1 |
open | $url->[http://127.0.0.1:8001/FitNesseMock] |
script | |||
check | value of | id=src1 | Bert |
check | value of | id=target1 | Ernie |
click | id=src1 | ||
check | get selection text | BLANK | |
select all | |||
check | get selection text | Bert | |
copy | |||
click | id=target1 | ||
paste | |||
check | value of | id=src1 | Bert |
check | value of | id=target1 | ErnieBert |
click | id=src1 | ||
select all | |||
cut | |||
check | value of | id=src1 | BLANK |
click | id=target1 | ||
paste | |||
check | value of | id=target1 | ErnieBertBert |
script | |||
check | value of | id=src2 | Elmo |
check | value of | id=target2 | Big Bird |
click | id=src2 | ||
check | get selection text | BLANK | |
select all | |||
check | get selection text | Elmo | |
copy | |||
click | id=target2 | ||
paste | |||
check | value of | id=src2 | Elmo |
check | value of | id=target2 | Big BirdElmo |
click | id=src2 | ||
select all | |||
cut | |||
check | value of | id=src2 | BLANK |
click | id=target2 | ||
paste | |||
check | value of | id=target2 | Big BirdElmoElmo |
script | mock xml server setup |
stop |