Ok punt on it for now and if it comes up again we'll squash it! :)


On 8 May 2014 11:34, Adam Konner <notifications@github.com> wrote:

> In spec/features/filters_spec.rb:
>
> >        end
> >      end
> > -    it 'should not show acceptance levels without "accepted" status' do
> > -      expect(page).to have_no_content "#{@ratifications[2].acceptance_level.name}"
> > +
> > +    context "sorting" do
> > +      context "with no sort selected or search query entered" do
> > +        it "should be sorted by obligation" do
> > +          expect(page).to have_select 'sort', selected: 'Obligation'
> > +          assert { first('.quote').text =~ /#{@quotes[2].quote}/ }
> > +        end
> > +      end
> > +
> > +      context "sorted by organization" do
> > +        before do
> > +          select 'Authoring Body', from: 'sort'
> > +          sleep 0.1
>
>  I took at look at the sources on
> http://rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Findersand it seems to me that they all wait.
> In that case I have no idea why it's not working.
>
> Have you tried doing it without the sleep lately?
> Yes, many different ways. And I even tried XPath (capybara doesn't seem to
> respect xpath's [1] to get the first item).
>
> Do we have most recent version of Capybara?
> Yes, 2.2.1.
>
> This test itself is not a huge deal but this is such a common use case (I
> think) that it will probably come up again so we should figure out the way
> to do it properly...
> I suppose. But I'm stuck. And we are supposed to release tomorrow. And I'm
> way behind.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/thecartercenter/eos/pull/10/files#r12435148>
> .
>



-- 
Tom Smyth
Worker-Owner, Sassafras Tech Collective
Specializing in innovative, usable tech for social change
sassafras.coop *·* @sassafrastech