File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 23
23
# New
24
24
click_on 'Posts'
25
25
click_on 'New Post'
26
-
27
26
fill_in 'Title' , with : 'dhh screencast'
28
27
fill_in 'Body' , with : 'is still the best intro to rails'
29
28
49
48
50
49
# List
51
50
within ( '.breadcrumb' ) { click_on 'Posts' }
52
-
53
51
within '#index_table_posts' do
54
52
page . should have_content ( 'DHH original screencast' )
55
53
page . should have_content ( 'is still the best intro to rails' )
56
54
end
57
55
56
+ # Filter
57
+ fill_in 'Search Title' , with : 'original'
58
+ click_on 'Filter'
59
+
60
+ within '#index_table_posts' do
61
+ page . should have_content ( 'DHH original screencast' )
62
+ end
63
+
64
+ fill_in 'Search Title' , with : 'orizinal'
65
+ click_on 'Filter'
66
+ page . should_not have_content ( 'DHH original screencast' )
67
+
68
+ fill_in 'Search Title' , with : ''
69
+ click_on 'Filter'
70
+
58
71
page . should have_content ( 'Displaying 1 Post' )
59
72
end
60
73
end
You can’t perform that action at this time.
0 commit comments