mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
tests: Fix race in change_user_name.js
This commit is contained in:
parent
58dac4c0fc
commit
27e5373050
1 changed files with 3 additions and 1 deletions
|
@ -10,10 +10,12 @@ describe('change username value', function () {
|
|||
this.timeout(10000);
|
||||
await helper.toggleUserList();
|
||||
await helper.setUserName('😃');
|
||||
// Give the server an opportunity to write the new name.
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
// get a new pad, but don't clear the cookies
|
||||
await helper.aNewPad({clearCookies: false});
|
||||
await helper.toggleUserList();
|
||||
expect(helper.usernameField().val()).to.be('😃');
|
||||
await helper.waitForPromise(() => helper.usernameField().val() === '😃');
|
||||
});
|
||||
|
||||
it('Own user name is shown when you enter a chat', async function () {
|
||||
|
|
Loading…
Reference in a new issue