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
AgeCommit message (Collapse)Author
2019-05-29Update submodules (#14501)diosmosis
* Update CustomDimensions submodule. * update screenshot
2019-05-28updates all submodules (#14489)Stefan Giehl
* updates all submodules * updates expected test files
2019-05-28Update video content on Welcome widget (#14454)Kate Butler
* Remove Piwik promo video on Welcome widget and replace with link to Matomo videos * Fix image overlapping text on smaller screen widths * Updated screenshots for dashboard welcome widget * Update test screenshots * Revert file permissions
2019-05-27Updates DeviceDetector to 3.11.7 (#14480)Stefan Giehl
* Updates DeviceDetector to 3.11.7 * update expected test file
2019-05-25Changed period in row evolution breaks graph/metric association (#14423)Thomas Steur
* Changed period in row evolution breaks graph/metric association fix #14208 worked for me, also with multi row evolution. Only known issue I found is if requesting eg first yearly row evolution which may have the `users` metric hidden, then switching to `day` period, and then the `users` metric is maybe supposed to become available but didn't. That should be quite edge case though. * add class whether row is hidden * Fixing couple regressions visible in ui tests. * fix build + update comment * tweak * test tweak
2019-05-18updates travis submoduleStefan Giehl
2019-05-17Fix realtime map ui test (#14453)3.10.0-b2diosmosis
* Make sure tooltip shows up in map. * debug travis * another test * another test * another test * another test * another test * updating screenshot * Update screenshot.
2019-05-16One Click Install UI test (#14049)diosmosis
* Add initial fixture and install script for one click install UI test. * Move matomo-package to outside matomo dir. * Create package before getting latest stable install. * More changes to fixture. * Get test releasechannel to work in latest stable version. * Handle build archives w/ matomo folders in one click update. * Fill out one click update UI test and get to pass. * Remove useless use statement. * Try cloning from HTTPS. * Add new screenshots. * Apply pr feedback and remove CoreUpdaterCode UI test. * undo submodule change * re-add line * re-add CoreUpdaterDb png files, need to keep those. * Add cron archiving test to one click update test. * use master branch of matomo-package * Make sure node_modules is accessible in screenshot testing specs. * Fix matomo-package command. * test fixes * Use correct method. * ui test fixes * Couple more test fixes. * some more test fixes * hopefully last ui test fixes * Last fix. * real last fix * Couple more random failure fixes. * Prevent from running outside of cli mode. * More aggresive check.
2019-05-16Ignore variables that start w/ @ when auto-detecting tables in segment sql ↵diosmosis
expressions. (#14425) * Ignore variables that start w/ @ when auto-detecting tables in segment sql expressions. * Add test & fix * Make sure column detection excludes decimal numbers.
2019-05-16Require password confirmation before setting/removing superuser access. (#13975)diosmosis
* Require password confirmation for changing superuser access and fix issue where getSiteAccess is called w/ superuser when toggling superuser access. * apply review feedback * Allow bypassing password confirmation in certain scenarios. * Fixing tests & adding UI test. * Update submodule. * test fixes + remove return; from 2fa tests. * update submodule * Fixing tests * Couple tweaks for screenshot testing. * test fixes * Fix TwoFactorAuthUsersManager test. * More test fixes. * try to disable all transitions * More UI test fixes + disable materialize animations globally in UI tests. * 2fa ui tests now working
2019-05-15Use NumberFormatter to format metric values (#14017)Stefan Giehl
* Use NumberFormatter to format metric values * fixing tests * update test files * load translations for tests as otherwise number formatter fails * updates expected UI files * ensure correct number of minimum fraction digits * update tests
2019-05-15Indent actions belonging to a pageview (#14063)diosmosis
* Proof of concept for grouping actions by the page they occur in. * Add pageview to goals/ecommerce actionDetails in Live.getLastVisitsDetails. * Make count of actions to display when collapsed configurable. * Quick selector fix. * unfinished commit * Collapse multiple adjacent content items in the visitor log. * Get content collapsing to work w/ 3.x-dev changes. * Forgot to add Live config file. * Get to work w/ visitor profile and make sure last action does not have border so it looks like it correctly ends. * Fix some issues from review. * More styling tweaks. * another styling tweak * Update screenshots. * Show page refreshes and allow expanding them in new implementation. * Update some screenshots. * Make sure tooltip is replaced correctly when showing refreshes. * Another styling tweak. * Add UI test + fix page refresh issue. * Fix action group merging logic. * Fix another actions grouping issue. * Fixes for ending left border in certain edge cases. * Another UI tweak. * comparison threshold, random failure fix, update screenshots + another css tweak * more css tweaks * possible bug fix * Last couple CSS fixes. * More test fixes.
2019-05-14Allow period used to generate scheduled report to be different from email ↵diosmosis
schedule. (#13832) * Allow period used to generate scheduled report to be different from email schedule. * Apply review feedback. * Add quick test. * Update UI tests, fix for random failure. * Update expected screenshot.
2019-05-10Overwrite direct entry referrer information if campaign referrer is found in ↵diosmosis
later request. (#14273) * Overwrite direct entry referrer information if campaign referrer is found in later request. * Update for non-campaign referrers as well. * test comment tweaks * Add current tracking URL into site urls in case website has no main url. * Fix a couple issues and start adding tests. * More tests and a fix. * Apply review feedback. * Fix couple tests. * Fix referrer tests. * try to fix random failure * Add note to README.
2019-05-09Ensure segment definitions doen't regress (#14372)Stefan Giehl
2019-05-09random failure UI test fix + update packages to get rid of github warning ↵diosmosis
(#14431) * update packages * try to fix random failure
2019-05-09Switch UI tests from phantomjs to chrome headless (#14421)Thomas Steur
* Make sure xss entries is always an array. * Update expected test files and submodule. * Regenerate broken omnifixture dump. * poc conversion to chrome headless for UI tests, single test works locally * Get single test to pass on travis & local w/ headless chrome. * Remove old diff viewer generation, and get output to look the same as before when there is a failure. * Add global timeout & get ViewDataTableTest to pass. * Convert BarGraph_spec.js. * Convert EmptySite_spec. * Update EvolutionGraph spec for chrome headless. * Convert GoalsTable test & find/replace for common changes. * Convert MeasurableManager. * Another find & replace. * Get Menus/OptOutForm to pass w/ chrome headless * Convert PeriodSelector, PieGraph & PivotByDimension UI tests. * undo unrelated debugging change * Convert QuickAccess UI tests * Converts ActionsDataTable UI tests * reset viewport after each testsuite * Converts RowEvolution UI tests * Converts Theme UI tests * Converts SiteSelector UI tests * Converts CustomVariables UI test * Converts DBStats UI test * Ignore empty responses when calling api/controller * Converts Dashboard UI tests * Converts Live UI tests * Converts SimpleUI tests * Converts Installation UI tests * Converts ImageGraph UI tests * Converts Login UI tests * Converts Marketplace UI tests * Converts Insights UI tests * Converts ReportExporting UI tests * Converts UIIntegration tests * Updates ViewDataTable UI tests * Converts CoreUpdater UI tests * Converts UsersManager UI tests * Converts Morpheus UI tests * Converts MultiSites UI tests * Fix testEnvironment.callApi handling of array parameters * Converts Overlay UI tests * Converts PrivacyManager UI tests * Converts ScheduledReports UI tests * Converts SegmentEditor UI tests * compare pixel difference in images * Converts PeriodSelector UI tests * allow a pixel difference * Converts SingleMetricView UI tests * Converts SitesManager UI tests * Converts Transitions UI tests * Converts MeasurableManager UI tests * Move Mouse out of screen after each test suite * Converts PieGraph UI tests * Ensure cursor is not shown in focused input elements * Converts VisitorMap UI tests * Converts CustomLogo UI tests * Converts BarGraph UI tests * Converts EvolutionGraph UI tests * Converts IntranetMeasurable UI tests * Converts TrackingFailures UI tests * Converts CampaignBuilder UI tests * Converts TagManagerTeaser UI tests * fix request url rewrite for changed port * Converts TwoFactorAuth UI tests * do not print full responses in logs, but size instead * improve additional style injection * use submodule branches * fix request interception * update dependencies * [TEMP] disable dangerous link checks * [TEMP] limit tests * Use puppeteer@next and make sure diffs get uploaded properly. * Use correct fs function. * Allow timeout to be specified on command line for UI tests and debug console logs. * timeout option tweak * Setup diff dir once before running tests not before each suite. * fix last commit * Update screenshots and fix some specs. * Convert some tests that were not converted during merge. * updating screenshots * Updating screenshots and fixing some tests. * more test fixes * couple more test fixes * More test fixes and plugin updates. * wait for jquery * Fix some screenshots and tests. * more test fixes * debug travis test failure * remove .only * more test fixes and updated expected files * another test fixing iteration * typo * another quick test change * more tests updates * Test fixes and & more debugging. * more debugging and test fixes * more fixes and debugging. * remove .only * Another round of fixed tests. * more debugging & fixes * more test changes * more debugging and fixes * Fixing more tests + some bug fixes. * Couple more fixes. * Couple more fixes. * Fixing tracking failures test * more fixes * Last couple fixes hopefully. * couple more test fixes * more fixes, bug fix in usersmanager, some test updates * Some more test fixes/changes. * more and more fixes * hoping for a green build * Do not compare against existing files in dashboard_spec. * more fixes, re-enabling travis * really re-enable travis * Install puppeteer on travis-ci. * more fixes * try to fix random failues * remove return * Convert some login tests I forgot and update UsersManager expected file * Fix test for primary key update * Update AddPrimaryKey.php * More test fixes + implement synchronous comparison threshold (so no resemblejs) * More wait fixes + reset token detection fix. * couple more fixes * Fix login/overlay screenshot issue & magick command running issue. * identify is the executable on travis (hopefully) + fix some random failures * Another run. * Last fix. * two more tweaks * typo
2019-05-03Task to purge archives for deleted websites and segments (#14317)Kate Butler
* Purge archives for deleted sites and segments * Purge archives for deleted sites and segments * Add new purgeOrphanedArchives task to expected list * Fix build * PR improvements * Fix consistency of method names * Fix typo * Unit tests for getSegmentHashesByIdSite * PR changes * add note on how to test the command * minor tweak to make sure no injections are possible
2019-04-24Permit segmenting by order ID (#14316)Kate Butler
* Ability to segment by ecommerce order ID * Auto-complete for ecommerce orderId dimension * New data fixture for testing auto-suggest of order IDs * Fix API test expected files to match new fixture * Add new expected file for order ID segment API test * Revert Order metric name back to previous value * Fix unit test
2019-04-24Group referrer URLs with different protocols together (#14358)Kate Butler
* Group HTTP and HTTPS referrer URLs together in referrer websites report * Unit tests for grouping referrer URLs with different protocols * Fix dependency between unit tests in BlobReportLimitingTest * Ensure label is set before running ColumnCallbackAddMetadata * Fix test data which is now grouped together * Change expected test output to reflect new grouping * Fix unit tests * Fix test cases
2019-04-16Fix archive invalidation timezone issue in tracker (#14318)Kate Butler
* Fix timezone bug in PHP tracker archive invalidation * Reset timezone after each unit test * Fix timezone issue in unit test * More elegant method for getting midnight in UTC+5
2019-04-11Display all product categories if present in the visitor log (#14083)diosmosis
* Query and show all product categories not just the first in the visitor log. * Fix SQL + processing * Allow XML renderer to render array of simple values. * Add unit test for xml renderer. * Add second product category to fixture, update test files and update omnifixture. * Update some expected test files.
2019-04-10Readable segment values for browser, os and country segments (#13929)Stefan Giehl
* Use readable segment value for browser and os segments instead of short codes * readds original segments using short codes * Adds additional segment country name to segment by (english) country name * compare browser and os names case sensitive for segments * use correct segments for reports * update tests
2019-04-08Reset tracked impressions for searches and only send tracking request when ↵Thomas Steur
interaction was defined (#14002) * Reset tracked impressions for searches and only send tracking request when interaction was defined * add test to ensure site search clears content impressions
2019-04-07Fix build (#14320)diosmosis
* update submodules * update expected screenshots
2019-04-05 Add new config datatable_archiving_maximum_rows_site_search (#14112)Kate Butler
* Add new config datatable_archiving_maximum_rows_site_search to control number of rows archived for site search * Fix hardcoding * Use new datatable_archiving_maximum_rows_site_search query limit for archiveDayActions() only * Split site search archiving out into a separate query * Fix page actions archiving query * Fix broken unit tests * Fix broken unit tests * Refactoring * Unit test for new datatable_archiving_maximum_rows_site_search config setting * Comments
2019-04-03Fix build (#14310)Kate Butler
* Fix build
2019-04-03spellcheck en.json files (#14135)Lukas Winkler
* spellcheck en.json files * fix WidgetsListTest * additional fixes * simplify sentence * Fixing tests.
2019-04-03Strip HTML tags in API error messages (#14213)Stefan Giehl
* Strip HTML tags in API error messages * check if root request is api request * fix some tests
2019-04-02New dimension for segmenting visitors by fingerprint (#14184)Kate Butler
* Add new dimension for segmenting by visitor fingerprint; expose fingerprint in getLastVisitsDetails API response * Add new dimension for segmenting by visitor fingerprint * Add new fingerprint field to API system test reference files * System test fixes for visitor fingerprint * System test fixes for visitor fingerprint * System test changes for new fingerprint dimension * Auto-suggest for new fingerprint segment * Fix unit test * Revert whitespace changes * Fix metricId for new visitor fingerprint dimension
2019-04-01Updates composer dependencies (#14260)Stefan Giehl
* Updates composer dependencies * update test
2019-04-01Fixing build (#14296)diosmosis
* fix condition * NullHandler must be end of writer array to allow other handlers to handle the message (since it seems to stop bubbling). * Do not do php eol check during tests. * Just in case. * try to fix the build * Add screenshot.
2019-03-31Use tabular-nums in tables (#14193)Christian Schmidt
* Use tabular-nums in tables * Update tests
2019-03-19Fixing build (#14222)diosmosis
* Fix test failure. * Update expected test file.s * Fix action iconSVG regression. * Update submodule. * Update screenshots. * Update more UI test files.
2019-03-15Allow customization of GeoIP2 database location using DI (#13913)Stefan Giehl
2019-03-15Support multiple plugin paths (#14051)Thomas Steur
* do not hard code plugins directory * remove method that is not needed for now * use plugins directory in more places * some work on supporting multiple plugin directories * use more unique name * couple fixes * and another fix * sort plugins * adjust languagesmanager * adjust more usages * Update Manager.php * adding a plugin to test * more tests * make sure plugin resources can be located in custom directory * adding more tests * rewrite image paths * handle more cases * add tests * make sure to load plugin * trying to fix test * trying it this way * load plugin * fix ui test? * testing if tests succeed this way * another test * load custom dir plugin * load plugin in ui fixture * change the update statement * remove update script * delete column * fix ui test * make it work for tests * fix some tests * Fix merge.
2019-03-15Rename piwik to matomo in a few INI settings for consistency (#14187)Matthieu Aubry
* Rename piwik to matomo in a few INI settings for consistency Just updated the website FAQs to mention matomo.log instead of piwik.log so thought we should do the same in Matomo * add to changelog as it may be breaking * Update expected screenshot. * Update screenshot.
2019-03-14Revert icon changes and add new property iconSVG instead (#14199)Stefan Giehl
* Revert icon changes and add new property iconSVG instead * update test files
2019-03-14Show device type and model in realtime map tooltip (#14204)Stefan Giehl
* Realtime map improvements * updates ui file
2019-03-13When dispatch is disabled via a constant, it should not be dispatched (#14034)Thomas Steur
* When dispatch is disabled via a constant, it should not be dispatched Eg when Matomo is not installed, it would still dispatch the request in https://github.com/matomo-org/matomo/blob/3.8.1-b1/plugins/Installation/Installation.php#L111 even when `PIWIK_ENABLE_DISPATCH` is disabled. Will set it to WIP for now as I'm not sure if we want to have this actually merged or not. * Update Installation.php * Use correct exception class * throw exception if one is given * adding a test * fix tests * trying to fix test
2019-03-13Couple assorted changes (#13935)diosmosis
* Allow annotations API to accept multiple periods, so evolution graphs that use multiple periods work. * Remove warning when rows_to_display viewdatatable config property is left at its default value. * Allow individual cells in an html visualization to be styled (if the visualization is extended). * Remove unneeded TODO. * In series picker encode picked rows in case the labels have commas. * Must decode the rows value as well (as it is not handled by API, must be done in plugin). * Allow joins to specified through LogAggregator::queryConversionsByDimension(). * Add safety check to _idts processing: if visitor is unknown, ignore _idts value, since it is their first visit. * In the tracker when searching by visitor ID, search through entire log_visit table instead of just in the last 30 mins. * When tracking visitor days since first, do not round since this can result in inaccurate data when rounding up. Which can cause trouble when finding the start visit for a log. * Allow HtmlTable descendants to add any html attributes to cells. * Allow derived Visualizations to add custom parameters to API requests via a new RequestConfig method. * Tweak to TODO. * Add test for annotations API change & get to pass. * Apply more review feedback * Update INI config docs for window_look_back_for_visitor. * Only copy visitor properties if action is part of an existing visit. * Some more properties that should be copied over from known visitor even if new visit. * Fixing some tests. * update test * Fix CustomEventsTest test failures. * Fixing more tests. * update rest of tests * Fixing tests. * Update some test files. * Fix log statements. * To better handle out of order actions, add part of last_action_time check to visitor ID search. * Update tests. * Updating expected screenshots. * Fix ArchiveCronTest. * Throw exception if idorder not unique. * Only throw exception if idorder specified. * Fixing a couple tests. * Fix another test.
2019-03-13Add diagnostic to check last time archiving was run successfully and … ↵diosmosis
(#13972) * Add diagnostic to check last time archiving was run successfully and display notification if empty report and archiving has not been run recently. * Move cron archiving diagnostics next to each other. * Add new test for archiving not done in time check. * Remove TODO comment.
2019-03-12Pagination localisation clean-up (#14157)Christian Schmidt
* Range start should be one-based, like the range end * Clean up pagination translation * Restore ScheduledReports translations * Update screenshots * Revert changes to non-English translations * Update screenshots * Update screenshot * Replace UsersManager_XtoYofN with General_Pagination * Only remove translation from en.json. * Off by one * Update screenshots * Fix off-by-one in range end * Update screenshots * Updated screenshot
2019-03-12Sparklines do not show correct values if values are close to 1.0. (#14006)diosmosis
* Scale sparkline values if they have floats. * Coerce value to int/float. * Check if numeric before coercing. * In RowEvoluton format fractional values correctly. * updates screenshots
2019-03-12fix build (#14183)diosmosis
* Fixing action segment regression + update UI test files + expected test files. * Update more test files. * update submodule * Fix integration test. * Update expected screenshot. * More test fixes. * Update expected files. * Update more expected test files. * Update submodule. * Update more tests. * Update some screenshots.
2019-03-11Make it possible to define joins for log tables using ↵Stefan Giehl
`getWaysToJoinToOtherLogTables` (#14062) * Make it possible to define joins for log tables using getWaysToJoinToOtherLogTables * Adds some tests for custom log table joins * add missing log tables joined using getWaysToJoinToOtherLogTables * automatically add log tables up the hierarchy * code improvements * Adds new ExampleLogTables plugin giving a showcase for custom log tables * specifiy table name in userid archiver to fix query if custom log table joins on user_id column * fix tests * Adds log table that does only indirectly join with log_visit * Allow defining joins on visit and action * update ui files
2019-03-11Fix some tests (#14179)Stefan Giehl
* update exptected system test files * update ui files * updates integration test * restore widget order in UI tests * updates submodule * updates ui files
2019-03-11Run AllTests against PHP 7.3 on travis (#14148)Stefan Giehl
* Run AllTests against PHP 7.3 on travis * use INTL_IDNA_VARIANT_UTS46 for idn_to_utf8 PHP 7.2 deprecated INTL_IDNA_VARIANT_2003 but still uses it as default until 7.4 * Fix test as var_export signature for stdClasses changed in PHP 7.3 see https://github.com/php/php-src/commit/e4e9cd835550990a6b8df7c61d59b6cc0da9b5b2
2019-03-10Propagate token auth in ajax requests for widgetized reports AND ↵diosmosis
enable_framed_pages = 1. (#14133) * Propagate token auth in ajax requests if something is widgetized OR if enable_framed_pages is set to 1. * Add UI tests for embedding entire app. * Forgot to add file. * Adds missing UI file
2019-03-08Add goal report metadata for overview. (#14164)diosmosis
* Add goal report metadata for overview. * Fix some tests + correct goal name. * another tweak to the name * Update expected files.