1234567891011121314151617181920 |
- /* global browser, expect */
- const testURL = 'http://localhost:4567/url-plugin'
- describe('File upload with URL plugin', () => {
- beforeEach(() => {
- browser.url(testURL)
- })
- it('should import and upload a file completely with Url Plugin', () => {
- // select url plugin
- browser.click(`.uppy-DashboardTab-btn[aria-controls=uppy-DashboardContent-panel--Url]`)
- // import set url value
- browser.waitForVisible('input.uppy-Url-input', 3000)
- browser.setValue('input.uppy-Url-input', 'https://github.com/transloadit/uppy/raw/master/assets/palette.png')
- browser.click('button.uppy-Url-importButton')
- // do the upload
- browser.waitForVisible('.uppy-StatusBar-content[title="Complete"]', 20000)
- })
- })
|