File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4343 end
4444
4545 context "when there is a filter applied" do
46- it "shows print unfulfilled picklists button with correct quantity when filtered " do
46+ it "shows only filtered requests, print unfulfilled picklists button with correct quantity" do
4747 Request . delete_all
4848
49- create ( :request , :pending )
50- create ( :request , :started )
49+ started_request = create ( :request , :started , comments : "Started request - should appear" )
50+ pending_request = create ( :request , :pending , comments : "Pending request - should not appear" )
5151
5252 get requests_path ( { filters : { by_status : :started } } )
5353
5454 expect ( response . body ) . to include ( 'Print Unfulfilled Picklists (1)' )
55+ expect ( response . body ) . to include ( started_request . comments )
56+ expect ( response . body ) . not_to include ( pending_request . comments )
5557 end
5658 end
5759 end
You can’t perform that action at this time.
0 commit comments