mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-29 04:50:05 +00:00
* build: update webdriverio to v5 * build: update wdio services config syntax * e2e test updates for wdio 5 * Sync pinned versions between repo root and companion * build: enable all e2e tests for this PR run * waitForExist * test: await browser.url() calls * test: awaitify url-plugin test * test: use sauceConnect * test: upload files to sauce before using them * fall back to fakechoosefile a lot? * fall back to fakechoosefile more * Disable file selection on saucelabs * test: need to await this thing * test: make more-sure that the input is visible * test: use currently low load transloadit region so i dont have to wait * test: update but disable xhr-limit * test: change the order * test: newer firefoxes * test: change the order back * kinda sucks that they only have super old browsers on linux * ci: disable url-plugin and transloadit e2e tests again * test: use local tus-node-server for integration tests * test: use envify to check env variables and select appropriate URL * test: use companion.test:1080 for tus uploads on Travis * test: fix env vars in typescript and CRA tests * test: use getBoundingClientRect, may work better in android * test: try getSize AND getBoundingClientRect * test: do not check image width in android * test: allow retrying tests that are prone to flakiness * test: be more verbose during e2e tests * test: force <input> visibility in more tests * test: warn if using test:endtoend not on CI
26 lines
1.1 KiB
JavaScript
26 lines
1.1 KiB
JavaScript
/* global browser */
|
|
describe('File upload with URL plugin', () => {
|
|
it('should import and upload a file completely with Url Plugin', async () => {
|
|
await browser.url('http://localhost:4567/url-plugin')
|
|
|
|
// select url plugin
|
|
const urlButton = await browser.$('.uppy-DashboardTab-btn[aria-controls=uppy-DashboardContent-panel--Url]')
|
|
await urlButton.waitForDisplayed(10000)
|
|
|
|
await urlButton.click()
|
|
await browser.pause(500)
|
|
// import set url value
|
|
const urlInput = await browser.$('input.uppy-Url-input')
|
|
await urlInput.waitForDisplayed(3000)
|
|
await urlInput.setValue('https://github.com/transloadit/uppy/raw/master/assets/palette.png')
|
|
const importButton = await browser.$('button.uppy-Url-importButton')
|
|
await importButton.click()
|
|
|
|
// do the upload
|
|
const uploadButton = await browser.$('.uppy-u-reset.uppy-c-btn.uppy-c-btn-primary.uppy-StatusBar-actionBtn--upload')
|
|
await uploadButton.waitForDisplayed(10000)
|
|
await uploadButton.click()
|
|
const completeStatusBar = await browser.$('.uppy-StatusBar.is-complete')
|
|
await completeStatusBar.waitForExist(20000)
|
|
})
|
|
})
|