mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
slow the tests down
This commit is contained in:
parent
9f8e07fc42
commit
ccecc80776
2 changed files with 3 additions and 2 deletions
|
@ -86,8 +86,8 @@ export class UserPreferenceComponent implements OnInit {
|
|||
|
||||
public languageSelected() {
|
||||
this.identityService.updateLanguage(this.selectedLang).subscribe(_ => {
|
||||
this.notification.success(this.translate.instant("UserPreferences.Updated"))
|
||||
this.translate.use(this.selectedLang);
|
||||
this.notification.success(this.translate.instant("UserPreferences.Updated"))
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -12,12 +12,13 @@ const langs = [
|
|||
];
|
||||
|
||||
langs.forEach((l) => {
|
||||
it(`Change language to ${l.code}, UI should update`, () => {
|
||||
it.only(`Change language to ${l.code}, UI should update`, () => {
|
||||
cy.intercept('POST','**/language').as('langSave');
|
||||
Page.visit();
|
||||
|
||||
Page.profile.languageSelectBox.click();
|
||||
Page.profile.languageSelectBoxOption(l.code).click();
|
||||
cy.wait(1000); // wait for UI to update
|
||||
Page.navbar.discover.contains(l.discover);
|
||||
|
||||
cy.wait('@langSave').then((intercept) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue