File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed
Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -231,11 +231,11 @@ test.describe("Admin page access control", () => {
231231 const isOnAdmin = page . url ( ) . includes ( "/admin" )
232232 if ( isOnAdmin ) {
233233 // If still on admin, should see forbidden or no users table
234- await expect (
235- page . getByRole ( "heading" , { name : "Users" } ) ,
236- ) . not . toBeVisible ( { timeout : 2000 } ) . catch ( ( ) => {
237- // Alternative: page shows error
238- } )
234+ await expect ( page . getByRole ( "heading" , { name : "Users" } ) )
235+ . not . toBeVisible ( { timeout : 2000 } )
236+ . catch ( ( ) => {
237+ // Alternative: page shows error
238+ } )
239239 }
240240 } )
241241
Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ const randomItemDescription = () =>
1111test ( "Items page is accessible and shows correct title" , async ( { page } ) => {
1212 await page . goto ( "/items" )
1313 await expect ( page . getByRole ( "heading" , { name : "Items" } ) ) . toBeVisible ( )
14- await expect (
15- page . getByText ( "Create and manage your items" ) ,
16- ) . toBeVisible ( )
14+ await expect ( page . getByText ( "Create and manage your items" ) ) . toBeVisible ( )
1715} )
1816
1917test ( "Add Item button is visible" , async ( { page } ) => {
@@ -203,11 +201,7 @@ test.describe("Items empty state", () => {
203201 await page . goto ( "/items" )
204202
205203 // New users should have no items
206- await expect (
207- page . getByText ( "You don't have any items yet" ) ,
208- ) . toBeVisible ( )
209- await expect (
210- page . getByText ( "Add a new item to get started" ) ,
211- ) . toBeVisible ( )
204+ await expect ( page . getByText ( "You don't have any items yet" ) ) . toBeVisible ( )
205+ await expect ( page . getByText ( "Add a new item to get started" ) ) . toBeVisible ( )
212206 } )
213207} )
You can’t perform that action at this time.
0 commit comments