File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
packages/idb-cache-app/tests Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1- import { test , expect } from "@playwright/test" ;
1+ import { test } from "@playwright/test" ;
22
33test ( "basics" , async ( { page } ) => {
44 await page . goto ( "http://localhost:3000/#size=32" ) ;
Original file line number Diff line number Diff line change 1+ import { test , expect } from "@playwright/test" ;
2+
3+ test ( "20mb size item" , async ( { page } ) => {
4+ await page . goto ( "http://localhost:3000/#size=20480" ) ;
5+ await page . getByTestId ( "clear-button" ) . click ( ) ;
6+ await page . getByTestId ( "set-item-button" ) . click ( ) ;
7+ await expect ( page . getByText ( "6u81xr" ) ) . toBeVisible ( ) ;
8+ await page . getByTestId ( "get-item-button" ) . click ( ) ;
9+ await expect ( page . getByTestId ( "hash2" ) . getByText ( "6u81xr" ) ) . toBeVisible ( ) ;
10+ await page . getByTestId ( "count-button" ) . click ( ) ;
11+ await expect ( page . getByText ( "839" ) ) . toBeVisible ( ) ;
12+ } ) ;
You can’t perform that action at this time.
0 commit comments