mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-24 10:47:44 +00:00
Move programmatic click to test.js
This commit is contained in:
parent
5699e5962b
commit
7fd5af46df
2 changed files with 1 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue