title: Protractor, Jasmine, and stopping test on first fail
body: <p>While trying to figure out how to make certain jasmine expect statements dependent on a previous expect statement I discovered that previous to Jasmine 2.3.0, there was not a way. (see <a href="https://stackoverflow.com/questions/22119193/stop-jasmine-test-after-first-expect-fails">Stop jasmine test after first expect fails</a>)  However, Jasmine 2.3.0 added an option <code>stopSpecOnExpectationFailure</code> that when set to true will stop a test on the first failure.</p>
  
  <p>Excited by this prospect, I modified my conf.js to include the option:</p>
  
  <pre><code>/*
   * conf.js
   */
  exports.config = {
      framework: 'jasmine',
      specs: ['search-spec.js'],
      useAllAngular2AppRoots: true,
      jasmineNodeOpts: {
          stopSpecOnExpectationFailure: true
      }
  };
  </code></pre>
  
  <p>But this did not work for me.  </p>
  
  <p>In my test, I have:</p>
  
  <pre><code>/**
   * Test option from select element is selected
   */
  function verifyOptionSelected(option) {
     var myEl = $('select[value="' + option + '"]';
  
     expect(myEl.isPresent()).toBe(true, 'Option, ' + option + ', is not a value in the dropdown list. (It might be the text.)');
  
     expect(myEl.isSelected()).toBe(true, 'Option, ' + option + ', is not selected as expected.');
  }
  </code></pre>
  
  <p>In the code above, both expect statements will be attempted, but I don't need the second to be attempted if the first fails.</p>
  
  <p>Are there any of you who have figured this out with jasmine?  </p>
  
  <p>(Yes, I know about <a href="https://github.com/goodeggs/jasmine-bail-fast" rel="noreferrer">jasmine-bail-fast</a> and <a href="https://www.npmjs.com/package/protractor-fail-fast" rel="noreferrer">protractor-fail-fast</a>. However, in my opinion, using the built-in feature is a better solution.)</p>