title: Error: Invalid Chai property: toBe. Did you mean "to"?
body: <p>I am trying to check that an element is present in an angular website. I am using protractor 5.4.0.</p>
  
  <p>In the header of the my_steps.js file I have this:</p>
  
  <pre><code>global.expect = require('chai').expect
  var chai = require('chai');
  var chaiAsPromised = require('chai-as-promised');
  chai.use(chaiAsPromised);
  </code></pre>
  
  <p>The code that I am using to assert that the dropdown is present is:</p>
  
  <pre><code>Then(/^(.*) is present$/, function (dropdown,callback) {
          expect(element(by.id(dropdown)).isPresent()).toBe(true);
          callback();
  </code></pre>
  
  <p>And the output of the protractor protractor.conf.js command is:</p>
  
  <pre><code>When application opened # ../Features/step_definitions/my_steps.js:62
     ✖ Then templateSelection is present # ../Features/step_definitions/my_steps.js:70
         Error: Invalid Chai property: toBe. Did you mean "to"?
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks in advance.</p>