Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
export const integrations = {
browser: {
chromeWebStoreUrl: null as string | null,
chromeWebStoreUrl: "https://chromewebstore.google.com/detail/typewhisper/gamnkdngnfamiajnbeglodoaoaifbheh",
Comment thread
SeoFood marked this conversation as resolved.
firefoxAddonsUrl: null as string | null,
},
raycast: {
Expand Down
9 changes: 6 additions & 3 deletions tests/extensions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ for (const locale of ["en", "de"] as const) {
await expect(page.locator(`nav a[href="#${id}"]`)).toBeVisible();
}

// The browser listings are not live yet: no links, a note instead.
// Chrome links its store listing; the Firefox listing is not live yet.
const browser = page.getByTestId("extensions-browser");
await expect(browser.getByTestId("extensions-soon-chrome")).toContainText(copy[locale].soon);
await expect(browser.getByTestId("extensions-link-chrome")).toHaveAttribute(
"href",
"https://chromewebstore.google.com/detail/typewhisper/gamnkdngnfamiajnbeglodoaoaifbheh",
);
await expect(browser.getByTestId("extensions-soon-firefox")).toContainText(copy[locale].soon);
await expect(browser.locator("a")).toHaveCount(0);
await expect(browser.locator("a")).toHaveCount(1);
await expect(browser).toContainText("127.0.0.1");

await expect(page.getByTestId("extensions-link-raycast")).toHaveAttribute(
Expand Down
9 changes: 6 additions & 3 deletions tests/extensions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ import test from "node:test";

import { integrations } from "../src/lib/integrations.ts";

test("the browser store listings stay unlinked until they are live", () => {
// Set the URL once a listing is published; the page then links it.
assert.equal(integrations.browser.chromeWebStoreUrl, null);
test("the browser store listings are linked once they are live", () => {
assert.equal(
integrations.browser.chromeWebStoreUrl,
"https://chromewebstore.google.com/detail/typewhisper/gamnkdngnfamiajnbeglodoaoaifbheh",
);
// Set the URL once the Firefox listing is published; the page then links it.
assert.equal(integrations.browser.firefoxAddonsUrl, null);
});

Expand Down
Loading