- async goOnAssociatedEmbed () {
- let url = await browser.getCurrentUrl()
- url = url.replace('/watch/', '/embed/')
- url = url.replace(':3333', ':9001')
+ 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 () => {
+ const elems = await $$('.video-info-first-row .video-info-name').filter(e => e.isDisplayed())
+
+ return elems[0]
+ }
+
+ await browser.waitUntil(async () => {
+ const e = await elem()
+
+ return e?.isDisplayed()
+ })