mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Wrap cypress set settings promise (#9287)
This commit is contained in:
parent
4bfb1e7b2f
commit
e7e7041653
@ -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));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user