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:
authordizzy <diosmosis@users.noreply.github.com>2021-06-15 08:30:42 +0300
committerGitHub <noreply@github.com>2021-06-15 08:30:42 +0300
commit1a547d8a90a5971e718e97967f5a482df2a541bb (patch)
treeffa3340c28c46cc0747335ef64aae3c79baef4f0 /plugins/Login
parentf9fb5b5771deb9350829625181040a1297b51c76 (diff)
Fix UI tests (#17674)
* fixing ui tests * fix another UI test * more test fixes * update expected screenshot
Diffstat (limited to 'plugins/Login')
-rw-r--r--plugins/Login/tests/UI/Login_spec.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/Login/tests/UI/Login_spec.js b/plugins/Login/tests/UI/Login_spec.js
index 42cfe84314..653f2149f0 100644
--- a/plugins/Login/tests/UI/Login_spec.js
+++ b/plugins/Login/tests/UI/Login_spec.js
@@ -30,6 +30,7 @@ describe("Login", function () {
});
after(async function () {
+ testEnvironment.overrideConfig('General', 'login_allow_logme', '0')
testEnvironment.testUseMockAuth = 1;
delete testEnvironment.bruteForceBlockIps;
delete testEnvironment.bruteForceBlockThisIp;
@@ -271,6 +272,7 @@ describe("Login", function () {
});
it("should show invalid host warning if redirect url is not trusted in logme", async function () {
+ testEnvironment.overrideConfig('General', 'login_allow_logme', '1')
testEnvironment.testUseMockAuth = 0;
testEnvironment.save();
@@ -280,10 +282,9 @@ describe("Login", function () {
});
it("should redirect if host is trusted in logme", async function () {
+ testEnvironment.overrideConfig('General', 'login_allow_logme', '1');
+ testEnvironment.overrideConfig('General', 'trusted_hosts', ["matomo.org"]);
testEnvironment.testUseMockAuth = 0;
- testEnvironment.configOverride.General = {
- "trusted_hosts": ["matomo.org"]
- };
testEnvironment.save();
await page.goto(formlessLoginUrl + "&url="+encodeURIComponent("https://matomo.org/security/"));