diff --git a/tests/UI/specs/SegmentSelectorEditor_spec.js b/tests/UI/specs/SegmentSelectorEditor_spec.js index c28c9e6cb49b1be8c6f3380c90ebf0dff6086518..0fec52330f05057d3a52dbd4991c618691c19119 100644 --- a/tests/UI/specs/SegmentSelectorEditor_spec.js +++ b/tests/UI/specs/SegmentSelectorEditor_spec.js @@ -130,8 +130,8 @@ describe("SegmentSelectorEditorTest", function () { }, done); }); - it("should correctly update the segment when its details are changed and saved", function (done) { - expect.screenshot("updated").to.be.captureSelector(selectorsToCapture, function (page) { + it("should correctly should show a confirmation when changing segment definition", function (done) { + expect.screenshot("update_confirmation").to.be.captureSelector('.ui-dialog', function (page) { page.click('.segmentEditorPanel .editSegmentName'); page.evaluate(function () { $('input.edit_segment_name').val(''); @@ -150,7 +150,12 @@ describe("SegmentSelectorEditorTest", function () { }); page.click('button.saveAndApply'); + }, done); + }); + it("should correctly update the segment when saving confirmed", function (done) { + expect.screenshot("updated").to.be.captureSelector(selectorsToCapture, function (page) { + page.click('.ui-dialog button:contains(Yes)'); page.click('.segmentationContainer'); }, done); });