瀏覽代碼

fix skip 🤦‍♀️

Renée Kooi 6 年之前
父節點
當前提交
6694350493
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      test/endtoend/thumbnails/test.js

+ 7 - 7
test/endtoend/thumbnails/test.js

@@ -15,18 +15,18 @@ const notImages = [
   { type: 'text/javascript', file: __filename }
 ]
 
-describe('ThumbnailGenerator', function () {
-  // Does not work on IE right now
-  if (capabilities.browserName === 'internet explorer') {
-    this.skip()
-    return
-  }
-
+describe('ThumbnailGenerator', () => {
   beforeEach(() => {
     browser.url(testURL)
   })
 
   it('should generate thumbnails for images', function () {
+    // Does not work on IE right now
+    if (capabilities.browserName === 'internet explorer') {
+      this.skip()
+      return
+    }
+
     $('#uppyThumbnails .uppy-FileInput-input').waitForExist()
 
     browser.execute(/* must be valid ES5 for IE */ function () {