diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2018-06-01 21:44:31 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2018-06-01 21:44:31 +0300 |
commit | 89715269ed0ba616e2f508ef4cf6d43367cc8b1b (patch) | |
tree | 22e08461f8ce072c44c9e8060af5d28ac49a7a21 /tests/PHPUnit | |
parent | 4eb38fd6eaaef6643a794aba4457143434a68e14 (diff) |
Fix some UI tests, including random failure + allow --piwik-domain use in tests:run-ui (#13027)
* Forward --piwik-domain to sub-commands from tests:run-ui.
* temp commit debugging
* Predictable screenshots for realtime map in dashboard.
* Fix translation regression.
* Update UI test case & screenshots.
* Remove it.only
* update screenshot
* removes unused use statements
Diffstat (limited to 'tests/PHPUnit')
-rw-r--r-- | tests/PHPUnit/Fixtures/UITestFixture.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/PHPUnit/Fixtures/UITestFixture.php b/tests/PHPUnit/Fixtures/UITestFixture.php index b7a316f1f6..a5797e85a4 100644 --- a/tests/PHPUnit/Fixtures/UITestFixture.php +++ b/tests/PHPUnit/Fixtures/UITestFixture.php @@ -23,7 +23,6 @@ use Piwik\Plugins\UserCountry\LocationProvider; use Piwik\Plugins\UsersManager\API as UsersManagerAPI; use Piwik\Plugins\SitesManager\API as SitesManagerAPI; use Piwik\Plugins\VisitsSummary\API as VisitsSummaryAPI; -use Piwik\Config as PiwikConfig; /** * Fixture for UI tests. @@ -260,6 +259,16 @@ class UITestFixture extends SqlDump 'parameters' => $widget['parameters'] ); + // for realtime map, disable some randomness + if ($widget['uniqueId'] == 'widgetUserCountryMaprealtimeMap') { + $widgetEntry['parameters']['showDateTime'] = '0'; + $widgetEntry['parameters']['realtimeWindow'] = 'last2'; + $widgetEntry['parameters']['changeVisitAlpha'] = '0'; + $widgetEntry['parameters']['enableAnimation'] = '0'; + $widgetEntry['parameters']['doNotRefreshVisits'] = '1'; + $widgetEntry['parameters']['removeOldVisits'] = '0'; + } + // dashboard images must have height of less than 4000px to avoid odd discoloration of last line of image $widgetEntry['parameters']['filter_limit'] = 5; |