Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add signup page localization E2E test

Chocobozzz20d43fd4ed7b
diff --git a/client/e2e/src/po/login.po.ts b/client/e2e/src/po/login.po.ts
index 84b02d5ab2..6e59b389d0 100644
--- a/client/e2e/src/po/login.po.ts
+++ b/client/e2e/src/po/login.po.ts
@@ -71,7 +71,7 @@ export class LoginPage {
await loggedInDropdown.waitForClickable()
await loggedInDropdown.click()
- const logout = $('.dropdown-item*=Log out')
+ const logout = $('.dropdown-item.logout')
await logout.waitForClickable()
await logout.click()
diff --git a/client/e2e/src/suites-local/page-crash.e2e-spec.ts b/client/e2e/src/suites-local/page-crash.e2e-spec.ts
index e376664ad4..42761d3e0d 100644
--- a/client/e2e/src/suites-local/page-crash.e2e-spec.ts
+++ b/client/e2e/src/suites-local/page-crash.e2e-spec.ts
@@ -60,13 +60,15 @@ describe('Page crash', () => {
videoWatchPage = new VideoWatchPage(isMobileDevice(), isSafari())
await prepareWebBrowser()
-
- await loginPage.loginAsRootUser()
})
for (const language of languages) {
describe('For language: ' + language, () => {
describe('Logged in user', () => {
+ before(async () => {
+ await loginPage.loginAsRootUser()
+ })
+
it('Should change the language', async function () {
await go('/')
@@ -124,11 +126,10 @@ describe('Page crash', () => {
})
it('Should go on signup page', async function () {
- await loginPage.loginAsRootUser()
-
- await go('/auth/signup')
+ await $('.create-account-button').waitForClickable()
+ await $('.create-account-button').click()
- await $('my-signup-page').waitForExist()
+ await $('.callout-content > h4').waitForExist()
})
})
diff --git a/client/src/app/header/header.component.html b/client/src/app/header/header.component.html
index 0747169e8b..56deb68c6f 100644
--- a/client/src/app/header/header.component.html
+++ b/client/src/app/header/header.component.html
@@ -95,7 +95,7 @@
</button>
}
- <button ngbDropdownItem (click)="logout($event)" class="dropdown-item">
+ <button ngbDropdownItem (click)="logout($event)" class="dropdown-item logout">
<my-global-icon iconName="sign-out" aria-hidden="true"></my-global-icon>
<ng-container i18n>Log out</ng-container>
</button>