terminus 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +72 -0
  3. data/lib/capybara/driver/terminus.rb +14 -4
  4. data/lib/terminus.rb +2 -1
  5. data/lib/terminus/browser.rb +30 -7
  6. data/lib/terminus/client.rb +1 -1
  7. data/lib/terminus/client/phantomjs.rb +1 -1
  8. data/lib/terminus/connector.rb +120 -3
  9. data/lib/terminus/controller.rb +1 -1
  10. data/lib/terminus/node.rb +17 -3
  11. data/lib/terminus/proxy.rb +6 -4
  12. data/lib/terminus/proxy/external.rb +14 -9
  13. data/lib/terminus/public/compiled/terminus-min.js +3 -3
  14. data/lib/terminus/public/compiled/terminus.js +62 -17
  15. data/lib/terminus/public/loader.js +2 -1
  16. data/lib/terminus/public/terminus.js +62 -17
  17. data/lib/terminus/views/bootstrap.erb +3 -3
  18. data/lib/terminus/views/index.erb +1 -1
  19. metadata +40 -85
  20. data/README.rdoc +0 -56
  21. data/lib/terminus/connector/server.rb +0 -142
  22. data/lib/terminus/connector/socket_handler.rb +0 -72
  23. data/spec/1.1/reports/android.txt +0 -874
  24. data/spec/1.1/reports/chrome.txt +0 -880
  25. data/spec/1.1/reports/firefox.txt +0 -879
  26. data/spec/1.1/reports/opera.txt +0 -880
  27. data/spec/1.1/reports/phantomjs.txt +0 -874
  28. data/spec/1.1/reports/safari.txt +0 -880
  29. data/spec/1.1/spec_helper.rb +0 -31
  30. data/spec/1.1/terminus_driver_spec.rb +0 -24
  31. data/spec/1.1/terminus_session_spec.rb +0 -19
  32. data/spec/2.0/reports/android.txt +0 -815
  33. data/spec/2.0/reports/chrome.txt +0 -806
  34. data/spec/2.0/reports/firefox.txt +0 -812
  35. data/spec/2.0/reports/opera.txt +0 -806
  36. data/spec/2.0/reports/phantomjs.txt +0 -803
  37. data/spec/2.0/reports/safari.txt +0 -806
  38. data/spec/2.0/spec_helper.rb +0 -21
  39. data/spec/2.0/terminus_spec.rb +0 -25
@@ -1,880 +0,0 @@
1
-
2
- Capybara::Session
3
- with non-existant driver
4
- should raise an error
5
-
6
- Capybara::Driver::Terminus
7
- it should behave like driver
8
- #visit
9
- should move to another page
10
- should show the correct URL
11
- #body
12
- should return text reponses
13
- should return the full response html
14
- encoding of response between ascii and utf8
15
- should be valid with html entities
16
- should be valid without html entities
17
- #find
18
- with xpath selector
19
- should extract node texts
20
- should extract node attributes
21
- should extract boolean node attributes
22
- should allow retrieval of the value
23
- should not swallow extra newlines in textarea
24
- should allow assignment of field value
25
- should extract node tag name
26
- should extract node visibility
27
- should extract node checked state
28
- should extract node selected state
29
- should return document text on /html selector
30
- it should behave like driver with javascript support
31
- #find
32
- should find dynamically changed nodes
33
- #drag_to
34
- should drag and drop an object
35
- #evaluate_script
36
- should return the value of the executed script
37
- it should behave like driver with resynchronization support
38
- #find
39
- with synchronization turned on
40
- should wait for all ajax requests to finish
41
- with resynchronization turned off
42
- should not wait for ajax requests to finish
43
- with short synchronization timeout
44
- should raise an error
45
- it should behave like driver with header support
46
- should make headers available through response_headers
47
- it should behave like driver with status code support
48
- should make the status code available through status_code
49
- it should behave like driver with frame support
50
- #within_frame
51
- should find the div in frameOne
52
- should find the div in FrameTwo
53
- should find the text div in the main window after finding text in frameOne
54
- should find the text div in the main window after finding text in frameTwo
55
- it should behave like driver with support for window switching
56
- #within_window
57
- should find the div in firstPopup
58
- should find the div in secondPopup
59
- should find the divs in both popups
60
- should find the div in the main window after finding a div in a popup
61
- it should behave like driver with cookies support
62
- #reset!
63
- should set and clean cookies
64
- it should behave like driver with infinite redirect detection
65
- should follow 5 redirects
66
- should not follow more than 5 redirects
67
-
68
- Capybara::Session
69
- with terminus driver
70
- it should behave like session
71
- should encode complex field names, like array[][value]
72
- #visit
73
- should fetch a response from the driver
74
- #body
75
- should return the unmodified page body
76
- #html
77
- should return the unmodified page body
78
- #source
79
- should return the unmodified page source
80
- #reset_session!
81
- removes cookies
82
- resets current host
83
- resets current path
84
- resets page body
85
- it should behave like all
86
- #all
87
- should find all elements using the given locator
88
- should return an empty array when nothing was found
89
- should accept an XPath instance
90
- with css selectors
91
- should find all elements using the given selector
92
- should find all elements when given a list of selectors
93
- with xpath selectors
94
- should find the first element using the given locator
95
- with css as default selector
96
- should find the first element using the given locator
97
- with visible filter
98
- should only find visible nodes
99
- should only find invisible nodes
100
- within a scope
101
- should find any element using the given locator
102
- it should behave like first
103
- #first
104
- should find the first element using the given locator
105
- should return nil when nothing was found
106
- should accept an XPath instance
107
- with css selectors
108
- should find the first element using the given selector
109
- with xpath selectors
110
- should find the first element using the given locator
111
- with css as default selector
112
- should find the first element using the given locator
113
- with visible filter
114
- should only find visible nodes if true given
115
- should include invisible nodes if false given
116
- with prefer visible elements
117
- should find invisible elements if no visible element exists
118
- should prefer visible elements over invisible elements
119
- should return the first invisible element if no visible elements exist
120
- find visible links normally
121
- without prefer visible elements
122
- should find invisible elements if no visible element exists
123
- should not prefer visible elements over invisible elements
124
- within a scope
125
- should find the first element using the given locator
126
- it should behave like attach_file
127
- #attach_file
128
- with normal form
129
- should set a file path by id (FAILED - 1)
130
- should set a file path by label (FAILED - 2)
131
- with multipart form
132
- should set a file path by id (FAILED - 3)
133
- should set a file path by label (FAILED - 4)
134
- should not break if no file is submitted
135
- should send content type text/plain when uploading a text file (FAILED - 5)
136
- should send content type image/jpeg when uploading an image (FAILED - 6)
137
- should not break when using HTML5 multiple file input (FAILED - 7)
138
- with a locator that doesn't exist
139
- should raise an error
140
- with a path that doesn't exist
141
- should raise an error
142
- it should behave like check
143
- #check
144
- should check a checkbox by id
145
- should check a checkbox by label
146
- 'checked' attribute
147
- should be true if checked
148
- should be false if unchecked
149
- checking
150
- should not change an already checked checkbox
151
- should check an unchecked checkbox
152
- unchecking
153
- should not change an already unchecked checkbox
154
- should uncheck a checked checkbox
155
- with a locator that doesn't exist
156
- should raise an error
157
- it should behave like choose
158
- #choose
159
- should choose a radio button by id
160
- should choose a radio button by label
161
- with a locator that doesn't exist
162
- should raise an error
163
- it should behave like click_link_or_button
164
- #click
165
- should click on a link
166
- should click on a button
167
- should click on a button with no type attribute
168
- should be aliased as click_on
169
- with a locator that doesn't exist
170
- should raise an error
171
- it should behave like click_button
172
- #click_button
173
- should serialize and send valueless buttons that were clicked
174
- should not send image buttons that were not clicked
175
- should serialize and send GET forms
176
- should follow redirects
177
- should post pack to the same URL when no action given
178
- should post pack to the same URL when blank action given
179
- with multiple values with the same name
180
- should use the latest given value
181
- with a form that has a relative url as an action
182
- should post to the correct url
183
- with a form that has no action specified
184
- should post to the correct url
185
- with value given on a submit button
186
- on a form with HTML5 fields
187
- should serialise and submit search fields
188
- should serialise and submit email fields
189
- should serialise and submit url fields
190
- should serialise and submit tel fields
191
- should serialise and submit color fields
192
- on an HTML4 form
193
- should serialize and submit text fields
194
- should escape fields when submitting
195
- should serialize and submit password fields
196
- should serialize and submit hidden fields
197
- should not serialize fields from other forms
198
- should submit the button that was clicked, but not other buttons
199
- should serialize radio buttons
200
- should serialize check boxes
201
- should serialize text areas
202
- should serialize select tag with values
203
- should serialize select tag without values
204
- should serialize first option for select tag with no selection
205
- should not serialize a select tag without options
206
- should not submit disabled fields
207
- with id given on a submit button
208
- should submit the associated form
209
- should work with partial matches
210
- with title given on a submit button
211
- should submit the associated form
212
- should work with partial matches
213
- with alt given on an image button
214
- should submit the associated form
215
- should work with partial matches
216
- with value given on an image button
217
- should submit the associated form
218
- should work with partial matches
219
- with id given on an image button
220
- should submit the associated form
221
- with title given on an image button
222
- should submit the associated form
223
- should work with partial matches
224
- with text given on a button defined by <button> tag
225
- should submit the associated form
226
- should work with partial matches
227
- should prefer exact matches over partial matches
228
- with id given on a button defined by <button> tag
229
- should submit the associated form
230
- should serialize and send GET forms
231
- with value given on a button defined by <button> tag
232
- should submit the associated form
233
- should work with partial matches
234
- should prefer exact matches over partial matches
235
- with title given on a button defined by <button> tag
236
- should submit the associated form
237
- should work with partial matches
238
- with a locator that doesn't exist
239
- should raise an error
240
- it should behave like click_link
241
- #click_link
242
- should follow relative links
243
- should follow redirects
244
- should follow redirects
245
- should add query string to current URL with naked query string
246
- should do nothing on anchor links
247
- should do nothing on URL+anchor links for the same page
248
- should follow link on URL+anchor links for a different page
249
- raise an error with links with no href
250
- with id given
251
- should take user to the linked page
252
- with text given
253
- should take user to the linked page
254
- should accept partial matches
255
- should prefer exact matches over partial matches
256
- with title given
257
- should take user to the linked page
258
- should accept partial matches
259
- should prefer exact matches over partial matches
260
- with alternative text given to a contained image
261
- should take user to the linked page
262
- should take user to the linked page
263
- should prefer exact matches over partial matches
264
- with a locator that doesn't exist
265
- should raise an error
266
- it should behave like fill_in
267
- #fill_in
268
- should fill in a text field by id
269
- should fill in a text field by name
270
- should fill in a text field by label without for (FAILED - 8)
271
- should fill in a url field by label without for
272
- should favour exact label matches over partial matches
273
- should fill in a textarea by id
274
- should fill in a textarea by label
275
- should fill in a textarea by name
276
- should fill in a password field by id
277
- should fill in a field with a custom type
278
- should fill in a field without a type
279
- should fill in a text field respecting its maxlength attribute
280
- should fill in a password field by name
281
- should fill in a password field by label
282
- should fill in a password field by name
283
- should prefer exact matches over partial matches
284
- should throw an exception if a hash containing 'with' is not provided
285
- with ignore_hidden_fields
286
- should not find a hidden field
287
- with a locator that doesn't exist
288
- should raise an error
289
- it should behave like find_button
290
- #find_button
291
- should find any field
292
- should raise error if the field doesn't exist
293
- it should behave like find_field
294
- #find_field
295
- should find any field
296
- should raise error if the field doesn't exist
297
- should be aliased as 'field_labeled' for webrat compatibility
298
- it should behave like find_link
299
- #find_link
300
- should find any field
301
- should raise error if the field doesn't exist
302
- it should behave like find_by_id
303
- #find_by_id
304
- should find any element by id
305
- should raise error if no element with id is found
306
- it should behave like find
307
- #find
308
- should find the first element using the given locator
309
- should find the first element using the given locator and options
310
- should raise ElementNotFound with specified fail message if nothing was found
311
- should raise ElementNotFound with a useful default message if nothing was found
312
- should accept an XPath instance and respect the order of paths
313
- the returned node
314
- should act like a session object
315
- should scope CSS selectors
316
- should have a reference to its parent if there is one
317
- with css selectors
318
- should find the first element using the given locator
319
- with id selectors
320
- should find the first element using the given locator
321
- with xpath selectors
322
- should find the first element using the given locator
323
- with custom selector
324
- should use the custom selector
325
- with custom selector with :for option
326
- should use the selector when it matches the :for option
327
- with custom selector with failure_message option
328
- should raise an error with the failure message if the element is not found
329
- should pass the selector as the second argument
330
- with css as default selector
331
- should find the first element using the given locator
332
- within a scope
333
- should find the first element using the given locator
334
- it should behave like has_content
335
- #has_content?
336
- should be true if the given content is on the page at least once
337
- should be true if scoped to an element which has the content
338
- should be false if scoped to an element which does not have the content
339
- should ignore tags
340
- should ignore extra whitespace and newlines
341
- should be false if the given content is not on the page
342
- should handle single quotes in the content
343
- should handle double quotes in the content
344
- should handle mixed single and double quotes in the content
345
- #has_no_content?
346
- should be false if the given content is on the page at least once
347
- should be false if scoped to an element which has the content
348
- should be true if scoped to an element which does not have the content
349
- should ignore tags
350
- should be true if the given content is not on the page
351
- should handle single quotes in the content
352
- should handle double quotes in the content
353
- should handle mixed single and double quotes in the content
354
- it should behave like has_css
355
- #has_css?
356
- should be true if the given selector is on the page
357
- should be false if the given selector is not on the page
358
- should respect scopes
359
- with between
360
- should be true if the content occurs within the range given
361
- should be false if the content occurs more or fewer times than range
362
- should be false if the content isn't on the page at all
363
- with count
364
- should be true if the content is on the page the given number of times
365
- should be false if the content occurs the given number of times
366
- should be false if the content isn't on the page at all
367
- should coerce count to an integer
368
- with maximum
369
- should be true when content occurs same or fewer times than given
370
- should be false when content occurs more times than given
371
- should be false if the content isn't on the page at all
372
- should coerce maximum to an integer
373
- with minimum
374
- should be true when content occurs same or more times than given
375
- should be false when content occurs fewer times than given
376
- should be false if the content isn't on the page at all
377
- should coerce minimum to an integer
378
- with text
379
- should discard all matches where the given string is not contained
380
- should discard all matches where the given regexp is not matched
381
- #has_no_css?
382
- should be false if the given selector is on the page
383
- should be true if the given selector is not on the page
384
- should respect scopes
385
- with between
386
- should be false if the content occurs within the range given
387
- should be true if the content occurs more or fewer times than range
388
- should be true if the content isn't on the page at all
389
- with count
390
- should be false if the content is on the page the given number of times
391
- should be true if the content is on the page the given number of times
392
- should be true if the content isn't on the page at all
393
- should coerce count to an integer
394
- with maximum
395
- should be false when content occurs same or fewer times than given
396
- should be true when content occurs more times than given
397
- should be true if the content isn't on the page at all
398
- should coerce maximum to an integer
399
- with minimum
400
- should be false when content occurs more times than given
401
- should be true when content occurs fewer times than given
402
- should be true if the content isn't on the page at all
403
- should coerce minimum to an integer
404
- with text
405
- should discard all matches where the given string is not contained
406
- should discard all matches where the given regexp is not matched
407
- it should behave like has_css
408
- #has_css?
409
- should be true if the given selector is on the page
410
- should be false if the given selector is not on the page
411
- should respect scopes
412
- with between
413
- should be true if the content occurs within the range given
414
- should be false if the content occurs more or fewer times than range
415
- should be false if the content isn't on the page at all
416
- with count
417
- should be true if the content is on the page the given number of times
418
- should be false if the content occurs the given number of times
419
- should be false if the content isn't on the page at all
420
- should coerce count to an integer
421
- with maximum
422
- should be true when content occurs same or fewer times than given
423
- should be false when content occurs more times than given
424
- should be false if the content isn't on the page at all
425
- should coerce maximum to an integer
426
- with minimum
427
- should be true when content occurs same or more times than given
428
- should be false when content occurs fewer times than given
429
- should be false if the content isn't on the page at all
430
- should coerce minimum to an integer
431
- with text
432
- should discard all matches where the given string is not contained
433
- should discard all matches where the given regexp is not matched
434
- #has_no_css?
435
- should be false if the given selector is on the page
436
- should be true if the given selector is not on the page
437
- should respect scopes
438
- with between
439
- should be false if the content occurs within the range given
440
- should be true if the content occurs more or fewer times than range
441
- should be true if the content isn't on the page at all
442
- with count
443
- should be false if the content is on the page the given number of times
444
- should be true if the content is on the page the given number of times
445
- should be true if the content isn't on the page at all
446
- should coerce count to an integer
447
- with maximum
448
- should be false when content occurs same or fewer times than given
449
- should be true when content occurs more times than given
450
- should be true if the content isn't on the page at all
451
- should coerce maximum to an integer
452
- with minimum
453
- should be false when content occurs more times than given
454
- should be true when content occurs fewer times than given
455
- should be true if the content isn't on the page at all
456
- should coerce minimum to an integer
457
- with text
458
- should discard all matches where the given string is not contained
459
- should discard all matches where the given regexp is not matched
460
- it should behave like has_selector
461
- #has_selector?
462
- should be true if the given selector is on the page
463
- should be false if the given selector is not on the page
464
- should use default selector
465
- should respect scopes
466
- with count
467
- should be true if the content is on the page the given number of times
468
- should be false if the content is on the page the given number of times
469
- should be false if the content isn't on the page at all
470
- with text
471
- should discard all matches where the given string is not contained
472
- should discard all matches where the given regexp is not matched
473
- #has_no_selector?
474
- should be false if the given selector is on the page
475
- should be true if the given selector is not on the page
476
- should use default selector
477
- should respect scopes
478
- with count
479
- should be false if the content is on the page the given number of times
480
- should be true if the content is on the page the wrong number of times
481
- should be true if the content isn't on the page at all
482
- with text
483
- should discard all matches where the given string is contained
484
- should discard all matches where the given regexp is matched
485
- it should behave like has_xpath
486
- #has_xpath?
487
- should be true if the given selector is on the page
488
- should be false if the given selector is not on the page
489
- should use xpath even if default selector is CSS
490
- should respect scopes
491
- with count
492
- should be true if the content is on the page the given number of times
493
- should be false if the content is on the page the given number of times
494
- should be false if the content isn't on the page at all
495
- with text
496
- should discard all matches where the given string is not contained
497
- should discard all matches where the given regexp is not matched
498
- #has_no_xpath?
499
- should be false if the given selector is on the page
500
- should be true if the given selector is not on the page
501
- should use xpath even if default selector is CSS
502
- should respect scopes
503
- with count
504
- should be false if the content is on the page the given number of times
505
- should be true if the content is on the page the wrong number of times
506
- should be true if the content isn't on the page at all
507
- with text
508
- should discard all matches where the given string is contained
509
- should discard all matches where the given regexp is matched
510
- it should behave like has_link
511
- #has_link?
512
- should be true if the given link is on the page
513
- should be false if the given link is not on the page
514
- #has_no_link?
515
- should be false if the given link is on the page
516
- should be true if the given link is not on the page
517
- it should behave like has_button
518
- #has_button?
519
- should be true if the given button is on the page
520
- should be false if the given button is not on the page
521
- #has_no_button?
522
- should be true if the given button is on the page
523
- should be false if the given button is not on the page
524
- it should behave like has_field
525
- #has_field
526
- should be true if the field is on the page
527
- should be false if the field is not on the page
528
- with value
529
- should be true if a field with the given value is on the page
530
- should be false if the given field is not on the page
531
- should be true after the field has been filled in with the given value
532
- should be false after the field has been filled in with a different value
533
- #has_no_field
534
- should be false if the field is on the page
535
- should be true if the field is not on the page
536
- with value
537
- should be false if a field with the given value is on the page
538
- should be true if the given field is not on the page
539
- should be false after the field has been filled in with the given value
540
- should be true after the field has been filled in with a different value
541
- #has_checked_field?
542
- should be true if a checked field is on the page
543
- should be false if an unchecked field is on the page
544
- should be false if no field is on the page
545
- should be true after an unchecked checkbox is checked
546
- should be false after a checked checkbox is unchecked
547
- should be true after an unchecked radio button is chosen
548
- should be false after another radio button in the group is chosen
549
- #has_no_checked_field?
550
- should be false if a checked field is on the page
551
- should be true if an unchecked field is on the page
552
- should be true if no field is on the page
553
- #has_unchecked_field?
554
- should be false if a checked field is on the page
555
- should be true if an unchecked field is on the page
556
- should be false if no field is on the page
557
- should be false after an unchecked checkbox is checked
558
- should be true after a checked checkbox is unchecked
559
- should be false after an unchecked radio button is chosen
560
- should be true after another radio button in the group is chosen
561
- #has_no_unchecked_field?
562
- should be true if a checked field is on the page
563
- should be false if an unchecked field is on the page
564
- should be true if no field is on the page
565
- it should behave like has_select
566
- #has_select?
567
- should be true if the field is on the page
568
- should be false if the field is not on the page
569
- with selected value
570
- should be true if a field with the given value is on the page
571
- should be false if the given field is not on the page
572
- should be true after the given value is selected
573
- should be false after a different value is selected
574
- should be true after the given values are selected
575
- should be false after one of the values is unselected
576
- with options
577
- should be true if a field with the given options is on the page
578
- should be false if the given field is not on the page
579
- #has_no_select?
580
- should be false if the field is on the page
581
- should be true if the field is not on the page
582
- with selected value
583
- should be false if a field with the given value is on the page
584
- should be true if the given field is not on the page
585
- should be false after the given value is selected
586
- should be true after a different value is selected
587
- should be false after the given values are selected
588
- should be true after one of the values is unselected
589
- with options
590
- should be false if a field with the given options is on the page
591
- should be true if the given field is not on the page
592
- it should behave like has_table
593
- #has_table?
594
- should be true if the field is on the page
595
- should be false if the field is not on the page
596
- with rows
597
- should be true if a table with the given rows is on the page
598
- should be true if the given rows are incomplete
599
- should be false if the given table is not on the page
600
- should be false if the given rows contain incorrect elements
601
- should be false if the given rows are incorrectly ordered
602
- should be false if the only some of the given rows are correct
603
- should be false if the given rows are out of order
604
- #has_no_table?
605
- should be false if the field is on the page
606
- should be true if the field is not on the page
607
- with rows
608
- should be false if a table with the given rows is on the page
609
- should be false if the given rows are incomplete
610
- should be true if the given table is not on the page
611
- should be true if the given rows contain incorrect elements
612
- should be true if the given rows are incorrectly ordered
613
- should be true if the only some of the given rows are correct
614
- should be true if the given rows are out of order
615
- it should behave like select
616
- #select
617
- should return value of the first option
618
- should return value of the selected option
619
- should return the value attribute rather than content if present
620
- should select an option from a select box by id
621
- should select an option from a select box by label
622
- should select an option without giving a select box
623
- should favour exact matches to option labels
624
- should escape quotes
625
- should obey from
626
- show match labels with preceding or trailing whitespace
627
- with a locator that doesn't exist
628
- should raise an error
629
- with an option that doesn't exist
630
- should raise an error
631
- with multiple select
632
- should return an empty value
633
- should return value of the selected options
634
- should select one option
635
- should select multiple options
636
- should remain selected if already selected
637
- should return value attribute rather than content if present
638
- it should behave like text
639
- #text
640
- should print the text of the page
641
- with css as default selector
642
- should print the text of the page
643
- it should behave like uncheck
644
- #uncheck
645
- should uncheck a checkbox by id
646
- should uncheck a checkbox by label
647
- it should behave like unselect
648
- #unselect
649
- with multiple select
650
- should unselect an option from a select box by id
651
- should unselect an option without a select box
652
- should unselect an option from a select box by label
653
- should favour exact matches to option labels
654
- should escape quotes
655
- with single select
656
- should raise an error
657
- with a locator that doesn't exist
658
- should raise an error
659
- with an option that doesn't exist
660
- should raise an error
661
- it should behave like within
662
- #within
663
- with CSS selector
664
- should click links in the given scope
665
- should assert content in the given scope
666
- should accept additional options
667
- with XPath selector
668
- should click links in the given scope
669
- with the default selector
670
- should use XPath
671
- with Node rather than selector
672
- should click links in the given scope
673
- with the default selector set to CSS
674
- should use CSS
675
- with click_link
676
- should click links in the given scope
677
- should raise an error if the scope is not found on the page
678
- should restore the scope when an error is raised
679
- with nested scopes
680
- should respect the inner scope
681
- should respect the outer scope
682
- with forms
683
- should fill in a field and click a button
684
- #within_fieldset
685
- should restrict scope to a fieldset given by id
686
- should restrict scope to a fieldset given by legend
687
- #within_table
688
- should restrict scope to a fieldset given by id
689
- should restrict scope to a fieldset given by legend
690
- it should behave like current_url
691
- #current_url
692
- should return the current url
693
- #current_path
694
- should show the correct location
695
- it should behave like current_host
696
- #current_host
697
- is affected by visiting a page directly
698
- returns to the app host when visiting a relative url
699
- is affected by setting Capybara.app_host
700
- is unaffected by following a relative link
701
- is affected by following an absolute link
702
- is unaffected by posting through a relative form
703
- is affected by posting through an absolute form
704
- is affected by following a redirect
705
- it should behave like session with headers support
706
- #response_headers
707
- should return response headers
708
- it should behave like session with javascript support
709
- all JS specs
710
- Node#drag_to
711
- should drag and drop an object
712
- Node#reload
713
- without automatic reload
714
- should reload the current context of the node
715
- should reload a parent node
716
- should not automatically reload
717
- with automatic reload
718
- should reload the current context of the node automatically
719
- should reload a parent node automatically
720
- should reload a node automatically when using find
721
- should not reload nodes which haven't been found
722
- should reload nodes with options
723
- #find
724
- should allow triggering of custom JS events
725
- #body
726
- should return the current state of the page
727
- #source
728
- should return the original, unmodified source of the page
729
- #evaluate_script
730
- should evaluate the given script and return whatever it produces
731
- #execute_script
732
- should execute the given script and return nothing
733
- #find
734
- should wait for asynchronous load
735
- with frozen time
736
- raises an error suggesting that Capybara is stuck in time
737
- #wait_until
738
- should wait for block to return true
739
- should raise Capybara::TimeoutError if block doesn't return true within timeout
740
- should accept custom timeout in seconds
741
- should default to Capybara.default_wait_time before timeout
742
- #click_link_or_button
743
- should wait for asynchronous load
744
- #click_link
745
- should wait for asynchronous load
746
- #click_button
747
- should wait for asynchronous load
748
- #fill_in
749
- should wait for asynchronous load
750
- #check
751
- should trigger associated events
752
- #has_xpath?
753
- should wait for content to appear
754
- #has_no_xpath?
755
- should wait for content to disappear
756
- #has_css?
757
- should wait for content to appear
758
- #has_no_xpath?
759
- should wait for content to disappear
760
- #has_content?
761
- should wait for content to appear
762
- #has_no_content?
763
- should wait for content to disappear
764
- it should behave like session with status code support
765
- #status_code
766
- should return response codes
767
-
768
- Failures:
769
-
770
- 1) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by id
771
- Failure/Error: @session.attach_file "form_image", __FILE__
772
- Capybara::NotSupportedByDriverError:
773
- Capybara::NotSupportedByDriverError
774
- Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
775
- # ./lib/terminus/node.rb:66:in `set'
776
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
777
- # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
778
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
779
- # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
780
- # (eval):2:in `attach_file'
781
- # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:12:in `block (4 levels) in <top (required)>'
782
-
783
- 2) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by label
784
- Failure/Error: @session.attach_file "Image", __FILE__
785
- Capybara::NotSupportedByDriverError:
786
- Capybara::NotSupportedByDriverError
787
- Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
788
- # ./lib/terminus/node.rb:66:in `set'
789
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
790
- # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
791
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
792
- # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
793
- # (eval):2:in `attach_file'
794
- # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:18:in `block (4 levels) in <top (required)>'
795
-
796
- 3) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by id
797
- Failure/Error: @session.attach_file "form_document", @test_file_path
798
- Capybara::NotSupportedByDriverError:
799
- Capybara::NotSupportedByDriverError
800
- Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
801
- # ./lib/terminus/node.rb:66:in `set'
802
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
803
- # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
804
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
805
- # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
806
- # (eval):2:in `attach_file'
807
- # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:26:in `block (4 levels) in <top (required)>'
808
-
809
- 4) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by label
810
- Failure/Error: @session.attach_file "Document", @test_file_path
811
- Capybara::NotSupportedByDriverError:
812
- Capybara::NotSupportedByDriverError
813
- Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
814
- # ./lib/terminus/node.rb:66:in `set'
815
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
816
- # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
817
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
818
- # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
819
- # (eval):2:in `attach_file'
820
- # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:32:in `block (4 levels) in <top (required)>'
821
-
822
- 5) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type text/plain when uploading a text file
823
- Failure/Error: @session.attach_file "Document", @test_file_path
824
- Capybara::NotSupportedByDriverError:
825
- Capybara::NotSupportedByDriverError
826
- Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
827
- # ./lib/terminus/node.rb:66:in `set'
828
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
829
- # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
830
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
831
- # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
832
- # (eval):2:in `attach_file'
833
- # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:43:in `block (4 levels) in <top (required)>'
834
-
835
- 6) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type image/jpeg when uploading an image
836
- Failure/Error: @session.attach_file "Document", @test_jpg_file_path
837
- Capybara::NotSupportedByDriverError:
838
- Capybara::NotSupportedByDriverError
839
- Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
840
- # ./lib/terminus/node.rb:66:in `set'
841
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
842
- # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
843
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
844
- # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
845
- # (eval):2:in `attach_file'
846
- # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:49:in `block (4 levels) in <top (required)>'
847
-
848
- 7) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should not break when using HTML5 multiple file input
849
- Failure/Error: @session.attach_file "Multiple Documents", @test_file_path
850
- Capybara::NotSupportedByDriverError:
851
- Capybara::NotSupportedByDriverError
852
- Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
853
- # ./lib/terminus/node.rb:66:in `set'
854
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
855
- # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
856
- # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
857
- # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
858
- # (eval):2:in `attach_file'
859
- # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:55:in `block (4 levels) in <top (required)>'
860
-
861
- 8) Capybara::Session with terminus driver it should behave like session it should behave like fill_in #fill_in should fill in a text field by label without for
862
- Failure/Error: extract_results(@session)['street'].should == 'Avenue Q'
863
- expected: "Avenue Q"
864
- got: "Sesame street 66" (using ==)
865
- Shared Example Group: "fill_in" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:94
866
- # ./vendor/capybara/1.1/lib/capybara/spec/session/fill_in_spec.rb:22:in `block (3 levels) in <top (required)>'
867
-
868
- Finished in 3 minutes 15.12 seconds
869
- 513 examples, 8 failures
870
-
871
- Failed examples:
872
-
873
- rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:11 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by id
874
- rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:17 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by label
875
- rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:25 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by id
876
- rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:31 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by label
877
- rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:42 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type text/plain when uploading a text file
878
- rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:48 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type image/jpeg when uploading an image
879
- rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:54 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should not break when using HTML5 multiple file input
880
- rspec ./vendor/capybara/1.1/lib/capybara/spec/session/fill_in_spec.rb:19 # Capybara::Session with terminus driver it should behave like session it should behave like fill_in #fill_in should fill in a text field by label without for