File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff 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" >
Original file line number Diff line number Diff line change 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+ } ) ;
You can’t perform that action at this time.
0 commit comments