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
path: root/tests
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2020-09-02 10:02:12 +0300
committerGitHub <noreply@github.com>2020-09-02 10:02:12 +0300
commit11f54ee6389bd8ac408385b0d1760936c496470c (patch)
tree92d398822189d5ccdc842fa6e1c996c7347ebf11 /tests
parent67d3486533579cb57c30e38074611c3ae80e9161 (diff)
Provide more debug information in system check (#16350)
* Provide more debug information in system check * hide some info in screenshots * try overriding some columns * hide tr instead of only the content * trying to get tests to work * try different way * try fix tests * make sure cookie exists * add overridejs to install * more tweaks * fix test * more tweaks * move things to DI * minor tweaks * minor tweaks * fix test * also anonymise DB username * Update Twig.php * Improve query performance * Fix ClientTest keywords Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/resources/screenshot-override/override.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/resources/screenshot-override/override.js b/tests/resources/screenshot-override/override.js
index 5f142f3bbd..407cd23d34 100644
--- a/tests/resources/screenshot-override/override.js
+++ b/tests/resources/screenshot-override/override.js
@@ -1,4 +1,26 @@
$(document).ready(function () {
+
+ function updateSystemCheck() {
+ $('.system-check tr:contains(Time) td:nth-child(2)').text('Not showing in tests');
+ $('.system-check tr:contains(Datetime) td:nth-child(2)').text('Not showing in tests');
+ $('.system-check tr:contains(Version) td:nth-child(2)').text('Not showing in tests');
+ $('.system-check tr:contains(User Agent) td:nth-child(2)').text('Not showing in tests');
+ }
+ updateSystemCheck();
+
+ if (window.piwikHelper) {
+ var $timeout = piwikHelper.getAngularDependency('$timeout');
+ if ($timeout){
+ $timeout(function () {
+ // because of angular rendering replacing the content potentially...
+ updateSystemCheck();
+ $timeout(function () {
+ updateSystemCheck();
+ }, 100);
+ });
+ }
+ }
+
$('.ui-inline-help:contains(UTC time is)').hide();
$('[notification-id=ControllerAdmin_HttpIsUsed]').hide();