Ver código fonte

Move programmatic click to test.js

Renée Kooi 6 anos atrás
pai
commit
7fd5af46df

+ 0 - 3
test/endtoend/typescript/main.ts

@@ -47,6 +47,3 @@ uppy.on('complete', (result) => {
   console.log('successful files:', result.successful)
   console.log('failed files:', result.failed)
 })
-
-var modalTrigger = document.querySelector('#pick-files')
-if (modalTrigger) (modalTrigger as HTMLButtonElement).click()

+ 1 - 0
test/endtoend/typescript/test.js

@@ -4,6 +4,7 @@ describe('Project compiled with Uppy\'s TypeScript typings', () => {
     browser.url('http://localhost:4567/typescript')
 
     browser.waitForExist('.uppy-Root')
+    browser.click('#pick-files')
 
     const typeofUppy = browser.execute(function () {
       return typeof window.uppy