mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-23 10:18:40 +00:00
going crazy
This commit is contained in:
parent
5d5a7fff8b
commit
29667e15af
1 changed files with 14 additions and 4 deletions
|
|
@ -28,14 +28,24 @@ module.exports = function (driver, platform, host) {
|
|||
.findElement({css: '.UppyForm input'})
|
||||
.sendKeys(path.join(__dirname, 'image.jpg'))
|
||||
|
||||
driver.switchTo().alert().dismiss()
|
||||
.catch(function (err) {
|
||||
console.log(err)
|
||||
})
|
||||
|
||||
driver.findElement({css: '.UppyForm button'}).click()
|
||||
|
||||
driver.switchTo().alert().dismiss()
|
||||
.catch(function (err) {
|
||||
console.log(err)
|
||||
})
|
||||
|
||||
function isRedirectedAfterUpload () {
|
||||
// this should close the “Do you want to save this file?” alert when Travis runs the test
|
||||
// driver.switchTo().alert().dismiss()
|
||||
// .catch(function (err) {
|
||||
// console.log(err)
|
||||
// })
|
||||
driver.switchTo().alert().dismiss()
|
||||
.catch(function (err) {
|
||||
console.log(err)
|
||||
})
|
||||
|
||||
return driver.getCurrentUrl().then(function (val) {
|
||||
console.log('current url is ', val)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue