Skip to content

Commit 8d75cb4

Browse files
committed
apply pre-push formatting updates
1 parent cba0eaf commit 8d75cb4

8 files changed

Lines changed: 29 additions & 19 deletions

app/src/utils/desktopDeepLinkListener.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ const normalizeInternalRoutePath = (rawPath: string | null): string | null => {
106106
const handleNavigateDeepLink = async (parsed: URL) => {
107107
const targetPath = normalizeInternalRoutePath(parsed.searchParams.get('path'));
108108
if (!targetPath) {
109-
console.warn('[DeepLink][navigate] invalid or unsupported path', parsed.searchParams.get('path'));
109+
console.warn(
110+
'[DeepLink][navigate] invalid or unsupported path',
111+
parsed.searchParams.get('path')
112+
);
110113
return;
111114
}
112115

app/test/e2e/helpers/deep-link-helpers.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,10 @@ export async function triggerDeepLink(url: string): Promise<void> {
149149

150150
let appActivated = false;
151151
try {
152-
await browser.execute('macos: activateApp', {
153-
bundleId: 'com.openhuman.app',
154-
} as Record<string, unknown>);
152+
await browser.execute('macos: activateApp', { bundleId: 'com.openhuman.app' } as Record<
153+
string,
154+
unknown
155+
>);
155156
appActivated = true;
156157
deepLinkDebug('macos: activateApp OK');
157158
} catch (err) {
@@ -160,9 +161,10 @@ export async function triggerDeepLink(url: string): Promise<void> {
160161

161162
if (!appActivated) {
162163
try {
163-
await browser.execute('macos: launchApp', {
164-
bundleId: 'com.openhuman.app',
165-
} as Record<string, unknown>);
164+
await browser.execute('macos: launchApp', { bundleId: 'com.openhuman.app' } as Record<
165+
string,
166+
unknown
167+
>);
166168
appActivated = true;
167169
deepLinkDebug('macos: launchApp OK');
168170
} catch (err) {

app/test/e2e/helpers/element-helpers.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ async function clickResolvedElement(
129129
if (!/stale|wasn't found|getElementRect/i.test(message) || attempt === 2) {
130130
throw error;
131131
}
132-
console.log('[E2E][elements] retrying click after stale element', { label, attempt, message });
132+
console.log('[E2E][elements] retrying click after stale element', {
133+
label,
134+
attempt,
135+
message,
136+
});
133137
await browser.pause(250);
134138
}
135139
}

app/test/e2e/helpers/shared-flows.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,9 +564,7 @@ export async function logoutViaSettings(logPrefix = '[E2E]') {
564564
await swipeUpMac2(logPrefix);
565565
clicked = await clickFirstButtonOrText(logoutCandidates, 2_500);
566566
if (clicked) {
567-
console.log(
568-
`${logPrefix} Logout action became visible after swipe ${swipeAttempt}/5`
569-
);
567+
console.log(`${logPrefix} Logout action became visible after swipe ${swipeAttempt}/5`);
570568
break;
571569
}
572570
}

app/test/e2e/specs/app-lifecycle.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,9 @@ describe('0.2 Installation & Launch', () => {
517517
`codesign --verify --deep --verbose=1 "${appPath}" 2>&1`
518518
);
519519
const combined = `${stdout} ${stderr}`.toLowerCase();
520-
const knownDebugResourceMismatch =
521-
combined.includes('code has no resources but signature indicates they must be present');
520+
const knownDebugResourceMismatch = combined.includes(
521+
'code has no resources but signature indicates they must be present'
522+
);
522523
console.log(
523524
`[AppLifecycle][0.2.3] codesign --verify: success=${success} output=${(stdout + stderr).slice(0, 300)}`
524525
);

app/test/e2e/specs/conversations-web-channel-flow.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ describe('Conversations web channel flow', () => {
273273
stepLog(
274274
'Mac2: login page visible after navigating to conversations — auth state lost. Tree:',
275275
tree.slice(0, 4000)
276-
);
276+
);
277277
throw new Error('Mac2: app showed login page instead of conversations surface');
278278
}
279279

app/test/e2e/specs/login-flow.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ import * as os from 'os';
1212
import * as path from 'path';
1313

1414
import { waitForApp, waitForAppReady, waitForAuthBootstrap } from '../helpers/app-helpers';
15-
import {
16-
triggerAuthDeepLinkBypass,
17-
triggerDeepLink,
18-
} from '../helpers/deep-link-helpers';
15+
import { triggerAuthDeepLinkBypass, triggerDeepLink } from '../helpers/deep-link-helpers';
1916
import { textExists, waitForWebView, waitForWindowVisible } from '../helpers/element-helpers';
2017
import {
2118
completeOnboardingIfVisible,

app/test/e2e/specs/voice-mode.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,12 @@ describe('Voice mode integration', () => {
168168

169169
if (isMac2()) {
170170
const hasVoiceSurface = await waitForAnyText(
171-
['Switch to voice input', 'Start Talking', 'Could not check voice availability', 'Conversations'],
171+
[
172+
'Switch to voice input',
173+
'Start Talking',
174+
'Could not check voice availability',
175+
'Conversations',
176+
],
172177
10_000
173178
);
174179
expect(hasVoiceSurface).not.toBeNull();

0 commit comments

Comments
 (0)