Wrap cypress set settings promise (#9287)

This commit is contained in:
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

View file

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