Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshaf committed Nov 24, 2024
1 parent e4ac35c commit 25ffa0a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 3 additions & 1 deletion packages/idb-cache-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ const App = () => {

<WrappedFlexItem>
<NumberInput
data-testid="item-size-input"
renderLabel={
<Flex alignItems="end" direction="row">
<Flex.Item as="div">
Expand Down Expand Up @@ -376,6 +377,7 @@ const App = () => {

<WrappedFlexItem>
<NumberInput
data-testid="max-chunks-input"
renderLabel={
<Flex alignItems="end">
<Flex.Item as="div">
Expand Down Expand Up @@ -418,7 +420,7 @@ const App = () => {
</Flex.Item>
<Tooltip
color="primary-inverse"
renderTip="Low priority delays start of operations slightly to reduce load on event loop."
renderTip="Low priority slightly delays start of operations to reduce load on event loop."
offsetY="5px"
>
<Flex.Item as="div">
Expand Down
11 changes: 4 additions & 7 deletions packages/idb-cache-app/tests/test-5.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ async function retryClickAndCheckTestIdText(

test("maxChunks and cleanup", async ({ page }) => {
await page.goto("http://localhost:3000/#size=32");
await page.getByLabel("Max total chunks:").dblclick();
await page.getByLabel("Max total chunks:").fill("100");
await page.getByLabel("Item size (KiB): *").fill("1200");
await page.getByTestId("max-chunks-input").dblclick();
await page.getByTestId("max-chunks-input").fill("100");
await page.getByTestId("item-size-input").fill("1200");
await page.goto("http://localhost:3000/#size=1200");
await page.getByLabel("Item size (KiB): *").press("ArrowLeft");
await page.getByLabel("Item size (KiB): *").press("ArrowLeft");
await page.getByLabel("Item size (KiB): *").press("Shift+ArrowLeft");
await page.getByLabel("Item size (KiB): *").fill("1300");
await page.getByTestId("item-size-input").fill("1300");
await page.goto("http://localhost:3000/#size=1300");
await page.getByTestId("set-item-button").click();
await retryClickAndCheckTestIdText(page, "count-button", "count-value", "52");
Expand Down
2 changes: 1 addition & 1 deletion packages/idb-cache/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ interface IDBCacheConfig {
*/
pbkdf2Iterations?: number;
/**
* Low priority delays start of operations slightly to reduce load on the event loop.
* Low priority slightly delays start of operations to reduce load on the event loop.
*/
priority?: "normal" | "low";
}
Expand Down

0 comments on commit 25ffa0a

Please sign in to comment.