title: Protractor: One test passes, but the other fails
body: <p>I want to check two things - whether the search functionality works on AskJeeves AND whether the search boxes stored the right string.</p>
  
  <p>To check this I run three expect statements:</p>
  
  <pre><code>expect(searched_term.getText()).toEqual('Baking a Cake without Margarine');
  expect(searched_term.getText()).toEqual('Baking a Pie without Butter');
  expect(searched_term.getText()).toEqual(search_box.getText());
  </code></pre>
  
  <p>Only the second one should fail. But the first one fails as well. Why is that? Here is the error log. Also how can I count how many expect statements I have and console.log() output that?</p>
  
  <p>Error Log:</p>
  
  <p><a href="https://i.stack.imgur.com/Ex4Hu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ex4Hu.png" alt="enter image description here"></a></p>
  
  <pre><code>browser.waitForAngularEnabled(false);
  describe('Enter Search Query in Ask Jeeves', function() {
      it('This will insert a query', function() {
          browser.get(browser.baseUrl);
  
          element(by.xpath('//*[@id="search-box"]'));
          var search_box = element(by.name("q")).sendKeys('Baking a Cake without Margarine');
          browser.pause(1500);
  
  
          var button = element(by.xpath('//*[@id="sbut"]'));
          button.click();
          var searched_term = element(by.name("q"));
  
          expect(searched_term.getText()).toEqual('Baking a Cake without Margarine');
          expect(searched_term.getText()).toEqual('Baking a Pie without Butter');
          expect(searched_term.getText()).toEqual(search_box.getText());
          // This expect statement checks if the term in the following page reflects the term originally searched.
          // In addition this will check functionality of the search engine.
  
          browser.pause(1500);
      });
  });
  </code></pre>