Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

GitHub sign-in card test: the token link ends in a no-break space before its icon

milind-soniba06e98ecc8f
diff --git a/src/components/github/GithubAppCard.dom.test.ts b/src/components/github/GithubAppCard.dom.test.ts
index 5b0e036fe9..4f801fb3a6 100644
--- a/src/components/github/GithubAppCard.dom.test.ts
+++ b/src/components/github/GithubAppCard.dom.test.ts
@@ -178,7 +178,7 @@ describe("the GitHub row in Apps", () => {
expect(field.type).toBe("password");
expect(field.autocomplete).toBe("off");
expect(field.getAttribute("aria-label")).toBe("GitHub token");
- expect(host.querySelector("a[href='https://github.com/settings/personal-access-tokens/new']")!.textContent).toBe("Create a fine-grained token on GitHub");
+ expect(host.querySelector("a[href='https://github.com/settings/personal-access-tokens/new']")!.textContent!.trim()).toBe("Create a fine-grained token on GitHub");
await act(async () => {
Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")!.set!.call(field, token);
field.dispatchEvent(new Event("input", { bubbles: true }));