Release 2.19.3
This commit is contained in:
1 parent
55ee5dc366
commit
2e603caeb6
19 files changed
+351
-28
No files matched your search
@@ -170,7 +170,7 @@ test('API editor preview resolves zero-based indexed placeholders from sorted re
|
||||
assert.doesNotMatch(preview, /Cam/);
|
||||
});
|
||||
|
||||
test('API image bounds guide is limited to the small preview and hidden in the popup', () => {
|
||||
test('image and icon placeholder bounds are hidden in the popup but remain in the editor', () => {
|
||||
const editor = loadApiEditor();
|
||||
const preview = editor.renderPreview({ id: 23, region_key: 'apiRegion', fontFamily: 'Arial', fontSize: 20, fontColor: '#000000' }, {
|
||||
source_id: 11,
|
||||
@@ -181,10 +181,16 @@ test('API image bounds guide is limited to the small preview and hidden in the p
|
||||
existingContent: {}
|
||||
});
|
||||
const popupStyles = fs.readFileSync(path.join(__dirname, '../src/web/views/signage/slides/popup-preview.hbs'), 'utf8');
|
||||
const rssSource = fs.readFileSync(path.join(__dirname, '../src/web/public/js/regions/type/rss.js'), 'utf8');
|
||||
const weatherSource = fs.readFileSync(path.join(__dirname, '../src/web/public/js/regions/type/weather.js'), 'utf8');
|
||||
const weatherIconsSource = fs.readFileSync(path.join(__dirname, '../src/web/public/js/shared/weather-icons.js'), 'utf8');
|
||||
|
||||
assert.match(preview, /class="api-image-placeholder-bounds"/);
|
||||
assert.match(preview, /class="api-image-placeholder-bounds slide-preview-image-placeholder-bounds"/);
|
||||
assert.match(preview, /border:1px dashed/);
|
||||
assert.match(popupStyles, /#popup-preview-canvas \.api-image-placeholder-bounds\s*\{\s*border:\s*0 !important;/);
|
||||
assert.match(rssSource, /class="slide-preview-image-placeholder-bounds"/);
|
||||
assert.match(weatherSource, /class="slide-preview-image-placeholder-bounds"/);
|
||||
assert.match(weatherIconsSource, /class="slide-preview-image-placeholder-bounds"/);
|
||||
assert.match(popupStyles, /#popup-preview-canvas \.slide-preview-image-placeholder-bounds,[\s\S]*?#popup-preview-canvas \.api-image-placeholder-bounds\s*\{\s*border:\s*0 !important;[\s\S]*?outline:\s*0 !important;[\s\S]*?box-shadow:\s*none !important;/);
|
||||
});
|
||||
|
||||
test('API region plain placeholders work with a single object response', () => {
|
||||
|
||||
Reference in new issue
Block a user