Update tests for project time settings and world settings, add new properties and scenarios

This commit is contained in:
2026-04-12 14:14:12 +02:00
parent 43fa4c147b
commit 574687c555
3 changed files with 47 additions and 5 deletions

View File

@@ -10,10 +10,13 @@ describe("createSetProjectTimeSettingsCommand", () => {
const originalTime = cloneProjectTimeSettings(
store.getState().projectDocument.time
);
const nextTime = {
startTimeOfDayHours: 18.5,
dayLengthMinutes: 12
};
const nextTime = cloneProjectTimeSettings(originalTime);
nextTime.startDayNumber = 4;
nextTime.startTimeOfDayHours = 18.5;
nextTime.dayLengthMinutes = 12;
nextTime.sunriseTimeOfDayHours = 5.75;
nextTime.sunsetTimeOfDayHours = 20.25;
nextTime.night.lightIntensityFactor = 0.28;
store.executeCommand(
createSetProjectTimeSettingsCommand({

View File

@@ -106,4 +106,13 @@ describe("world settings helpers", () => {
expect(areWorldSettingsEqual(left, right)).toBe(false);
});
it("treats the scene project-time lighting toggle as part of authored world equality", () => {
const left = createDefaultWorldSettings();
const right = cloneWorldSettings(left);
right.projectTimeLightingEnabled = false;
expect(areWorldSettingsEqual(left, right)).toBe(false);
});
});