test: remove dead symbols in onboarding e2e spec

biome noUnusedVariables flagged two unused symbols in onboarding.spec.ts (const FIRST_RUN_KENNY, function getMockProfile). Under pull_request builds biome escalates these to errors, failing Desktop Core (biome check .). Removing them clears the gate.

Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w
2026-06-14 16:31:14 -07:00
co-authored by Taylor Ho
parent b2ad3074ba
commit ea5f4fe6fb
-25
View File
@@ -25,10 +25,6 @@ const FIRST_RUN_ALICE = {
...TEST_IDENTITIES.alice,
username: "",
};
const FIRST_RUN_KENNY = {
...TEST_IDENTITIES.tyler,
username: "Kenny QA",
};
type TestIdentity = {
privateKey: string;
@@ -513,27 +509,6 @@ async function expectWelcomeGuideIntro(
}
}
async function getMockProfile(page: Page) {
return page.evaluate(async () => {
const invoke = (
window as Window & {
__BUZZ_E2E_INVOKE_MOCK_COMMAND__?: (
command: string,
payload?: Record<string, unknown>,
) => Promise<unknown>;
}
).__BUZZ_E2E_INVOKE_MOCK_COMMAND__;
if (!invoke) {
throw new Error("Mock invoke bridge is unavailable.");
}
return (await invoke("get_profile")) as {
avatar_url: string | null;
display_name: string | null;
};
});
}
async function expectIncompleteOnboarding(page: Page) {
await expect(page.getByTestId("onboarding-gate")).toBeVisible();
await expectShellHidden(page);