diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-09-02 10:02:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 10:02:12 +0300 |
commit | 11f54ee6389bd8ac408385b0d1760936c496470c (patch) | |
tree | 92d398822189d5ccdc842fa6e1c996c7347ebf11 /tests | |
parent | 67d3486533579cb57c30e38074611c3ae80e9161 (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.js | 22 |
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(); |