Skip to content

Commit

Permalink
Merge pull request #1690 from cloudfoundry-incubator/fix-e2e
Browse files Browse the repository at this point in the history
Fix e2e tests
  • Loading branch information
nwmac authored Mar 5, 2018
2 parents ff5b310 + d2874e3 commit fb41e62
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/cloud-foundry/frontend/test/e2e/application.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,17 @@
editApplicationModal.save();
browser.wait(until.not(until.presenceOf(editApplicationModal.getElement())), 5000);

var newMemAllInstances = protractor.promise.all([
newMem,
newInstance
]).then(function (res) {
var newMem = parseInt(res[0], 10) * parseInt(res[1], 10);
return newMem.toString();
});

// App values should be correct
expect(application.getHeaderAppName().getText()).toBe(newName);
expect(getMemoryUtilisation()).toBe(newMem);
expect(getMemoryUtilisation()).toBe(newMemAllInstances);
expect(getInstances()).toBe(newInstance);
});

Expand Down

0 comments on commit fb41e62

Please sign in to comment.