diff --git a/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.ts b/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.ts index 74a803161..03f78f241 100644 --- a/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.ts +++ b/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.ts @@ -49,7 +49,6 @@ export class UserPreferenceComponent implements OnInit { if (user.name) { this.username = user.name; } - this.selectedLang = this.translate.currentLang; const accessToken = await this.identityService.getAccessToken().toPromise(); @@ -86,8 +85,10 @@ export class UserPreferenceComponent implements OnInit { } public languageSelected() { - this.identityService.updateLanguage(this.selectedLang).subscribe(x => this.notification.success(this.translate.instant("UserPreferences.Updated"))); - this.translate.use(this.selectedLang); + this.identityService.updateLanguage(this.selectedLang).subscribe(_ => { + this.notification.success(this.translate.instant("UserPreferences.Updated")) + this.translate.use(this.selectedLang); + }); } public countrySelected() { diff --git a/tests/cypress/tests/details/tv/tvdetails-buttons.spec.ts b/tests/cypress/tests/details/tv/tvdetails-buttons.spec.ts index ad56572ae..d8502ddb9 100644 --- a/tests/cypress/tests/details/tv/tvdetails-buttons.spec.ts +++ b/tests/cypress/tests/details/tv/tvdetails-buttons.spec.ts @@ -73,6 +73,9 @@ describe("TV Details Buttons", () => { cy.visit("/details/tv/1399"); cy.wait('@issuesEnabled'); + cy.waitUntil(() => { + return Page.reportIssueButton.should("be.visible"); + }); Page.reportIssueButton.should('be.visible'); }); diff --git a/tests/cypress/tests/discover/discover-recently-requested.spec.ts b/tests/cypress/tests/discover/discover-recently-requested.spec.ts index b8bceb088..0fe3332d0 100644 --- a/tests/cypress/tests/discover/discover-recently-requested.spec.ts +++ b/tests/cypress/tests/discover/discover-recently-requested.spec.ts @@ -199,7 +199,7 @@ describe("Discover Recently Requested Tests", () => { }); }); - it.only("Approve Requested Tv Show", () => { + it("Approve Requested Tv Show", () => { cy.requestAllTv(71712); diff --git a/tests/cypress/tests/user-preferences/user-preferences-profile.spec.ts b/tests/cypress/tests/user-preferences/user-preferences-profile.spec.ts index a53af7cfa..f4c621ce9 100644 --- a/tests/cypress/tests/user-preferences/user-preferences-profile.spec.ts +++ b/tests/cypress/tests/user-preferences/user-preferences-profile.spec.ts @@ -18,7 +18,6 @@ langs.forEach((l) => { Page.profile.languageSelectBox.click(); Page.profile.languageSelectBoxOption(l.code).click(); - Page.navbar.discover.contains(l.discover); cy.wait('@langSave').then((intercept) => {