ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix E2E tests
Chocobozzz51b66ea7cb39
diff --git a/client/e2e/src/po/app.po.ts b/client/e2e/src/po/app.po.tsdeleted file mode 100644index 3ed65399eb..0000000000--- a/client/e2e/src/po/app.po.ts+++ /dev/null@@ -1,16 +0,0 @@-import { browser, by, element } from 'protractor'--export class AppPage {-- async closeWelcomeModal () {- const firstHandle = await browser.getWindowHandle()-- if (await element(by.css('.configure-instance-button')).isPresent() === false) return-- await element(by.css('.configure-instance-button')).click()-- await browser.sleep(5000)-- await browser.switchTo().window(firstHandle)- }-}diff --git a/client/e2e/src/po/login.po.ts b/client/e2e/src/po/login.po.tsindex 90b65c7ea2..20412ee0d5 100644--- a/client/e2e/src/po/login.po.ts+++ b/client/e2e/src/po/login.po.ts@@ -4,6 +4,9 @@ export class LoginPage {async loginAsRootUser () {await browser.get('/login')+ await browser.executeScript(`window.localStorage.setItem('no_instance_config_warning_modal', 'true')`)+ await browser.executeScript(`window.localStorage.setItem('no_welcome_modal', 'true')`)+element(by.css('input#username')).sendKeys('root')element(by.css('input#password')).sendKeys('test1')diff --git a/client/e2e/src/po/my-account.ts b/client/e2e/src/po/my-account.tsindex 0255cee160..61d42214df 100644--- a/client/e2e/src/po/my-account.ts+++ b/client/e2e/src/po/my-account.ts@@ -28,7 +28,7 @@ export class MyAccountPage {}validRemove () {- return element(by.css('.action-button-submit')).click()+ return element(by.css('input[type=submit]')).click()}countVideos (names: string[]) {diff --git a/client/e2e/src/videos.e2e-spec.ts b/client/e2e/src/videos.e2e-spec.tsindex cb79262583..bcc8102970 100644--- a/client/e2e/src/videos.e2e-spec.ts+++ b/client/e2e/src/videos.e2e-spec.ts@@ -1,5 +1,4 @@import { browser } from 'protractor'-import { AppPage } from './po/app.po'import { LoginPage } from './po/login.po'import { MyAccountPage } from './po/my-account'import { PlayerPage } from './po/player.po'@@ -23,7 +22,6 @@ describe('Videos workflow', () => {let videoUpdatePage: VideoUpdatePagelet myAccountPage: MyAccountPagelet loginPage: LoginPage- let appPage: AppPagelet playerPage: PlayerPagelet videoName = new Date().getTime() + ' video'@@ -37,7 +35,6 @@ describe('Videos workflow', () => {videoUpdatePage = new VideoUpdatePage()myAccountPage = new MyAccountPage()loginPage = new LoginPage()- appPage = new AppPage()playerPage = new PlayerPage()if (await isIOS()) {@@ -66,12 +63,6 @@ describe('Videos workflow', () => {return loginPage.loginAsRootUser()})- it('Should close the welcome modal', async () => {- if (await skipIfUploadNotSupported()) return-- await appPage.closeWelcomeModal()- })-it('Should upload a video', async () => {if (await skipIfUploadNotSupported()) return