slow the tests down

mocking
tidusjar 12 months ago
parent 9f8e07fc42
commit ccecc80776

@ -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…
Cancel
Save