Release v2.6.19
This commit is contained in:
@@ -14,7 +14,8 @@ test('timetable duplicate helper copies group and entry fields', () => {
|
||||
const group = {
|
||||
id: 5,
|
||||
name: 'Morning Shift',
|
||||
short_description: 'Weekday events'
|
||||
short_description: 'Weekday events',
|
||||
timezone: 'Europe/Berlin'
|
||||
};
|
||||
const entry = {
|
||||
id: 12,
|
||||
@@ -32,6 +33,7 @@ test('timetable duplicate helper copies group and entry fields', () => {
|
||||
assert.equal(duplicateGroup.name, 'Copy of Morning Shift');
|
||||
assert.equal(duplicateGroup.short_description, 'Weekday events');
|
||||
assert.equal(duplicateGroup.shortDescription, 'Weekday events');
|
||||
assert.equal(duplicateGroup.timezone, 'Europe/Berlin');
|
||||
assert.equal(duplicateEntry.id, null);
|
||||
assert.equal(duplicateEntry.schedule_group_id, null);
|
||||
assert.equal(duplicateEntry.title, 'Opening');
|
||||
@@ -42,7 +44,7 @@ test('timetable duplicate helper copies group and entry fields', () => {
|
||||
|
||||
test('timetable duplicate form model keeps info toast variant and secondary actions', () => {
|
||||
const model = buildTimetableGroupFormViewModel(
|
||||
{ id: null, name: 'Morning Shift', shortDescription: 'Weekday events' },
|
||||
{ id: null, name: 'Morning Shift', shortDescription: 'Weekday events', timezone: 'Europe/Berlin' },
|
||||
[],
|
||||
'Review the copied values and save when ready.',
|
||||
{ permissionKeys: ['timetables.create'] },
|
||||
@@ -52,6 +54,7 @@ test('timetable duplicate form model keeps info toast variant and secondary acti
|
||||
|
||||
assert.equal(model.messageVariant, 'info');
|
||||
assert.equal(model.showSaveSecondaryActions, true);
|
||||
assert.equal(model.timetableGroup.timezone, 'Europe/Berlin');
|
||||
});
|
||||
|
||||
test('timetable list template includes duplicate action', () => {
|
||||
|
||||
Reference in New Issue
Block a user