<commit_before>import * as spectron from "spectron";
import {boot, shutdown} from "../../../util/util";

const assert = require("assert");


describe("settings menu", function () {

    let app: spectron.Application;

    it("displays name of the active user", async function () {

        const user = {
            "id": "cgc-api_demo",
            "token": "<KEY>",
            "url": "https://cgc-api.sbgenomics.com",
            "user": {
                "username": "demon",
            }
        };

        app = await boot(this, {
            localRepository: {
                activeCredentials: user,
                credentials: [user]
            },
        });

        const client = app.client;

        const text = await client.getText("ct-settings-menu");
        assert.equal(text.trim(), "demon (CGC)");
    });

    afterEach(async () => {
        await shutdown(app);
    });

});
<commit_msg>update timeout on test<commit_after>import * as spectron from "spectron";
import {boot, shutdown} from "../../../util/util";

const assert = require("assert");


describe("settings menu", function () {

    let app: spectron.Application;

    it("displays name of the active user", async function () {

        const user = {
            "id": "cgc-api_demo",
            "token": "<KEY>",
            "url": "https://cgc-api.sbgenomics.com",
            "user": {
                "username": "demon",
            }
        };

        app = await boot(this, {
            localRepository: {
                activeCredentials: user,
                credentials: [user]
            },
            testTimeout: 10000
        });

        const client = app.client;

        await client.waitForVisible("ct-settings-menu", 5000);
        const text = await client.getText("ct-settings-menu");
        assert.equal(text.trim(), "demon (CGC)");
    });

    afterEach(async () => {
        await shutdown(app);
    });

});

{'fraction_non_alphanumeric': 0.15607235142118864, 'fraction_numerical': 0.004651162790697674, 'mean_word_length': 1.7736389684813754, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7484218', 'n_tokens_mistral': 564, 'n_tokens_neox': 533, 'n_words': 126}