tests(e2e): upgrade Protractor to 1.7.0 and remove special cases for shadow dom

With Protractor 1.7.0, which installs chromedriver 2.14, shadow DOM is supported.
This commit is contained in:
Julie Ralph
2015-02-17 13:19:19 -08:00
parent cd90038950
commit 5af0ac258b
4 changed files with 6 additions and 10 deletions
@@ -13,10 +13,8 @@ describe('ng2 naive infinite scroll benchmark', function () {
url: URL,
id: 'ng2.naive_infinite_scroll',
work: function() {
browser.executeScript(
'document.querySelector("scroll-app /deep/ #reset-btn").click()');
browser.executeScript(
'document.querySelector("scroll-app /deep/ #run-btn").click()');
element(by.deepCss('#reset-btn')).click();
element(by.deepCss('#run-btn')).click();
browser.wait(() => {
return $('#done').getText().then(
function() { return true; },
@@ -13,10 +13,8 @@ describe('ng-dart1.x naive infinite scroll benchmark', function () {
url: URL,
id: 'ng1-dart1.x.naive_infinite_scroll',
work: function() {
browser.executeScript(
'document.querySelector("scroll-app /deep/ #reset-btn").click()');
browser.executeScript(
'document.querySelector("scroll-app /deep/ #run-btn").click()');
element(by.deepCss('#reset-btn')).click();
element(by.deepCss('#run-btn')).click();
var s = 1000;
if (appSize > 4) {
s = s + appSize * 100;