mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 09:12:57 -07:00
Update user-preferences-profile.spec.ts
This commit is contained in:
parent
4dd78e388f
commit
4a5b7c8dc6
1 changed files with 2 additions and 2 deletions
|
@ -12,13 +12,13 @@ const langs = [
|
||||||
];
|
];
|
||||||
|
|
||||||
langs.forEach((l) => {
|
langs.forEach((l) => {
|
||||||
it.only(`Change language to ${l.code}, UI should update`, () => {
|
it(`Change language to ${l.code}, UI should update`, () => {
|
||||||
cy.intercept('POST','**/language').as('langSave');
|
cy.intercept('POST','**/language').as('langSave');
|
||||||
Page.visit();
|
Page.visit();
|
||||||
|
|
||||||
Page.profile.languageSelectBox.click();
|
Page.profile.languageSelectBox.click();
|
||||||
Page.profile.languageSelectBoxOption(l.code).click();
|
Page.profile.languageSelectBoxOption(l.code).click();
|
||||||
cy.wait(1000); // wait for UI to update
|
cy.wait(2000); // wait for UI to update
|
||||||
Page.navbar.discover.contains(l.discover);
|
Page.navbar.discover.contains(l.discover);
|
||||||
|
|
||||||
cy.wait('@langSave').then((intercept) => {
|
cy.wait('@langSave').then((intercept) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue