Browse Source

Call browser.url() before each test.

Renée Kooi 6 years ago
parent
commit
6ad3768596
1 changed files with 8 additions and 2 deletions
  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),