|
@@ -130,7 +130,7 @@ describe('Application life cycle test', function () {
|
|
browser.wait(until.elementLocated(by.xpath('//img[@src="/uploads/profile/1-profileimg.png"]')), TEST_TIMEOUT);
|
|
browser.wait(until.elementLocated(by.xpath('//img[@src="/uploads/profile/1-profileimg.png"]')), TEST_TIMEOUT);
|
|
var img = browser.findElement(by.xpath('//img[@src="/uploads/profile/1-profileimg.png"]'));
|
|
var img = browser.findElement(by.xpath('//img[@src="/uploads/profile/1-profileimg.png"]'));
|
|
browser.executeScript('return arguments[0].complete && arguments[0].naturalWidth', img).then(function (imageWidth) {
|
|
browser.executeScript('return arguments[0].complete && arguments[0].naturalWidth', img).then(function (imageWidth) {
|
|
- done(imageWidth === 250 ? null : new Error('failed to load image'));
|
|
|
|
|
|
+ done(imageWidth === 128 ? null : new Error('failed to load image'));
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|