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
diff options
context:
space:
mode:
authorStefan Giehl <stefan@piwik.org>2016-10-03 22:09:17 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2016-10-03 22:09:17 +0300
commitfd3463170886a6e01cbae0798b4e7ec0e11cb0a5 (patch)
tree3cf3b453b551c23f77f229262469b526b5c34936
parente5731d8f2118018f44e6e3e6d493a9fa4aa89d9a (diff)
Show description as part of the datatable (#10649)
* fixes #10613 - show description as part of the datatable
-rw-r--r--plugins/CoreHome/templates/_dataTable.twig8
-rw-r--r--tests/UI/expected-screenshots/UIIntegrationTest_dashboard2.png4
-rw-r--r--tests/UI/expected-screenshots/UIIntegrationTest_goals_individual_goal.png4
-rw-r--r--tests/UI/expected-screenshots/UIIntegrationTest_goals_individual_goal_updated.png3
-rw-r--r--tests/UI/specs/UIIntegration_spec.js6
5 files changed, 17 insertions, 8 deletions
diff --git a/plugins/CoreHome/templates/_dataTable.twig b/plugins/CoreHome/templates/_dataTable.twig
index 2ec3f00fa6..b43337a906 100644
--- a/plugins/CoreHome/templates/_dataTable.twig
+++ b/plugins/CoreHome/templates/_dataTable.twig
@@ -27,10 +27,6 @@
<div class="card-content">
{% endif %}
-{% if properties.description %}
- <div class="card-description">{{ properties.description }}</div>
-{% endif %}
-
{% set summaryRowId = constant('Piwik\\DataTable::ID_SUMMARY_ROW') %}{# ID_SUMMARY_ROW #}
{% set isSubtable = javascriptVariablesToSet.idSubtable is defined and javascriptVariablesToSet.idSubtable != 0 %}
<div class="dataTable {{ visualizationCssClass }} {{ properties.datatable_css_class|default('') }} {% if isSubtable %}subDataTable{% endif %}"
@@ -40,6 +36,10 @@
data-props="{% if clientSideProperties is empty %}{}{% else %}{{ clientSideProperties|json_encode }}{% endif %}"
data-params="{% if clientSideParameters is empty %}{}{% else %}{{ clientSideParameters|json_encode }}{% endif %}">
+ {% if properties.description %}
+ <div class="card-description">{{ properties.description }}</div>
+ {% endif %}
+
<div class="reportDocumentation">
{% if properties.documentation|default is not empty %}<p>{{ properties.documentation|raw }}</p>{% endif %}
{% if reportLastUpdatedMessage is defined and reportLastUpdatedMessage %}<span class='helpDate'>{{ reportLastUpdatedMessage|raw }}</span>{% endif %}
diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_dashboard2.png b/tests/UI/expected-screenshots/UIIntegrationTest_dashboard2.png
index 3404bb899e..f0495e85bc 100644
--- a/tests/UI/expected-screenshots/UIIntegrationTest_dashboard2.png
+++ b/tests/UI/expected-screenshots/UIIntegrationTest_dashboard2.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:aed223ad45084865dd76b06c77240f39dab1a96b6231f9f7b663b06b70752c74
-size 1457385
+oid sha256:a140a97e21b4c77617eed57fb924605adabf6ca750563ee478bcdcf50a872eb7
+size 1457388
diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_goals_individual_goal.png b/tests/UI/expected-screenshots/UIIntegrationTest_goals_individual_goal.png
index 52cc88e9a7..7fad47a8ea 100644
--- a/tests/UI/expected-screenshots/UIIntegrationTest_goals_individual_goal.png
+++ b/tests/UI/expected-screenshots/UIIntegrationTest_goals_individual_goal.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3978c5b1c54f4a846a4ffaab3f9582df963bf4cc6c9b3ae4500f57a73cac6e80
-size 183929
+oid sha256:eed3df325fc83a28429d107ac142b8c73bcb4843cc0394fdd2176c21d1e11e04
+size 184083
diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_goals_individual_goal_updated.png b/tests/UI/expected-screenshots/UIIntegrationTest_goals_individual_goal_updated.png
new file mode 100644
index 0000000000..2e99b46993
--- /dev/null
+++ b/tests/UI/expected-screenshots/UIIntegrationTest_goals_individual_goal_updated.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e2e196b512dd5ee8b8ccae4d956198a5b76c6ac383fd231944319e36e74844a2
+size 184731
diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js
index 196e8d7f95..9b4706465f 100644
--- a/tests/UI/specs/UIIntegration_spec.js
+++ b/tests/UI/specs/UIIntegration_spec.js
@@ -296,6 +296,12 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik?
}, done);
});
+ it('should update the evolution chart if a sparkline is clicked', function (done) {
+ expect.screenshot('goals_individual_goal_updated').to.be.captureSelector('.pageWrap,.dataTable', function (page) {
+ page.click('.sparkline.linked:contains(%)');
+ }, done);
+ });
+
// Events pages
it('should load the Events > index page correctly', function (done) {
expect.screenshot('events_overview').to.be.captureSelector('.pageWrap,.dataTable', function (page) {