Bläddra i källkod

fix image width

Girish Ramakrishnan 8 år sedan
förälder
incheckning
6d0deebd38
1 ändrade filer med 1 tillägg och 1 borttagningar
  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'));
         });
     }