mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-06 05:01:13 -07:00
small improvements to fix flaky tests (#4970) [skip ci]
This commit is contained in:
parent
6025c5ed75
commit
5f60950802
4 changed files with 8 additions and 5 deletions
|
@ -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.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…
Add table
Add a link
Reference in a new issue