Support validation

supporting-an-initiative-test works but making-a-suggestion-test breaks
doesn't the existing text "Note: To make suggestions for an initiative, you
must first support it" enough to tell user how to do?

Do you mean that at the beginning the text doesn't exist, when user puts
his or her cursor around "Support this initiative" then show up the message
"Note: To make suggestions for an initiative, you must first support it"


On Wed, Aug 20, 2014 at 12:57 PM, Oliver Azevedo Barnes <
notifications@github.com> wrote:

> In tests/acceptance/making-a-suggestion-to-initiative-test.js:
>
> > @@ -16,13 +16,16 @@ suite('Making a suggestion to an initiative', {
> >
> >  test('Successfully', function(){
> >    visit('/initiatives/1').then(function() {
> > -    click( $("a:contains('Make a suggestion')") ).then(function() {
> > -      expect(currentURL()).to.equal('/initiatives/1/suggestions/new');
> > -      fillIn('div.details textarea', "Make sure there's a doctor available for house calls");
> > -      click('form input[type=submit]').then(function() {
> > -        expect(currentURL()).to.equal('/initiatives/1/suggestions');
> > -        expect(find('.suggestion').first().text()).to.equal("Make sure there's a doctor available for house calls");
> > +    click( $("a:contains('Support this initiative')") ).then(function() {
>
> before clicking 'Support this initiative', test that the 'Make a
> suggestion' link isn't there, and shows 'p Note: To make suggestions for an
> initiative, you must first support it' instead. You're doing that in the
> initiative support test, but I think it makes more sense here, since it's
> about the suggestion flow
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/oliverbarnes/participate-frontend/pull/37/files#r16467413>
> .
>