describe('GF ng-app', function() {
  it('should have a title', function() {
    browser.get('http://proxy/');
    expect(browser.getTitle()).toEqual('Gasista Felice');
  });
});

@@ -166,13 +166,2156 @@
 );%0A  %7D);
+%0A%0A  it('should connect to the UI and get the user orders', function() %7B%0A    browser.get('http://proxy/');%0A    // fill login form%0A    element(by.css('#username')).sendKeys('01gas1');%0A    element(by.css('#password')).sendKeys('des');%0A%0A    // click on 'GO' button!%0A    element(by.css('.btn')).click();%0A%0A    // expect to be the user 01gas1%0A    element(by.binding('person.display_name')).getText().then(function(name) %7B%0A      expect(name).toBe(%22Ciao Gasista_01 DelGas_01%22);%0A    %7D);%0A  %7D);%0A%0A  it('should increment/decrement the price/qty when %22+/-%22 are clicked', function () %7B%0A    // get the first item in the table%0A    var item = element.all(by.repeater('product in order.pm.products')).get(1);%0A%0A    // click 20 time on '+'%0A    for (var i=0; i %3C 20; i++)%0A      item.element(by.css('.glyphicon-plus')).click();%0A%0A    // click 10 times on '-'%0A    for (var i=0; i %3C 10; i++)%0A      item.element(by.css('.glyphicon-minus')).click();%0A%0A    // qty should be 10%0A    expect(item.element(by.model('product.quantity')).getAttribute('value')).toBe('10');%0A%0A    // product.quantity * product.price is used to output the total price%0A    // so we can get that with by.binding('product.quantity')%0A    // does the code need revision? the bindings maybe shouldn't make operations%0A    item.element(by.binding('product.quantity')).getText().then(function (price) %7B%0A      expect(price).toBe('%E2%82%AC 250,00');%0A    %7D);%0A  %7D);%0A%0A  it('should never decrement the price/qty under 0', function () %7B%0A    var item = element.all(by.repeater('product in order.pm.products')).get(1);%0A%0A    for (var i=0; i %3C 20; i++)%0A      item.element(by.css('.glyphicon-minus')).click();%0A%0A    expect(item.element(by.model('product.quantity')).getAttribute('value')).toBe('0');%0A%0A    item.element(by.binding('product.quantity')).getText().then(function (price) %7B%0A      expect(price).toBe('%E2%82%AC 0,00');%0A    %7D);%0A  %7D);%0A%0A  /*%0A  it('should add a product to the basket', function() %7B%0A    var item = element.all(by.repeater('product in order.pm.products')).get(2);%0A    for (var i=0; i %3C 3; i++)%0A      item.element(by.css('.glyphicon-plus')).click();%0A    element(by.buttonText('Aggiungi al paniere')).click();%0A  %7D);%0A  */
 %0A%7D);%0A

add more tests