Skip to content

Commit 146cc92

Browse files
committed
test: low priority
1 parent 33ca60d commit 146cc92

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/idb-cache-app/src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ const App = () => {
413413
<RadioInputGroup
414414
name="priority"
415415
value={priority}
416+
data-testid="priority-input"
416417
description={
417418
<Flex alignItems="end">
418419
<Flex.Item as="div">
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { test, expect } from "@playwright/test";
2+
3+
test("low priority", async ({ page }) => {
4+
await page.goto("http://localhost:3000/#size=32");
5+
await page.getByTestId("clear-button").click();
6+
await page.getByTestId("count-button").click();
7+
await expect(page.getByTestId("count-value")).toContainText("0");
8+
await page.getByTestId("priority-input").getByText("Low").click();
9+
await page.getByTestId("set-item-button").click();
10+
await expect(page.getByTestId("hash1")).toContainText("nrhzjl");
11+
await page.getByTestId("get-item-button").click();
12+
await expect(page.getByTestId("hash2")).toContainText("nrhzjl");
13+
});

0 commit comments

Comments
 (0)