Skip to content

Authentication method for testing #69

@smigles

Description

@smigles

T272319 closed as resolved.

async function setup() {
// Switching to BotPassword authentication due to OAuth being unreliable in CI due to
// https://phabricator.wikimedia.org/T272319. Revert when that is resolved.
// if (!bot.usingOAuth) {
// return bot.getTokensAndSiteInfo.then(() => verifyTokenAndSiteInfo(bot));
// }
if (!bot.loggedIn) {
return bot.login().then(() => verifyTokenAndSiteInfo(bot));
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions