revert(format): Revert "chore(format): update to latest formatter"
This reverts commit 03627aa84d
.
This commit is contained in:
@ -15,8 +15,8 @@ describe('ng2 naive infinite scroll benchmark', function() {
|
||||
var stageButtons = `${ allScrollItems } .row stage-buttons button`;
|
||||
|
||||
var count = function(selector) {
|
||||
return browser.executeScript(
|
||||
`return ` + `document.querySelectorAll("${ selector }").length;`);
|
||||
return browser.executeScript(`return ` +
|
||||
`document.querySelectorAll("${ selector }").length;`);
|
||||
};
|
||||
|
||||
var clickFirstOf = function(selector) {
|
||||
@ -24,8 +24,8 @@ describe('ng2 naive infinite scroll benchmark', function() {
|
||||
};
|
||||
|
||||
var firstTextOf = function(selector) {
|
||||
return browser.executeScript(
|
||||
`return ` + `document.querySelector("${ selector }").innerText;`);
|
||||
return browser.executeScript(`return ` +
|
||||
`document.querySelector("${ selector }").innerText;`);
|
||||
};
|
||||
|
||||
// Make sure rows are rendered
|
||||
@ -35,17 +35,18 @@ describe('ng2 naive infinite scroll benchmark', function() {
|
||||
count(cells).then(function(c) { expect(c).toEqual(expectedRowCount * expectedCellsPerRow); });
|
||||
|
||||
// Click on first enabled button and verify stage changes
|
||||
firstTextOf(`${ stageButtons }:enabled`).then(function(text) {
|
||||
expect(text).toEqual('Pitched');
|
||||
clickFirstOf(`${ stageButtons }:enabled`).then(function() {
|
||||
firstTextOf(`${ stageButtons }:enabled`).then(function(text) {
|
||||
expect(text).toEqual('Won');
|
||||
})
|
||||
});
|
||||
});
|
||||
firstTextOf(`${ stageButtons }:enabled`)
|
||||
.then(function(text) {
|
||||
expect(text).toEqual('Pitched');
|
||||
clickFirstOf(`${ stageButtons }:enabled`)
|
||||
.then(function() {
|
||||
firstTextOf(`${ stageButtons }:enabled`)
|
||||
.then(function(text) { expect(text).toEqual('Won'); })
|
||||
});
|
||||
});
|
||||
|
||||
$('#reset-btn').click();
|
||||
$('#run-btn').click();
|
||||
$("#reset-btn").click();
|
||||
$("#run-btn").click();
|
||||
browser.wait(() => {
|
||||
return $('#done').getText().then(function() { return true; }, function() { return false; });
|
||||
}, 10000);
|
||||
|
Reference in New Issue
Block a user