Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TwoFactorAuth')
-rw-r--r--plugins/TwoFactorAuth/tests/UI/TwoFactorAuth_spec.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/TwoFactorAuth/tests/UI/TwoFactorAuth_spec.js b/plugins/TwoFactorAuth/tests/UI/TwoFactorAuth_spec.js
index c95708b457..7d87184e19 100644
--- a/plugins/TwoFactorAuth/tests/UI/TwoFactorAuth_spec.js
+++ b/plugins/TwoFactorAuth/tests/UI/TwoFactorAuth_spec.js
@@ -25,6 +25,9 @@ describe("TwoFactorAuth", function () {
async function loginUser(username, doAuth)
{
+ testEnvironment.overrideConfig('General', 'login_allow_logme', '1')
+ testEnvironment.save();
+
// make sure to log out previous session
await page.goto(logoutUrl);
@@ -70,6 +73,7 @@ describe("TwoFactorAuth", function () {
delete testEnvironment.requireTwoFa;
delete testEnvironment.restoreRecoveryCodes;
delete testEnvironment.fakeCorrectAuthCode;
+ delete testEnvironment.configOverride;
testEnvironment.testUseMockAuth = 1;
testEnvironment.save();
});
@@ -106,6 +110,9 @@ describe("TwoFactorAuth", function () {
});
it('when logging in through logme and verifying screen it works to access ui', async function () {
+ testEnvironment.overrideConfig('General', 'login_allow_logme', '1')
+ testEnvironment.save();
+
await page.type('.loginTwoFaForm #login_form_authcode', '123456');
await page.evaluate(function(){
$('.loginTwoFaForm #login_form_submit').click();