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:
authordiosmosis <diosmosis@users.noreply.github.com>2019-12-21 23:23:51 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2019-12-21 23:23:51 +0300
commit9f84e573ae71fdfdedc273fb62da9106f27cf7cc (patch)
treed81ca136b0afe8f34f2517a57e4157e4b4ff64f2 /plugins/SegmentEditor
parentcad78ef02cc0f05cdd32d3b07b1d99f431347622 (diff)
Make sure unprocessed segment notification is still shown and include notifications in UI test. (#15296)
Diffstat (limited to 'plugins/SegmentEditor')
-rw-r--r--plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js b/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js
index a2c24f6657..5125dfc376 100644
--- a/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js
+++ b/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js
@@ -43,14 +43,12 @@ describe("UnprocessedSegmentTest", function () {
it("should show a notification for unprocessed segments", async function () {
await page.goto(url + '&segment=' + encodeURIComponent(segment));
- pageWrap = await page.$('.pageWrap');
- expect(await pageWrap.screenshot()).to.matchImage('unprocessed_segment');
+ expect(await page.screenshotSelector('.pageWrap,#notificationContainer')).to.matchImage('unprocessed_segment');
});
it('should not show a notification for custom segments that are not preprocessed', async function () {
await page.goto(url + '&segment=' + encodeURIComponent(customSegment));
- pageWrap = await page.$('.pageWrap');
- expect(await pageWrap.screenshot()).to.matchImage('custom_segment');
+ expect(await page.screenshotSelector('.pageWrap,#notificationContainer')).to.matchImage('custom_segment');
});
});