Polish account interactions and settings layout
CI / verify (push) Successful in 5m2s

Add smooth account editor transitions with immediate input release, keep the cursor visible in development and production windows, align host option descriptions, and ensure localized settings search placeholders fit at narrow widths. Bump the application to v2.1.22 and extend hidden Electron regression coverage.
This commit is contained in:
Sucukdeluxe
2026-08-15 22:35:51 +02:00
parent f1774b50f8
commit 16f6f93a72
8 changed files with 269 additions and 18 deletions
+32 -1
View File
@@ -139,6 +139,32 @@ test('configureStartupRenderer disables hardware acceleration for a Windows Remo
assert.equal(calls, 1);
});
test('configureStartupRenderer forces full motion only for hot dev', () => {
const devSwitches = [];
const releaseSwitches = [];
const createApp = switches => ({
disableHardwareAcceleration() {},
getPath(name) {
assert.equal(name, 'userData');
return 'C:\\ReleaseTest\\user-data';
},
commandLine: {
appendSwitch(name, value) {
switches.push({ name, value });
}
}
});
configureStartupRenderer(createApp(devSwitches), { SESSIONNAME: 'Console' }, 'win32', ['electron', '.', '--dev']);
configureStartupRenderer(createApp(releaseSwitches), { SESSIONNAME: 'Console' }, 'win32', ['Multi-Hoster-Upload.exe']);
assert.deepEqual(devSwitches, [
{ name: 'force-prefers-no-reduced-motion', value: undefined },
{ name: 'user-data-dir', value: 'C:\\ReleaseTest\\user-data' }
]);
assert.deepEqual(releaseSwitches, []);
});
test('resolveStartupLanguage accepts only the supported persisted language', () => {
assert.equal(resolveStartupLanguage({ globalSettings: { language: 'de' } }), 'de');
assert.equal(resolveStartupLanguage({ globalSettings: { language: 'en' } }), 'en');
@@ -147,10 +173,15 @@ test('resolveStartupLanguage accepts only the supported persisted language', ()
});
test('createStartupWindow forces the main window to start hidden', () => {
const startup = createStartupWindow(TestBrowserWindow, { width: 1100, show: true });
const startup = createStartupWindow(TestBrowserWindow, {
width: 1100,
show: true,
disableAutoHideCursor: false
});
assert.equal(startup.window.options.width, 1100);
assert.equal(startup.window.options.show, false);
assert.equal(startup.window.options.disableAutoHideCursor, true);
});
test('main window uses the branded application icon', () => {