summaryrefslogtreecommitdiffstats
path: root/roles/reverseproxy/files/conversejs/src/plugins/profile/tests/profile.js
blob: 38e2a789dd76d33c4e593e6bb2a3ab2629f59cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*global mock, converse */

const u = converse.env.utils;

describe("The Controlbox", function () {
    describe("The user profile", function () {

        it("shows the user's configured nickname",
            mock.initConverse([], { blacklisted_plugins: ['converse-vcard'], nickname: 'nicky'},
            async function (_converse) {

                mock.openControlBox(_converse);
                const el = await u.waitUntil(() => document.querySelector('converse-user-profile .username'));
                expect(el.textContent).toBe('nicky');
        }));
    });
});