Release 2.21.6: sort editor regions by name
This commit is contained in:
1 parent
675483624b
commit
7748129307
8 files changed
+113
-8
No files matched your search
@@ -75,6 +75,15 @@ test('slide form queues editor image cleanup on save and close', () => {
|
||||
assert.ok(slideFormSource.includes("regionMediaController.queueUploadCleanup(slideFormEditorController.getImageUploadCleanupPaths())"));
|
||||
});
|
||||
|
||||
test('slide region cards and layout and animation selectors use name ordering', () => {
|
||||
const layoutEditorSource = fs.readFileSync(require.resolve('../src/web/public/js/slides/slide-layout-editor.js'), 'utf8');
|
||||
const animationEditorSource = fs.readFileSync(require.resolve('../src/web/public/js/slides/slide-animation-editor.js'), 'utf8');
|
||||
|
||||
assert.match(slideFormSource, /window\.templateDesignerUtils\.sortByName\(template\.regions\.filter/);
|
||||
assert.match(layoutEditorSource, /window\.templateDesignerUtils\.sortByName\(regions\(\)/);
|
||||
assert.match(animationEditorSource, /window\.templateDesignerUtils\.sortByName\(regions\(\)/);
|
||||
});
|
||||
|
||||
test('media library selections keep image and video remove controls', () => {
|
||||
assert.ok(mediaPickerSource.includes("var removeAction = isVideo ? 'region-video' : isQrImage ? 'region-qr-image' : 'region-image';"));
|
||||
assert.ok(mediaPickerSource.includes('data-remove-\' + removeAction'));
|
||||
|
||||
Reference in new issue
Block a user