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
44 changes: 22 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ packages:
- apps/*
- packages/*
overrides:
decode-uri-component: 0.5.0
deepmerge-ts: 8.0.0
js-yaml: 5.2.2
mysql2: 3.22.0
allowBuilds:
"@prisma/engines": true
"@scarf/scarf": false
Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/store-following.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ test("guest cancel preserves the store and login completes a retriable follow",
await expect(discoveryList).toBeVisible({ timeout: 2_000 });
}).toPass({ timeout: 10_000 });
await expect(
page.locator(`a[href="/s/${slug}/products/${feedProducts[0]!.productId}"]`),
page.locator(`a[href="/s/${slug}/products/${feedProducts[0]!.productId}"]`, {
hasText: "فنجان دنبال‌شده 1",
}),
).toBeVisible();
await page.goto(`/s/${slug}?source=discovery#store-actions`);
await expect(page.locator("html")).toHaveAttribute("dir", "rtl");
Expand Down
16 changes: 9 additions & 7 deletions tests/e2e/web-baseline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ test("the web baseline is Persian, accessible, and right-to-left", async ({ page
).toBeVisible();
await expect(navigation.getByRole("link", { name: "گفت‌وگوها" })).toBeVisible();
await expect(navigation.getByRole("link", { name: "دنبال‌شده‌ها" })).toBeVisible();
await expect(navigation.getByRole("link", { name: "سفارش‌ها" })).toHaveCount(0);
await expect(navigation.getByRole("link", { name: "سفارش‌ها" })).toHaveAttribute(
"href",
"/orders",
);
await assertNoHorizontalOverflow(page);
await assertInteractiveTargets(page, "header a, nav a, summary");
await page.keyboard.press("Tab");
Expand Down Expand Up @@ -70,15 +73,14 @@ test("discovery renders public feed data and recovers from a failed request", as
});
await page.goto("/");
await expect(page.getByRole("main").getByRole("alert")).toContainText(
"کالاها بارگیری نشدند",
"فید فعلاً آماده نیست",
);
fail = false;
await page.getByRole("button", { name: "تلاش دوباره" }).click();
await expect(page.getByRole("list", { name: "کالاهای تازه" })).toBeVisible();
await expect(page.getByRole("link", { name: /فنجان دست‌ساز/ })).toHaveAttribute(
"href",
/\/s\/khane-sofal\/products\/0d113616/,
);
await expect(
page.getByRole("link", { name: "فنجان دست‌ساز", exact: true }),
).toHaveAttribute("href", /\/s\/khane-sofal\/products\/0d113616/);
});

test("legacy addresses preserve the checkout return destination through login", async ({
Expand Down Expand Up @@ -157,7 +159,7 @@ test("old payment receipts redirect to their canonical result with a usable way
test("unknown and retired prototype routes provide Persian recovery without demo content", async ({
page,
}) => {
for (const path of ["/not-a-sevo-page", "/prototype/discovery", "/orders"]) {
for (const path of ["/not-a-sevo-page", "/prototype/discovery"]) {
const response = await page.goto(path);
expect(response?.status()).toBe(404);
await expect(
Expand Down
Loading