-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Protractor 0.24.0 fails even after successful tests #902
Comments
Huh, same thing seems to work for me. Have you updated selenium standalone and chromedriver? |
Yes, they're up to date. In my
invoked always before running e2e tests so they should always be up to date. |
The first commit where I get this failure is 3c0e727 which is the commit with re-organization. If I checkout to the previous one and change the test code to: 'use strict';
describe('test', function () {
it('test1', function () {
browser.get('/item/874072/');
browser.executeScript('' +
'var style = document.createElement("style");' +
'style.innerHTML = "* {' +
' transition: none !important;' +
' -webkit-animation: none !important;' +
' animation: none !important;' +
'}";' +
'document.head.appendChild(style);');
});
it('test2', function () {
$('cbn-slider.thumbnails').findElements(by.repeater('page in item.pages'))
.then(function (data) {
expect(data[1].$('a').getAttribute('class')).not.toMatch(
new RegExp('(^|\\s)active($|\\s)'));
}
);
});
}); i.e. change |
Got it, able to repro - thanks for more info. Investigating. |
…rror Version 0.24.0 introduced a bug where child processes would error without outputting the error message. Fix. See angular#902.
OK - fixed the error with the runner/launcher which was allowing your test to exit without printing the error message. As for the change causing that error, this is due to the breaking changes to ElementFinder. We're rethinking that it('test2', function () {
$('cbn-slider.thumbnails').all(by.repeater('page in item.pages')).first().element(by.css('a')).getAttribute('class')
.then(function (class) {
expect(class).not.toMatch(
new RegExp('(^|\\s)active($|\\s)'));
}
);
}); |
Fixed in 0.24.1. |
Thanks! The error is now shown but the protractor process itself is not killed and neither are the browsers. Perhaps it should all be cleaned up? EDIT: corrected a typo |
I get the following output after updating Protractor to 0.24.0:
Chromedriver is left unkilled, browsers are still running and the process errors for some reason, without any trace.
This is a reduced test case, originally (on a larger test file) I get even smaller output:
My Protractor 0.24.0 config:
My test file (under
test/e2e/spec/item-panel.defs.js
):The text was updated successfully, but these errors were encountered: