Skip to content

Commit 31d7917

Browse files
committed
comment
1 parent c6d32af commit 31d7917

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/tests-e2e/tests/pagesRouter/amp.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ test.describe("next/amp", () => {
44
test("should load and display the timeago component", async ({ page }) => {
55
await page.goto("/amp");
66
const timeago = await page.getByTestId("amp-timeago").textContent();
7+
// We can safely assume this will always show `just now` as its using `format()` from `timeago.js`.
8+
// It will show `just now` if the time is less than 10s ago.
79
expect(timeago).toBe("just now");
810
const htmlEl = page.locator("html");
911
await expect(htmlEl).toHaveAttribute("amp");

0 commit comments

Comments
 (0)