Experiement Test Case

describe('Phone detail view', function() {

  beforeEach(function() {
  it('should display atleast 4 images', function(){
    var phoneImg = element.all(by.repeater('img in phone.images'));

Server setup

I am using ubuntu 12.04 so these command works for me to run server:

Install Node Version Manager to manage different versions of node:

curl https://raw.github.com/creationix/nvm/v0.4.0/install.sh | sh

Install the latest v0.10.x release of node:

nvm install 0.10

And then in any new shell just use the installed version:

nvm use 0.10

Now go to your project directory and run these following commands. And one more thing that now onward whenever you will need to run server use these commands only, no need to run all above commands.

nvm use 0.10
npm install
npm start

Thats it. Now open browser and hit http://localhost:8000/app/index.html