et to make the test assertions shorter

  expect(getNames()).toEqual([
    &quot;Motorola XOOM\u2122 with Wi-Fi&quot;,
    &quot;MOTOROLA XOOM\u2122&quot;
  ]);

  element(by.model(&#39;orderProp&#39;)).element(by.css(&#39;option[value=&quot;name&quot;]&#39;)).click();

  expect(getNames()).toEqual([
    &quot;MOTOROLA XOOM\u2122&quot;,
    &quot;Motorola XOOM\u2122 with Wi-Fi&quot;
  ]);
});...
</code></pre>
<p>The end-to-end test verifies that the ordering mechanism of the select box is working correctly.