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 <tsteur@users.noreply.github.com>2019-05-09 01:26:39 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-05-09 01:26:39 +0300
commit76e60590f486f33a38e7ea08bf941fa57ac904c5 (patch)
tree695bafa55fcd74d79322ed3885e90c4a17ff3e01 /plugins/SegmentEditor
parent461a48e6d7050f73b1c25db98b6f96cff86bd043 (diff)
Switch UI tests from phantomjs to chrome headless (#14421)
* Make sure xss entries is always an array. * Update expected test files and submodule. * Regenerate broken omnifixture dump. * poc conversion to chrome headless for UI tests, single test works locally * Get single test to pass on travis & local w/ headless chrome. * Remove old diff viewer generation, and get output to look the same as before when there is a failure. * Add global timeout & get ViewDataTableTest to pass. * Convert BarGraph_spec.js. * Convert EmptySite_spec. * Update EvolutionGraph spec for chrome headless. * Convert GoalsTable test & find/replace for common changes. * Convert MeasurableManager. * Another find & replace. * Get Menus/OptOutForm to pass w/ chrome headless * Convert PeriodSelector, PieGraph & PivotByDimension UI tests. * undo unrelated debugging change * Convert QuickAccess UI tests * Converts ActionsDataTable UI tests * reset viewport after each testsuite * Converts RowEvolution UI tests * Converts Theme UI tests * Converts SiteSelector UI tests * Converts CustomVariables UI test * Converts DBStats UI test * Ignore empty responses when calling api/controller * Converts Dashboard UI tests * Converts Live UI tests * Converts SimpleUI tests * Converts Installation UI tests * Converts ImageGraph UI tests * Converts Login UI tests * Converts Marketplace UI tests * Converts Insights UI tests * Converts ReportExporting UI tests * Converts UIIntegration tests * Updates ViewDataTable UI tests * Converts CoreUpdater UI tests * Converts UsersManager UI tests * Converts Morpheus UI tests * Converts MultiSites UI tests * Fix testEnvironment.callApi handling of array parameters * Converts Overlay UI tests * Converts PrivacyManager UI tests * Converts ScheduledReports UI tests * Converts SegmentEditor UI tests * compare pixel difference in images * Converts PeriodSelector UI tests * allow a pixel difference * Converts SingleMetricView UI tests * Converts SitesManager UI tests * Converts Transitions UI tests * Converts MeasurableManager UI tests * Move Mouse out of screen after each test suite * Converts PieGraph UI tests * Ensure cursor is not shown in focused input elements * Converts VisitorMap UI tests * Converts CustomLogo UI tests * Converts BarGraph UI tests * Converts EvolutionGraph UI tests * Converts IntranetMeasurable UI tests * Converts TrackingFailures UI tests * Converts CampaignBuilder UI tests * Converts TagManagerTeaser UI tests * fix request url rewrite for changed port * Converts TwoFactorAuth UI tests * do not print full responses in logs, but size instead * improve additional style injection * use submodule branches * fix request interception * update dependencies * [TEMP] disable dangerous link checks * [TEMP] limit tests * Use puppeteer@next and make sure diffs get uploaded properly. * Use correct fs function. * Allow timeout to be specified on command line for UI tests and debug console logs. * timeout option tweak * Setup diff dir once before running tests not before each suite. * fix last commit * Update screenshots and fix some specs. * Convert some tests that were not converted during merge. * updating screenshots * Updating screenshots and fixing some tests. * more test fixes * couple more test fixes * More test fixes and plugin updates. * wait for jquery * Fix some screenshots and tests. * more test fixes * debug travis test failure * remove .only * more test fixes and updated expected files * another test fixing iteration * typo * another quick test change * more tests updates * Test fixes and & more debugging. * more debugging and test fixes * more fixes and debugging. * remove .only * Another round of fixed tests. * more debugging & fixes * more test changes * more debugging and fixes * Fixing more tests + some bug fixes. * Couple more fixes. * Couple more fixes. * Fixing tracking failures test * more fixes * Last couple fixes hopefully. * couple more test fixes * more fixes, bug fix in usersmanager, some test updates * Some more test fixes/changes. * more and more fixes * hoping for a green build * Do not compare against existing files in dashboard_spec. * more fixes, re-enabling travis * really re-enable travis * Install puppeteer on travis-ci. * more fixes * try to fix random failues * remove return * Convert some login tests I forgot and update UsersManager expected file * Fix test for primary key update * Update AddPrimaryKey.php * More test fixes + implement synchronous comparison threshold (so no resemblejs) * More wait fixes + reset token detection fix. * couple more fixes * Fix login/overlay screenshot issue & magick command running issue. * identify is the executable on travis (hopefully) + fix some random failures * Another run. * Last fix. * two more tweaks * typo
Diffstat (limited to 'plugins/SegmentEditor')
-rw-r--r--plugins/SegmentEditor/tests/UI/SegmentSelectorEditor_spec.js380
-rw-r--r--plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js31
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_0_initial.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_1_selector_open.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_2_segment_editor_update.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_3_segment_editor_edit_name.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_6_segment_editor_different.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_6_segment_editor_droplist.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_7_segment_editor_closed.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_8_segment_editor_create.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_add_new_and_condition.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_add_new_or_condition.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_complex_segment.png3
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_deleted.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_deleted_dialog.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_dimension_drag_drop.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_drag_and_condition.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_drag_or_condition.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_saved.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_saved_details.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_suggested_values.png3
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_update_confirmation.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_updated.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_updated_details.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/UnprocessedSegmentTest_custom_segment.png4
-rw-r--r--plugins/SegmentEditor/tests/UI/expected-screenshots/UnprocessedSegmentTest_unprocessed_segment.png4
26 files changed, 261 insertions, 244 deletions
diff --git a/plugins/SegmentEditor/tests/UI/SegmentSelectorEditor_spec.js b/plugins/SegmentEditor/tests/UI/SegmentSelectorEditor_spec.js
index 2b17e6f7ae..ccef0d4d03 100644
--- a/plugins/SegmentEditor/tests/UI/SegmentSelectorEditor_spec.js
+++ b/plugins/SegmentEditor/tests/UI/SegmentSelectorEditor_spec.js
@@ -15,262 +15,272 @@ describe("SegmentSelectorEditorTest", function () {
var generalParams = 'idSite=1&period=year&date=2012-08-09';
var url = '?module=CoreHome&action=index&' + generalParams + '#?' + generalParams + '&category=General_Actions&subcategory=General_Pages';
- function selectFieldValue(page, fieldName, textToSelect)
+ async function selectFieldValue(fieldName, textToSelect)
{
- page.execCallback(function () {
- page.webpage.evaluate(function(fieldName) {
- $(fieldName + ' input.select-dropdown').click();
- }, fieldName);
- });
- page.execCallback(function () {
- page.webpage.evaluate(function(fieldName, textToSelect) {
- $(fieldName + ' .dropdown-content.active li:contains("' + textToSelect + '"):first').click();
- }, fieldName, textToSelect);
- });
- page.click({ x: -10, y: -10 });
+ await page.webpage.evaluate((fieldName) => {
+ $(fieldName + ' input.select-dropdown').click();
+ }, fieldName);
+ await page.webpage.evaluate((fieldName, textToSelect) => {
+ $(fieldName + ' .dropdown-content.active li:contains("' + textToSelect + '"):first').click();
+ }, fieldName, textToSelect);
+ await page.mouse.move(-10, -10);
}
- function selectDimension(page, prefixSelector, category, name)
+ async function selectDimension(prefixSelector, category, name)
{
- page.click(prefixSelector + ' .metricListBlock .select-wrapper');
- page.click(prefixSelector + ' .metricListBlock .expandableList h4:contains(' + category + ')');
- page.click(prefixSelector + ' .metricListBlock .expandableList .secondLevel li:contains(' + name + ')');
+ await (await page.jQuery(prefixSelector + ' .metricListBlock .select-wrapper', { waitFor: true })).click();
+ await (await page.jQuery(prefixSelector + ' .metricListBlock .expandableList h4:contains(' + category + ')', { waitFor: true })).click();
+ await (await page.jQuery(prefixSelector + ' .metricListBlock .expandableList .secondLevel li:contains(' + name + ')', { waitFor: true })).click();
}
- it("should load correctly", function (done) {
- expect.screenshot("0_initial").to.be.captureSelector(selectorsToCapture, function (page) {
- page.load(url);
- }, done);
+ it("should load correctly", async function() {
+ await page.goto(url);
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('0_initial');
});
- it("should open selector when control clicked", function (done) {
- expect.screenshot("1_selector_open").to.be.captureSelector(selectorsToCapture, function (page) {
- page.click('.segmentationContainer .title');
- }, done);
+ it("should open selector when control clicked", async function() {
+ await page.click('.segmentationContainer .title');
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('1_selector_open');
});
- it("should open segment editor when edit link clicked for existing segment", function (done) {
- expect.screenshot("2_segment_editor_update").to.be.captureSelector(selectorsToCapture, function (page) {
- page.evaluate(function() {
- $('.segmentList .editSegment:first').click()
- }, 200);
- }, done);
+ it("should open segment editor when edit link clicked for existing segment", async function() {
+ await page.evaluate(function() {
+ $('.segmentList .editSegment:first').click()
+ });
+ await page.waitForNetworkIdle();
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('2_segment_editor_update');
});
- it("should start editing segment name when segment name edit link clicked", function (done) {
- expect.screenshot("3_segment_editor_edit_name").to.be.captureSelector(selectorsToCapture, function (page) {
- page.click('.segmentEditorPanel .editSegmentName');
- }, done);
+ it("should start editing segment name when segment name edit link clicked", async function() {
+ await page.click('.segmentEditorPanel .editSegmentName');
+ await page.waitFor(250); // animation
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('3_segment_editor_edit_name');
});
- it("should show the egment editor's available segments dropdown", function (done) {
- expect.screenshot("6_segment_editor_droplist").to.be.captureSelector(selectorsToCapture, function (page) {
- page.mouseMove('.available_segments a.dropList');
- page.click('.available_segments a.dropList');
- }, done);
+ it("should show the egment editor's available segments dropdown", async function() {
+ var elem = await page.$('.available_segments a.dropList');
+ await elem.hover();
+ await page.click('.available_segments a.dropList');
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('6_segment_editor_droplist');
});
- it("should change segment when another available segment clicked in segment editor's available segments dropdown", function (done) {
- expect.screenshot("6_segment_editor_different").to.be.captureSelector(selectorsToCapture, function (page) {
- page.click('.ui-menu-item a:contains(Add new segment)');
- }, done);
+ it("should change segment when another available segment clicked in segment editor's available segments dropdown", async function() {
+ await (await page.jQuery('.ui-menu-item a:contains(Add new segment)')).click();
+ await page.waitForNetworkIdle();
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('6_segment_editor_different');
});
- it("should close the segment editor when the close link is clicked", function (done) {
- expect.screenshot("7_segment_editor_closed").to.be.captureSelector(selectorsToCapture, function (page) {
- page.evaluate(function () {
- $('.segmentEditorPanel .segment-footer .close').click();
- });
- }, done);
+ it("should close the segment editor when the close link is clicked", async function() {
+ await page.evaluate(function () {
+ $('.segmentEditorPanel .segment-footer .close').click();
+ });
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('7_segment_editor_closed');
});
- it("should open blank segment editor when create new segment link is clicked", function (done) {
- expect.screenshot("8_segment_editor_create").to.be.captureSelector(selectorsToCapture, function (page) {
- page.click('.segmentationContainer .title');
- page.click('.add_new_segment');
- }, done);
+ it("should open blank segment editor when create new segment link is clicked", async function() {
+ await page.click('.segmentationContainer .title');
+ await page.click('.add_new_segment');
+ await page.waitForNetworkIdle();
+ await page.waitFor('.segmentRow0');
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('8_segment_editor_create');
});
- it("should update segment expression when selecting different segment", function (done) {
- expect.screenshot("dimension_drag_drop").to.be.captureSelector(selectorsToCapture, function (page) {
- selectDimension(page, '.segmentRow0', 'Actions', 'Action URL');
- }, done);
+ it("should update segment expression when selecting different segment", async function() {
+ await selectDimension('.segmentRow0', 'Actions', 'Action URL');
+ await page.waitForNetworkIdle();
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('dimension_drag_drop');
});
- // phantomjs won't take screenshots of dropdown windows, so skip this test
- it.skip("should show suggested segment values when a segment value input is focused", function (done) {
- expect.screenshot("suggested_values").to.be.captureSelector(selectorsToCapture, function (page) {
- page.click('.segmentEditorPanel .ui-autocomplete-input');
- }, done);
+ it("should show suggested segment values when a segment value input is focused", async function() {
+ await page.click('.segmentEditorPanel .segmentRow0 .ui-autocomplete-input');
+ await page.waitForNetworkIdle();
+ await page.waitFor(250);
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('suggested_values');
});
- it("should add an OR condition when clicking on add OR", function (done) {
- expect.screenshot("add_new_or_condition").to.be.captureSelector(selectorsToCapture, function (page) {
- page.click('.segmentEditorPanel .segment-add-or');
- }, done);
+ it("should add an OR condition when clicking on add OR", async function() {
+ await page.click('.segmentEditorPanel .segment-add-or');
+ await page.waitFor(() => !! $('.segmentRow0 .segment-rows>div:eq(1)').length);
+ await page.waitForNetworkIdle();
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('add_new_or_condition');
});
- it("should add an OR condition when a segment dimension is selected in the OR placeholder section", function (done) {
- expect.screenshot("drag_or_condition").to.be.captureSelector(selectorsToCapture, function (page) {
- selectDimension(page, '.segmentRow0 .segment-row:last', 'Actions', 'Clicked URL');
- }, done);
+ it("should add an OR condition when a segment dimension is selected in the OR placeholder section", async function() {
+ await selectDimension('.segmentRow0 .segment-row:last', 'Actions', 'Clicked URL');
+ await page.waitForNetworkIdle();
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('drag_or_condition');
});
- it("should add an AND condition when clicking on add AND", function (done) {
- expect.screenshot("add_new_and_condition").to.be.captureSelector(selectorsToCapture, function (page) {
- page.click('.segmentEditorPanel .segment-add-row');
- }, done);
+ it("should add an AND condition when clicking on add AND", async function() {
+ await page.click('.segmentEditorPanel .segment-add-row');
+ await page.waitFor('.segmentRow1');
+ await page.waitForNetworkIdle();
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('add_new_and_condition');
});
- it("should add an AND condition when a segment dimension is dragged to the AND placeholder section", function (done) {
- expect.screenshot("drag_and_condition").to.be.captureSelector(selectorsToCapture, function (page) {
- selectDimension(page, '.segmentRow1', 'Actions', 'Clicked URL');
- }, done);
+ it("should add an AND condition when a segment dimension is dragged to the AND placeholder section", async function() {
+ await selectDimension('.segmentRow1', 'Actions', 'Clicked URL');
+ await page.waitForNetworkIdle();
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('drag_and_condition');
});
- it("should save a new segment and add it to the segment list when the form is filled out and the save button is clicked", function (done) {
- expect.screenshot("saved").to.be.captureSelector(selectorsToCapture, function (page) {
- page.evaluate(function () {
- $('.metricValueBlock input').each(function (index) {
- $(this).val('value ' + index).change();
- });
+ it("should save a new segment and add it to the segment list when the form is filled out and the save button is clicked", async function() {
+ await page.evaluate(function () {
+ $('.metricValueBlock input').each(function (index) {
+ $(this).val('value ' + index).change();
});
+ });
- page.sendKeys('input.edit_segment_name', 'new segment');
- page.click('.segmentRow0 .segment-or'); // click somewhere else to save new name
+ await page.type('input.edit_segment_name', 'new segment');
+ await page.click('.segmentRow0 .segment-or'); // click somewhere else to save new name
- page.evaluate(function () {
- $('button.saveAndApply').click();
- });
+ await page.evaluate(function () {
+ $('button.saveAndApply').click();
+ });
+ await page.waitForNetworkIdle();
+ await page.waitFor('.segmentationContainer');
- page.click('.segmentationContainer');
- }, done);
+ await page.click('.segmentationContainer');
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('saved');
});
- it("should show the new segment after page reload", function (done) {
- expect.screenshot("saved").to.be.captureSelector("saved_reload", selectorsToCapture, function (page) {
- page.reload();
- page.click('.segmentationContainer .title');
- }, done);
+ it("should show the new segment after page reload", async function() {
+ await page.reload();
+ await page.click('.segmentationContainer .title');
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('saved');
});
- it("should correctly load the new segment's details when the new segment is edited", function (done) {
- expect.screenshot("saved_details").to.be.captureSelector(selectorsToCapture, function (page) {
- page.click('.segmentList li[data-idsegment=4] .editSegment');
- }, done);
+ it("should correctly load the new segment's details when the new segment is edited", async function() {
+ await page.click('.segmentList li[data-idsegment="4"] .editSegment');
+ await page.waitForNetworkIdle();
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('saved_details');
});
- it("should correctly should show a confirmation when changing segment definition", function (done) {
- expect.screenshot("update_confirmation").to.be.captureSelector('.modal.open', function (page) {
- page.click('.segmentEditorPanel .editSegmentName');
- page.evaluate(function () {
- $('input.edit_segment_name').val('').change();
- });
- page.sendKeys('input.edit_segment_name', 'edited segment');
- page.click('.segmentRow0 .segment-or:first'); // click somewhere else to save new name
+ it("should correctly should show a confirmation when changing segment definition", async function() {
+ await page.click('.segmentEditorPanel .editSegmentName');
+ await page.evaluate(function () {
+ $('input.edit_segment_name').val('').change();
+ });
+ await page.type('input.edit_segment_name', 'edited segment');
+ await (await page.jQuery('.segmentRow0 .segment-or:first')).click(); // click somewhere else to save new name
- selectFieldValue(page, '.segmentRow0 .segment-row:first .metricMatchBlock', 'Is not');
- selectFieldValue(page, '.segmentRow0 .segment-row:last .metricMatchBlock', 'Is not');
- selectFieldValue(page, '.segmentRow1 .segment-row .metricMatchBlock', 'Is not');
+ await selectFieldValue('.segmentRow0 .segment-row:first .metricMatchBlock', 'Is not');
+ await selectFieldValue('.segmentRow0 .segment-row:last .metricMatchBlock', 'Is not');
+ await selectFieldValue('.segmentRow1 .segment-row .metricMatchBlock', 'Is not');
- page.evaluate(function () {
- $('.metricValueBlock input').each(function (index) {
- $(this).val('new value ' + index).change();
- });
+ await page.evaluate(function () {
+ $('.metricValueBlock input').each(function (index) {
+ $(this).val('new value ' + index).change();
});
+ });
- page.evaluate(function () {
- $('button.saveAndApply').click();
- });
- }, done);
+ await page.evaluate(function () {
+ $('button.saveAndApply').click();
+ });
+ await page.waitFor('.modal.open');
+ await page.waitFor(500); // animation to show confirm
+
+ const modal = await page.$('.modal.open');
+ expect(await modal.screenshot()).to.matchImage('update_confirmation');
});
- it("should correctly update the segment when saving confirmed", function (done) {
- expect.screenshot("updated").to.be.captureSelector(selectorsToCapture, function (page) {
- page.click('.modal.open .modal-footer a:contains(Yes):visible');
- page.click('.segmentationContainer');
- }, done);
+ it("should correctly update the segment when saving confirmed", async function() {
+ var elem = await page.jQuery('.modal.open .modal-footer a:contains(Yes):visible');
+ await elem.click();
+ await page.waitForNetworkIdle();
+ await page.click('.segmentationContainer');
+ await page.waitForNetworkIdle();
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('updated');
});
- it("should show the updated segment after page reload", function (done) {
- expect.screenshot("updated_reload").to.be.captureSelector("updated_reload", selectorsToCapture, function (page) {
- page.reload();
- page.click('.segmentationContainer .title');
- }, done);
+ it("should show the updated segment after page reload", async function() {
+ await page.reload();
+ await page.click('.segmentationContainer .title');
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('updated');
});
- it("should correctly load the updated segment's details when the updated segment is edited", function (done) {
- expect.screenshot("updated_details").to.be.captureSelector(selectorsToCapture, function (page) {
- page.click('.segmentList li[data-idsegment=4] .editSegment');
- }, done);
+ it("should correctly load the updated segment's details when the updated segment is edited", async function() {
+ await page.click('.segmentList li[data-idsegment="4"] .editSegment');
+ await page.waitForNetworkIdle();
+
+ await page.waitFor('.segmentListContainer .metricValueBlock');
+
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('updated_details');
});
- it("should correctly show delete dialog when the delete link is clicked", function (done) {
- expect.screenshot('deleted_dialog').to.be.captureSelector('.modal.open', function (page) {
- page.evaluate(function () {
- $('.segmentEditorPanel a.delete').click();
- });
- }, done);
+ it("should correctly show delete dialog when the delete link is clicked", async function() {
+ await page.click('.segmentEditorPanel a.delete');
+ await page.waitFor(500); // animation
+
+ const modal = await page.$('.modal.open');
+ expect(await modal.screenshot()).to.matchImage('deleted_dialog');
});
- it("should correctly remove the segment when the delete dialog is confirmed", function (done) {
- expect.screenshot('deleted').to.be.captureSelector(selectorsToCapture + ',.modal.open', function (page) {
- page.click('.modal.open .modal-footer a:contains(Yes):visible');
+ it("should correctly remove the segment when the delete dialog is confirmed", async function() {
+ var elem = await page.jQuery('.modal.open .modal-footer a:contains(Yes):visible');
+ await elem.click();
+ await page.waitForNetworkIdle();
+ await page.waitForSelector('.segmentationContainer .title');
- page.click('.segmentationContainer .title');
- }, done);
+ await page.click('.segmentationContainer .title');
+ expect(await page.screenshotSelector(selectorsToCapture + ',.modal.open')).to.matchImage('deleted');
});
- it("should not show the deleted segment after page reload", function (done) {
- expect.screenshot('deleted').to.be.captureSelector('deleted_reload', selectorsToCapture, function (page) {
- page.reload();
- page.click('.segmentationContainer .title');
- }, done);
+ it("should not show the deleted segment after page reload", async function() {
+ await page.reload();
+ await page.waitForSelector('.segmentationContainer .title');
+
+ await page.click('.segmentationContainer .title');
+ expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('deleted');
});
- it('should correctly handle complex segments w/ encoded characters and whitespace', function (done) {
- expect.screenshot('complex_segment').to.be.capture(function (page) {
- page.load(url);
+ it('should correctly handle complex segments with encoded characters and whitespace', async function () {
+ await page.goto(url);
- page.click('.segmentationContainer .title');
- page.click('a.add_new_segment');
- page.sendKeys('input.edit_segment_name', 'complex segment');
+ await page.click('.segmentationContainer .title');
+ await page.click('a.add_new_segment');
+ await page.type('input.edit_segment_name', 'complex segment');
- selectDimension(page, '.segmentRow0', 'Visitors', 'Browser');
- selectFieldValue(page, '.segmentRow0 .segment-row:eq(0) .metricMatchBlock', 'Is not');
+ await page.waitFor('.segmentRow0');
+ await selectDimension('.segmentRow0', 'Visitors', 'Browser');
+ await selectFieldValue('.segmentRow0 .segment-row:eq(0) .metricMatchBlock', 'Is not');
- page.evaluate(function () {
- var complexValue = 's#2&#--_*+?# #5"\'&<>.22,3';
- $('.segmentRow0 .segment-row:first .metricValueBlock input').val(complexValue).change();
- });
+ await page.evaluate(function () {
+ var complexValue = 's#2&#--_*+?# #5"\'&<>.22,3';
+ $('.segmentRow0 .segment-row:first .metricValueBlock input').val(complexValue).change();
+ });
- page.click('.segment-add-or');
+ await page.click('.segment-add-or');
+ await page.waitFor(() => !! $('.segmentRow0 .segment-row:eq(1)').length);
- // configure or condition
- selectDimension(page, '.segmentRow0 .segment-row:eq(1)', 'Visitors', 'Browser');
- selectFieldValue(page, '.segmentRow0 .segment-row:eq(1) .metricMatchBlock', 'Is');
+ // configure or condition
+ await selectDimension('.segmentRow0 .segment-row:eq(1)', 'Visitors', 'Browser');
+ await selectFieldValue('.segmentRow0 .segment-row:eq(1) .metricMatchBlock', 'Is');
- page.evaluate(function () {
- var complexValue = 's#2&#--_*+?# #5"\'&<>.22,3';
- $('.segmentRow0 .segment-row:eq(1) .metricValueBlock input').val(complexValue).change();
- });
+ await page.evaluate(function () {
+ var complexValue = 's#2&#--_*+?# #5"\'&<>.22,3';
+ $('.segmentRow0 .segment-row:eq(1) .metricValueBlock input').val(complexValue).change();
+ });
- page.click('.segment-add-row');
+ await page.click('.segment-add-row');
+ await page.waitFor('.segmentRow1 .segment-row');
- // configure and condition
- selectDimension(page, '.segmentRow1', 'Visitors', 'Browser');
- selectFieldValue(page, '.segmentRow1 .segment-row:first .metricMatchBlock', 'Is not');
+ // configure and condition
+ await selectDimension('.segmentRow1', 'Visitors', 'Browser');
+ await selectFieldValue('.segmentRow1 .segment-row:first .metricMatchBlock', 'Is not');
- page.evaluate(function () {
- var complexValue = 's#2&#--_*+?# #5"\'&<>.22,3';
- $('.segmentRow1 .metricValueBlock input').val(complexValue).change();
- });
- page.evaluate(function () {
- $('button.saveAndApply').click();
- });
- page.evaluate(function () {
- console.log(window.location.href);
- });
- }, done);
+ await page.evaluate(function () {
+ var complexValue = 's#2&#--_*+?# #5"\'&<>.22,3';
+ $('.segmentRow1 .metricValueBlock input').val(complexValue).change();
+ });
+ await page.evaluate(function () {
+ $('button.saveAndApply').click();
+ });
+
+ await page.waitForNetworkIdle();
+ await page.waitFor('.dataTable');
+ await page.waitForNetworkIdle();
+
+ expect(await page.screenshot()).to.matchImage('complex_segment');
});
});
diff --git a/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js b/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js
index 5278471cba..a2c24f6657 100644
--- a/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js
+++ b/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js
@@ -9,24 +9,23 @@
describe("UnprocessedSegmentTest", function () {
this.fixture = 'Piwik\\Tests\\Fixtures\\OneVisitorTwoVisits';
- this.timeout(0);
var generalParams = 'idSite=1&period=day&date=2010-03-06';
var segment = 'browserCode==ff';
var customSegment = 'languageCode==fr';
var url = '?module=CoreHome&action=index&' + generalParams + '#?' + generalParams + '&category=General_Visitors&subcategory=General_Overview';
- before(function (done) {
- testEnvironment.callApi('SegmentEditor.add', {
+ before(async function () {
+ await testEnvironment.callApi('SegmentEditor.add', {
name: '<script>alert("testsegment");</script>',
definition: segment,
idSite: 1,
autoArchive: 1,
enableAllUsers: 1,
- }, done);
+ });
});
- before(function () {
+ before(async function () {
testEnvironment.configOverride.General = {
browser_archiving_disabled_enforce: '1',
enable_browser_archiving_triggering: '0',
@@ -37,19 +36,21 @@ describe("UnprocessedSegmentTest", function () {
testEnvironment.save();
});
- after(function (done) {
- testEnvironment.callApi('SegmentEditor.delete', { idSegment: 1 }, done);
+ after(async function () {
+ await testEnvironment.callApi('SegmentEditor.delete', { idSegment: 1 });
});
- it("should show a notification for unprocessed segments", function (done) {
- expect.screenshot("unprocessed_segment").to.be.captureSelector('.pageWrap', function (page) {
- page.load(url + '&segment=' + encodeURIComponent(segment));
- }, done);
+ 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');
});
- it('should not show a notification for custom segments that are not preprocessed', function (done) {
- expect.screenshot("custom_segment").to.be.captureSelector('.pageWrap', function (page) {
- page.load(url + '&segment=' + encodeURIComponent(customSegment));
- }, done);
+ 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');
});
});
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_0_initial.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_0_initial.png
index 21bea07422..b21b3b8f46 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_0_initial.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_0_initial.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:9f3e11dd80620729e552543dbd0477da5347002c4458f5f6826c98f0bdc0b3b8
-size 1331
+oid sha256:cd8dbdd649e4004eb098ecb165ba378575222debe965b92c92407349000dc5e4
+size 1162
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_1_selector_open.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_1_selector_open.png
index 76e8bee812..f62f5d8a1c 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_1_selector_open.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_1_selector_open.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7805ffae7536d7087672d08f7f0052e7e37c2df0c52d0c96c04290b1688934d4
-size 16167
+oid sha256:9560f09da0edfddb396d3277fb0081c597b4f6e3674bb2c7d739791b4974b856
+size 14874
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_2_segment_editor_update.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_2_segment_editor_update.png
index c22ddeef74..e459e0f205 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_2_segment_editor_update.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_2_segment_editor_update.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3c891550edd275c575549c965de8fe53d48c5d553d492d901403fb29b7201d69
-size 37004
+oid sha256:f31cff4d688c5bdd8ab69a82d0b994f4268c955eb7f510e6e416f25673d79317
+size 37411
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_3_segment_editor_edit_name.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_3_segment_editor_edit_name.png
index daa7a94e9f..d5c7857d89 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_3_segment_editor_edit_name.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_3_segment_editor_edit_name.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3c117679f17e9e8dff16a8e86dd9d33b52f10b5003d9cb5c8255dcc5cbec4f43
-size 37470
+oid sha256:db381209eb8dd9ec485d120152a7235646b986e6f4437d6a49d6596040c8d39a
+size 38208
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_6_segment_editor_different.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_6_segment_editor_different.png
index 292db54e2f..7b0949d29f 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_6_segment_editor_different.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_6_segment_editor_different.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:55376e221ca4c60e019fd6967beef1c728bcd3c129b86d7ce8abb46d32b3fefb
-size 33007
+oid sha256:5c152f4a295626d2f17f44e6474fdc7fefcb4226073e434e07952f5fe16c0f25
+size 32621
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_6_segment_editor_droplist.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_6_segment_editor_droplist.png
index 5d2f5a6506..d28bd348cc 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_6_segment_editor_droplist.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_6_segment_editor_droplist.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:dfd607203eac993c858327f0718aa4a39707538330916f08c9ea210b20e589c6
-size 42708
+oid sha256:5ba9dcc24ae1840d3d1c4c068f74eeadc5db53b06f551ad07c1f8d0fffa03656
+size 44869
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_7_segment_editor_closed.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_7_segment_editor_closed.png
index af88b948f6..b21b3b8f46 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_7_segment_editor_closed.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_7_segment_editor_closed.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d05b2fc128293b31a397ec8d2e33c4e4c52cdc28c072e77a1fe957026b81a19b
-size 1328
+oid sha256:cd8dbdd649e4004eb098ecb165ba378575222debe965b92c92407349000dc5e4
+size 1162
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_8_segment_editor_create.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_8_segment_editor_create.png
index 292db54e2f..7b0949d29f 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_8_segment_editor_create.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_8_segment_editor_create.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:55376e221ca4c60e019fd6967beef1c728bcd3c129b86d7ce8abb46d32b3fefb
-size 33007
+oid sha256:5c152f4a295626d2f17f44e6474fdc7fefcb4226073e434e07952f5fe16c0f25
+size 32621
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_add_new_and_condition.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_add_new_and_condition.png
index c8658f845e..83d5c8a3ce 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_add_new_and_condition.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_add_new_and_condition.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4fe149f4b84d0fabe7948a26a7fe61101488585b99f87ef6d315fc093845fb7b
-size 46710
+oid sha256:0b74c540f31e93976289489179978b749931ba6749ac9bf6efa2588d4e8cf0c3
+size 46657
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_add_new_or_condition.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_add_new_or_condition.png
index c492062c5a..b51db2484c 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_add_new_or_condition.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_add_new_or_condition.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:03bda3327d773409077c21e5bd1b2e7729821ef0b22d0ba8c7c473279e47ec78
-size 37452
+oid sha256:d06be18e9b116fc609bbccbad6e04bee66214c041a7700d32a5a2847f4ed61e8
+size 37124
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_complex_segment.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_complex_segment.png
new file mode 100644
index 0000000000..bd5feb6b9e
--- /dev/null
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_complex_segment.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bcefc972198a7e18a839c8b306114338451c03e64d7abb4793fdd1fe7e74dd0d
+size 128415
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_deleted.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_deleted.png
index 76e8bee812..f62f5d8a1c 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_deleted.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_deleted.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7805ffae7536d7087672d08f7f0052e7e37c2df0c52d0c96c04290b1688934d4
-size 16167
+oid sha256:9560f09da0edfddb396d3277fb0081c597b4f6e3674bb2c7d739791b4974b856
+size 14874
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_deleted_dialog.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_deleted_dialog.png
index 9ad2ecee25..52f789287e 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_deleted_dialog.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_deleted_dialog.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4aef06fd5a18355693a9dd414da9d8afc1286073ac9b182da0b5381ca190db61
-size 8367
+oid sha256:64e7af85fba2344800ac8a2e98afb75244104abdd863b0b7c224f9391e7a4b15
+size 7145
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_dimension_drag_drop.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_dimension_drag_drop.png
index 813e7e47d9..2855457392 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_dimension_drag_drop.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_dimension_drag_drop.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3ecf5b930ce87d1b99689840b1723e61644d44cc6822f03a82f0a599fc9a0b37
-size 31922
+oid sha256:09fe7c17dc42db10486ad86f19d07323291415eee3d6c9a842090708f38f5987
+size 31997
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_drag_and_condition.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_drag_and_condition.png
index 31911014de..5083a26bec 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_drag_and_condition.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_drag_and_condition.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:81ad9a201fb66f393742786922c7dafb46f3707803e1528377ad03d7366c25ff
-size 45746
+oid sha256:2e858815f06ea8f7df7ca2d4191ff989a56c80a8394c6532d1762256f52c6959
+size 46087
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_drag_or_condition.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_drag_or_condition.png
index d77088b91b..0dcfb1676c 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_drag_or_condition.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_drag_or_condition.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:9b7c2e948fe130cdcff2b10bc018b838ac4424d46bb28bc5396dfe3c2728260c
-size 36453
+oid sha256:b4298c146da0bb1d1f6e05a68159219b574cfa951cc274e3706c7ae77934c80f
+size 36521
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_saved.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_saved.png
index 33a6647971..a66470351c 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_saved.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_saved.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:5b624d2016da8e15039568b14345d9b81ea3108be85f162ea40bb8d45f91d6bc
-size 17757
+oid sha256:9b3b93c0906a13b7f132cf493d2a857d3e69a99ef018ad097d0ed8c830f7c49d
+size 16692
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_saved_details.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_saved_details.png
index afcda3c3b6..67488deae5 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_saved_details.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_saved_details.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3381d59d68ee211f61adc15e1e4ae561ab61c709612daac10b387366091bf139
-size 48307
+oid sha256:85442d53658181290a206e2ae0142b9d5b5326bba75bd6065ed3077f3c84dd6c
+size 48463
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_suggested_values.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_suggested_values.png
new file mode 100644
index 0000000000..b6b612b5a5
--- /dev/null
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_suggested_values.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:14d28c45f38f021b7b8373b563f9b6f1740737edb1e943ea05f557f65caf80bf
+size 34809
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_update_confirmation.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_update_confirmation.png
index a598348bb5..5d4705257f 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_update_confirmation.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_update_confirmation.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:cb49be0174a2987a335d9dd54665223d1cac3bdbecb7912399f6f94345bf936f
-size 32536
+oid sha256:e61aa3f77c43116b0355c0301ccacce31481937d06ad52ddc8762c4929c3f7db
+size 25258
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_updated.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_updated.png
index d84b3ad416..1435e63942 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_updated.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_updated.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1c2b15e9842d14ca2bc23e371294c4d70bf12085985e8f52a411ddf311f4fbb4
-size 17899
+oid sha256:69499e92df79b9c7f4b7511f4dc825614c2a8995861dcaef5f99ab95d615aed6
+size 16984
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_updated_details.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_updated_details.png
index 91c9c31530..1ce2dcdfc4 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_updated_details.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_updated_details.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:96ecf6285e88be985592c9b871e68eaa63d5a1f74f7d22fd28397e80a6b046ff
-size 50942
+oid sha256:9176778fe80d24435c90ea48bcdac3d9424212ac9f623f8806ed5754a4ba885b
+size 50757
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/UnprocessedSegmentTest_custom_segment.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/UnprocessedSegmentTest_custom_segment.png
index 12b4f3bdc7..3948393b1a 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/UnprocessedSegmentTest_custom_segment.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/UnprocessedSegmentTest_custom_segment.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ad9b2fedc8c67655c4aa977ca26024124cff4b7cbe5c46c761ef2254de1d2b06
-size 59313
+oid sha256:1f06d9ef853b7291f8f5d207b4db30b980fe9d451d61fb9636b89103d3ef4a66
+size 56494
diff --git a/plugins/SegmentEditor/tests/UI/expected-screenshots/UnprocessedSegmentTest_unprocessed_segment.png b/plugins/SegmentEditor/tests/UI/expected-screenshots/UnprocessedSegmentTest_unprocessed_segment.png
index 6bf3868d6f..1a87cdace1 100644
--- a/plugins/SegmentEditor/tests/UI/expected-screenshots/UnprocessedSegmentTest_unprocessed_segment.png
+++ b/plugins/SegmentEditor/tests/UI/expected-screenshots/UnprocessedSegmentTest_unprocessed_segment.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a6815b1531272dac1dfe18774439fa8c448c519cfad013096d94a65a200864af
-size 103779
+oid sha256:4820cd13518cb7ffeedb87c4dcd7ae687fa76fde630c2332312fc46450424ab3
+size 98055