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/',
|
||||
framework: 'jasmine',
|
||||
jasmineNodeOpts: {
|
||||
|
|
|
@ -9,6 +9,8 @@ export class AppPage {
|
|||
|
||||
await element(by.css('.configure-instance-button')).click()
|
||||
|
||||
await browser.sleep(5000)
|
||||
|
||||
await browser.switchTo().window(firstHandle)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,11 +3,10 @@ import { browserSleep, isIOS, isMobileDevice, isSafari } from '../utils'
|
|||
|
||||
export class PlayerPage {
|
||||
|
||||
getWatchVideoPlayerCurrentTime () {
|
||||
return element(by.css('.video-js .vjs-current-time-display'))
|
||||
.getText()
|
||||
.then((t: string) => t.split(':')[1])
|
||||
.then(seconds => parseInt(seconds, 10))
|
||||
async getWatchVideoPlayerCurrentTime () {
|
||||
const elem = element(by.css('video'))
|
||||
|
||||
return elem.getAttribute('currentTime')
|
||||
}
|
||||
|
||||
waitUntilPlaylistInfo (text: string) {
|
||||
|
|
|
@ -158,6 +158,7 @@ describe('Videos workflow', () => {
|
|||
await videoWatchPage.createPlaylist(playlistName)
|
||||
|
||||
await videoWatchPage.saveToPlaylist(playlistName)
|
||||
await browser.sleep(5000)
|
||||
|
||||
await videoUploadPage.navigateTo()
|
||||
|
||||
|
|
Loading…
Reference in New Issue