Windows package smoke (export, hw decode toggle), fail-closed ELF checker, exact built-in icons, own-name highlight, ICO, PRODUCT/DESIGN, docs sync
ci / linux-arm64-cross (push) Successful in 3m37s
ci / linux-x64 (push) Successful in 4m19s

This commit is contained in:
omar committed 2026-10-24 03:47:19 +03:00
1 parent aaa389cc9b
commit 24266469bf
19 files changed
+387 -25

No files matched your search

+33 -2
View File
@@ -30,10 +30,12 @@ const step = (name, data = {}) => {
};
async function launch(label) {
const extra = [...(process.env.TEAMSPEACH_SMOKE_EXTRA_ARGS ?? '').split(' ').filter(Boolean), ...(args.fakemic ? ['--use-fake-device-for-media-stream', '--use-fake-ui-for-media-stream'] : [])];
// --exe runs a packaged build instead of the development tree.
const app = await electron.launch({
executablePath: electronPath,
executablePath: args.exe ? path.resolve(args.exe) : electronPath,
env: { ...process.env, TEAMSPEACH_PROFILE_DIR: profile },
args: [root, ...(process.env.TEAMSPEACH_SMOKE_EXTRA_ARGS ?? '').split(' ').filter(Boolean), ...(args.fakemic ? ['--use-fake-device-for-media-stream', '--use-fake-ui-for-media-stream'] : [])],
args: args.exe ? extra : [root, ...extra],
});
const page = await app.firstWindow();
page.on('console', (msg) => result.console.push(`${label} ${msg.type()}: ${msg.text()}`));
@@ -108,6 +110,35 @@ try {
await page.waitForFunction(() => window.teamspeachDiagnostics.snapshot().conn === 'disconnected', null, { timeout: 15000 });
step('disconnected');
}
// 6. Identity backup through the real export path; only the native save dialog is answered by the test.
const exportFile = path.join(mkdtempSync(path.join(tmpdir(), 'teamspeach-export-')), 'identity.ini');
await app.evaluate(({ dialog }, file) => {
dialog.showSaveDialog = async () => ({ canceled: false, filePath: file });
}, exportFile);
await page.click('#btn-settings');
await page.click('#identity-export');
await page.waitForFunction(() => /UID|не удался/.test(document.querySelector('#identity-status').textContent), null, { timeout: 20000 });
const exportStatus = await page.textContent('#identity-status');
const { readFileSync, rmSync } = await import('node:fs');
const exported = readFileSync(exportFile, 'utf8');
step('identity exported', { status: exportStatus, statusHasUid: exportStatus.includes(uid1), iniHeader: exported.split(/\r?\n/)[0], containsIdentityKey: /^identity=/m.test(exported) });
rmSync(path.dirname(exportFile), { recursive: true, force: true });
if (!exportStatus.includes(uid1)) throw new Error('export did not report the profile UID');
// 7. Hardware video decoding: off → restart → reported as disabled at launch.
await page.uncheck('#opt-hwdec');
await page.waitForSelector('#hwdec-restart', { state: 'visible', timeout: 5000 });
step('hardware decode disabled, restart required', { status: await page.textContent('#hwdec-status') });
await app.close();
({ app, page } = await launch('run4'));
await visible(page, '#view-app');
await page.click('#btn-settings');
await page.waitForFunction(() => /запрещено/.test(document.querySelector('#hwdec-status').textContent), null, { timeout: 10000 });
step('after restart', { status: await page.textContent('#hwdec-status'), restartHint: await page.isVisible('#hwdec-restart') });
await page.locator('#set-video').scrollIntoViewIfNeeded();
await shot(page, '05-video-decode-disabled.png');
await page.check('#opt-hwdec');
await app.close();
} catch (err) {
failed = err;