Explorar el Código

fix image width

Girish Ramakrishnan hace 9 años
padre
commit
6d0deebd38
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      test/test.js

+ 1 - 1
test/test.js

@@ -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);
         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) {
-            done(imageWidth === 250 ? null : new Error('failed to load image'));
+            done(imageWidth === 128 ? null : new Error('failed to load image'));
         });
     }