mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
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:
co-authored by
Taylor Ho
parent
b2ad3074ba
commit
ea5f4fe6fb
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user