From 5ab7fd9da92463ade6b31d49bdc0f559174b4c57 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 7 Aug 2020 08:47:10 +0200 Subject: Save --- client/e2e/src/po/my-account.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'client/e2e/src/po') diff --git a/client/e2e/src/po/my-account.ts b/client/e2e/src/po/my-account.ts index 49db789fb..6d0d8d61e 100644 --- a/client/e2e/src/po/my-account.ts +++ b/client/e2e/src/po/my-account.ts @@ -1,4 +1,4 @@ -import { by, element } from 'protractor' +import { by, element, browser } from 'protractor' export class MyAccountPage { @@ -52,6 +52,14 @@ export class MyAccountPage { return element(by.css('.playlist-info .miniature-thumbnail')).click() } + async goOnAssociatedPlaylistEmbed () { + let url = await browser.getCurrentUrl() + url = url.replace('/videos/watch/playlist/', '/video-playlists/embed/') + url = url.replace(':3333', ':9001') + + return browser.get(url) + } + // My account Videos private getVideoElement (name: string) { -- cgit v1.2.3