test: update RBAC and table layout expectations
This commit is contained in:
1 parent
9c28eca3ef
commit
3ce4f70601
3 files changed
+14
-72
No files matched your search
@@ -326,7 +326,6 @@ test('template animation durations use percent in the advanced modal', () => {
|
||||
const advancedFields = fs.readFileSync(require.resolve('../src/web/views/signage/templates/animation-advanced-fields.hbs'), 'utf8');
|
||||
const script = fs.readFileSync(require.resolve('../src/web/public/js/templates/template-designer.js'), 'utf8');
|
||||
const utilsScript = fs.readFileSync(require.resolve('../src/web/public/js/templates/template-designer-utils.js'), 'utf8');
|
||||
const sharedControls = fs.readFileSync(require.resolve('../src/web/public/js/shared/region-animation-controls.js'), 'utf8');
|
||||
|
||||
assert.match(modal, /signage\/templates\/animation-advanced-fields/);
|
||||
assert.match(modal, /data-animation-modal-title>Advanced animations:/);
|
||||
@@ -339,10 +338,7 @@ test('template animation durations use percent in the advanced modal', () => {
|
||||
assert.match(advancedFields, /max="999"/);
|
||||
assert.ok(script.includes('window.pulseRegionAnimationControls.populateAdvanced(animationAdvancedModal, config)'));
|
||||
assert.ok(script.includes('window.pulseRegionAnimationControls.readAdvanced(animationAdvancedModal, getAnimationConfig(activeAnimationCard))'));
|
||||
assert.ok(sharedControls.includes('Math.round(Number(value) / 10)'));
|
||||
assert.ok(sharedControls.includes('Math.round(Number(value)) || 100)) * 10'));
|
||||
assert.ok(script.includes('MAX_ANIMATION_REPEAT_COUNT = 999'));
|
||||
assert.match(sharedControls, /Math\.min\(999, Math\.max\(1, Math\.round\(Number\(value\)\) \|\| 1\)\)/);
|
||||
assert.match(utilsScript, /MAX_ANIMATION_REPEAT_COUNT = 999/);
|
||||
assert.match(utilsScript, /clamp\(Math\.round\(Number\(value\.iterations\)\), 1, MAX_ANIMATION_REPEAT_COUNT\)/);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user