async goOnAssociatedEmbed () {
let url = await browser.getCurrentUrl()
- url = url.replace('/watch/', '/embed/')
+ url = url.replace('/w/', '/embed/')
url = url.replace(':3333', ':9001')
return browser.get(url)
await browser.wait(browser.ExpectedConditions.elementToBeClickable(video))
await video.click()
- await browser.wait(browser.ExpectedConditions.urlContains('/watch/'))
+ await browser.wait(browser.ExpectedConditions.urlContains('/w/'))
}
async clickOnFirstVideo () {
const textToReturn = videoName.getText()
await video.click()
- await browser.wait(browser.ExpectedConditions.urlContains('/watch/'))
+ await browser.wait(browser.ExpectedConditions.urlContains('/w/'))
return textToReturn
}
const dropdown = element(by.css('my-video-actions-dropdown .action-button'))
await dropdown.click()
- const items: ElementFinder[] = await element.all(by.css('my-video-actions-dropdown .dropdown-menu .dropdown-item'))
+ const items: ElementFinder[] = await element.all(by.css('.dropdown-menu.show .dropdown-item'))
for (const item of items) {
const href = await item.getAttribute('href')