New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #7774 column headers missing in RowEvolution graph export. #7878
Conversation
Most of the graph UI tests seem to be broken? Shouldn't there be maybe a |
If the queued filters are for processed metrics, then they shouldn't be necessary anymore... I'll look at the test failures. |
The graph UI tests pass, are you looking at the right build? |
I looked at the linked travis build: https://travis-ci.org/piwik/piwik/jobs/62025592 It says quite often eg
Probably master needs to update submodule to expected screenshots? |
Those are tests for the export links; they need expected output. I was going to put them in after the merge. Otherwise I can create a branch on the ui screenshot repo, but then the merge will have to be done from the command line. |
…o see if the UI tests build will pass. If processed metrics must be formatted, it may not make sense to disable queued filters in the Graph visualization base.
…s and assertions to screenshot testing library that allow testing contents of pages.
4ddf470
to
6880880
Compare
Cool, thought so. For new files I usually add them directly in master branch of screenshot repo as they won't break existing tests. This makes tests green as we'd add them afterwards anyway (unless PR is not merged but that's rare). Branch is certainly not needed. OK to put in after merge |
@tsteur See any reason not to merge? Otherwise I will merge & update the expected test files. |
Good to merge if it works. I was a bit worried re queued filters and performance regression but doubt it will cause any. |
Fixes #7774 column headers missing in RowEvolution graph export due to disabled_queued_filters being passed on to export link. Removed from link and added new UI tests for export link functionality.
This PR includes the small fix mentioned in a comment by @tsteur as well as UI tests for the report exporting feature. The new tests download the export links in phantomjs and compare the contents w/ expected files. To do this, I've added a new keyword
file
and a new assertionpageContents
, which can be used as follows:There is also a new page renderer method
downloadLink
which hacks around one of phantomjs' limitations. phantomjs will not display non-HTML files by default, so we can't just click an export link. Instead, we have to download via AJAX and set the page contents manually.Refs #7774