Wrap cypress set settings promise (#9287)

pull/28788/head^2
Michael Weimann 2022-09-16 12:55:51 +02:00 committed by GitHub
parent 4bfb1e7b2f
commit e7e7041653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -111,8 +111,8 @@ Cypress.Commands.add("setSettingValue", (
level: SettingLevel,
value: any,
): Chainable<void> => {
return cy.getSettingsStore().then(async (store: typeof SettingsStore) => {
return store.setValue(name, roomId, level, value);
return cy.getSettingsStore().then((store: typeof SettingsStore) => {
return cy.wrap(store.setValue(name, roomId, level, value));
});
});