Преглед изворни кода

Call browser.url() before each test.

Renée Kooi пре 6 година
родитељ
комит
6ad3768596
1 измењених фајлова са 8 додато и 2 уклоњено
  1. 8 2
      test/endtoend/specs/uppy.test.js

+ 8 - 2
test/endtoend/specs/uppy.test.js

@@ -25,9 +25,11 @@ function browserSupportsChooseFile (capabilities) {
          capabilities.platformName !== 'Android'
 }
 
-browser.url(testURL)
-
 describe('File upload with DragDrop + Tus, DragDrop + XHRUpload, i18n translated string', () => {
+  beforeEach(() => {
+    browser.url(testURL)
+  })
+
   it('should upload a file with Tus and set progressbar to 100%', () => {
     if (browserSupportsChooseFile(capabilities)) {
       browser.chooseFile('#uppyDragDrop .uppy-DragDrop-input', path.join(__dirname, '../fixtures/image.jpg'))
@@ -90,6 +92,10 @@ describe.skip('XHRUpload with `limit`', () => {
     server = null
   })
 
+  beforeEach(() => {
+    browser.url(testURL)
+  })
+
   it('should start counting progress for all files', () => {
     const files = [
       makeFile(1000),