File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ function testRun(cmd: `pnpm run ${'dev' | 'preview' | 'preview:ssg'}`) {
5252 const expectBananas = async ( ) => {
5353 await autoRetry ( async ( ) => {
5454 expect ( await getNumberOfItems ( ) ) . toBe ( 3 )
55+ expect ( await page . textContent ( 'body' ) ) . toContain ( 'Buy bananas' )
5556 } )
56- expect ( await page . textContent ( 'body' ) ) . toContain ( 'Buy bananas' )
5757 }
5858 await expectBananas ( )
5959
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ function testRun(cmd: 'pnpm run dev' | 'pnpm run preview') {
5555 const expectBananas = async ( ) => {
5656 await autoRetry ( async ( ) => {
5757 expect ( await getNumberOfItems ( ) ) . toBe ( 3 )
58+ expect ( await page . textContent ( 'body' ) ) . toContain ( 'Buy bananas' )
5859 } )
59- expect ( await page . textContent ( 'body' ) ) . toContain ( 'Buy bananas' )
6060 }
6161 await expectBananas ( )
6262 expectLog ( '{"text":"Buy bananas"}' ) // See `storeVanilla.subscribe()`
You can’t perform that action at this time.
0 commit comments