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:
authorThomas Steur <thomas.steur@googlemail.com>2014-05-27 07:47:56 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-05-27 07:47:56 +0400
commit59611bbc48d0e2dd4cc541585cd554c6782504fa (patch)
tree75f0c9745b34ba84368fc5aebc25b0c61f9479f3 /tests/README.screenshots.md
parent847e16779a2a0a3df4b2d3ce2fef7ab3cd70eb3f (diff)
added captureSelector() to readme [skip ci]
Diffstat (limited to 'tests/README.screenshots.md')
-rw-r--r--tests/README.screenshots.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/README.screenshots.md b/tests/README.screenshots.md
index bcf35ba99d..b0189fe343 100644
--- a/tests/README.screenshots.md
+++ b/tests/README.screenshots.md
@@ -136,7 +136,14 @@ If you want to compare a screenshot against an already existing expected screens
}, done);
});
-`"OptionalPrefix"` will default to the name of the test.
+If you want to compare only parts (all content within an element / selector) of a page you can do the following:
+
+ it("should load correctly", function (done) {
+ expect.screenshot("screenshot_name").to.be.captureSelector("#content", function (page) {
+ page.load(url);
+ }, done);
+ });
+
### Manipulating Pages Before Capture