mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix local e2e tests
This commit is contained in:
parent
ada9762f81
commit
f74832ce17
@ -38,7 +38,7 @@ exports.config = {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
// maxSessions: 1,
|
maxSessions: 1,
|
||||||
baseUrl: 'http://localhost:3000/',
|
baseUrl: 'http://localhost:3000/',
|
||||||
framework: 'jasmine',
|
framework: 'jasmine',
|
||||||
jasmineNodeOpts: {
|
jasmineNodeOpts: {
|
||||||
|
@ -9,6 +9,8 @@ export class AppPage {
|
|||||||
|
|
||||||
await element(by.css('.configure-instance-button')).click()
|
await element(by.css('.configure-instance-button')).click()
|
||||||
|
|
||||||
|
await browser.sleep(5000)
|
||||||
|
|
||||||
await browser.switchTo().window(firstHandle)
|
await browser.switchTo().window(firstHandle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,10 @@ import { browserSleep, isIOS, isMobileDevice, isSafari } from '../utils'
|
|||||||
|
|
||||||
export class PlayerPage {
|
export class PlayerPage {
|
||||||
|
|
||||||
getWatchVideoPlayerCurrentTime () {
|
async getWatchVideoPlayerCurrentTime () {
|
||||||
return element(by.css('.video-js .vjs-current-time-display'))
|
const elem = element(by.css('video'))
|
||||||
.getText()
|
|
||||||
.then((t: string) => t.split(':')[1])
|
return elem.getAttribute('currentTime')
|
||||||
.then(seconds => parseInt(seconds, 10))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
waitUntilPlaylistInfo (text: string) {
|
waitUntilPlaylistInfo (text: string) {
|
||||||
|
@ -158,6 +158,7 @@ describe('Videos workflow', () => {
|
|||||||
await videoWatchPage.createPlaylist(playlistName)
|
await videoWatchPage.createPlaylist(playlistName)
|
||||||
|
|
||||||
await videoWatchPage.saveToPlaylist(playlistName)
|
await videoWatchPage.saveToPlaylist(playlistName)
|
||||||
|
await browser.sleep(5000)
|
||||||
|
|
||||||
await videoUploadPage.navigateTo()
|
await videoUploadPage.navigateTo()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user