Skip to content

Commit

Permalink
Add test: 20mb size item
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshaf committed Nov 16, 2024
1 parent 9266b32 commit 08070c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/idb-cache-app/tests/test-1.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test, expect } from "@playwright/test";
import { test } from "@playwright/test";

test("basics", async ({ page }) => {
await page.goto("http://localhost:3000/#size=32");
Expand Down
12 changes: 12 additions & 0 deletions packages/idb-cache-app/tests/test-4.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { test, expect } from "@playwright/test";

test("20mb size item", async ({ page }) => {
await page.goto("http://localhost:3000/#size=20480");
await page.getByTestId("clear-button").click();
await page.getByTestId("set-item-button").click();
await expect(page.getByText("6u81xr")).toBeVisible();
await page.getByTestId("get-item-button").click();
await expect(page.getByTestId("hash2").getByText("6u81xr")).toBeVisible();
await page.getByTestId("count-button").click();
await expect(page.getByText("839")).toBeVisible();
});

0 comments on commit 08070c3

Please sign in to comment.