We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6d32af commit 31d7917Copy full SHA for 31d7917
packages/tests-e2e/tests/pagesRouter/amp.test.ts
@@ -4,6 +4,8 @@ test.describe("next/amp", () => {
4
test("should load and display the timeago component", async ({ page }) => {
5
await page.goto("/amp");
6
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.
9
expect(timeago).toBe("just now");
10
const htmlEl = page.locator("html");
11
await expect(htmlEl).toHaveAttribute("amp");
0 commit comments