small improvements to fix flaky tests (#4970) [skip ci]

snyk-upgrade-360291ec0e19ef23e898d7fa71c7050b
Jamie 1 year ago committed by GitHub
parent 6025c5ed75
commit 5f60950802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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() {

@ -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');
});

@ -199,7 +199,7 @@ describe("Discover Recently Requested Tests", () => {
});
});
it.only("Approve Requested Tv Show", () => {
it("Approve Requested Tv Show", () => {
cy.requestAllTv(71712);

@ -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) => {

Loading…
Cancel
Save