diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-12-21 23:23:51 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-12-21 23:23:51 +0300 |
commit | 9f84e573ae71fdfdedc273fb62da9106f27cf7cc (patch) | |
tree | d81ca136b0afe8f34f2517a57e4157e4b4ff64f2 /plugins/SegmentEditor/tests/UI | |
parent | cad78ef02cc0f05cdd32d3b07b1d99f431347622 (diff) |
Make sure unprocessed segment notification is still shown and include notifications in UI test. (#15296)
Diffstat (limited to 'plugins/SegmentEditor/tests/UI')
-rw-r--r-- | plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js | 6 |
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'); }); }); |