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
diff options
context:
space:
mode:
authorStefan Giehl <stefan@piwik.org>2017-06-18 22:40:34 +0300
committerGitHub <noreply@github.com>2017-06-18 22:40:34 +0300
commit6b860f9d73ffe8e6f6ac0aebb19b1e8c5d6d4c5e (patch)
tree27c22b080f099c4685c34a8a073666e3fc614814 /tests
parent969fe64bd126804482681a454e8ba64801e18e2a (diff)
Make it possible to view Ecommerce Log with segment (#11801)
* Make it possible to view Ecommerce Log with segment * adds UI test for segmented ecommerce log * adds screenshot for UI test * use Http::buildQuery()
Diffstat (limited to 'tests')
-rw-r--r--tests/UI/expected-screenshots/UIIntegrationTest_ecommerce_log_segmented.png3
-rw-r--r--tests/UI/specs/UIIntegration_spec.js7
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_ecommerce_log_segmented.png b/tests/UI/expected-screenshots/UIIntegrationTest_ecommerce_log_segmented.png
new file mode 100644
index 0000000000..f450918005
--- /dev/null
+++ b/tests/UI/expected-screenshots/UIIntegrationTest_ecommerce_log_segmented.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8e23745bddadefed522e96fe8cf5dc52b9212edf5fd2167b5158839824b01892
+size 56223
diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js
index 80e9a42114..e2c2ef347f 100644
--- a/tests/UI/specs/UIIntegration_spec.js
+++ b/tests/UI/specs/UIIntegration_spec.js
@@ -420,6 +420,13 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik?
}, done);
});
+ it('should load the ecommerce log page with segment', function (done) {
+ this.retries(3);
+ expect.screenshot('ecommerce_log_segmented').to.be.captureSelector('.pageWrap', function (page) {
+ page.load("?" + urlBase + "&segment=countryCode%3D%3DUS#?" + generalParams + "&category=Goals_Ecommerce&subcategory=Goals_EcommerceLog&segment=countryCode%3D%3DUS");
+ }, done);
+ });
+
it('should load the ecommerce products page', function (done) {
expect.screenshot('ecommerce_products').to.be.captureSelector('.pageWrap,.dataTable', function (page) {
page.load("?" + urlBase + "#?" + generalParams + "&category=Goals_Ecommerce&subcategory=Goals_Products");