]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/e2e/src/commands/upload.ts
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / client / e2e / src / commands / upload.ts
CommitLineData
3419e0e1
C
1browser.addCommand('chooseFile', async function (this: WebdriverIO.Element, localFilePath: string) {
2 try {
3 const remoteFile = await browser.uploadFile(localFilePath)
4
5 return this.addValue(remoteFile)
6 } catch {
7 console.log('Cannot upload file, fallback to add value.')
8
9 // Firefox does not support upload file, but if we're running the test in local we don't really need it
10 return this.addValue(localFilePath)
11 }
12}, true)