return this.getVideoNameElement().then(e => e.getText())
}
+ getPrivacy () {
+ return $('.attribute-privacy .attribute-value').getText()
+ }
+
+ getLicence () {
+ return $('.attribute-licence .attribute-value').getText()
+ }
+
+ async isDownloadEnabled () {
+ await this.clickOnMoreDropdownIcon()
+
+ return $('.dropdown-item .icon-download').isExisting()
+ }
+
+ areCommentsEnabled () {
+ return $('my-video-comment-add').isExisting()
+ }
+
+ isPrivacyWarningDisplayed () {
+ return $('my-privacy-concerns').isDisplayed()
+ }
+
async goOnAssociatedEmbed () {
let url = await browser.getUrl()
url = url.replace('/w/', '/videos/embed/')
url = url.replace(':3333', ':9001')
- return go(url)
+ await go(url)
+ await $('.vjs-big-play-button').waitForDisplayed()
+ }
+
+ async isEmbedWarningDisplayed () {
+ const text = await $('.vjs-dock-description').getText()
+
+ return !!text.trim()
}
goOnP2PMediaLoaderEmbed () {
}
async clickOnUpdate () {
- const dropdown = $('my-video-actions-dropdown .action-button')
- await dropdown.click()
+ await this.clickOnMoreDropdownIcon()
- await $('.dropdown-menu.show .dropdown-item').waitForDisplayed()
const items = await $$('.dropdown-menu.show .dropdown-item')
for (const item of items) {
}, { timeout: maxTime })
}
+ async clickOnMoreDropdownIcon () {
+ const dropdown = $('my-video-actions-dropdown .action-button')
+ await dropdown.click()
+
+ await $('.dropdown-menu.show .dropdown-item').waitForDisplayed()
+ }
+
private async getVideoNameElement () {
// We have 2 video info name block, pick the first that is not empty
const elem = async () => {