@@ -360,7 +360,7 @@ test.describe('Database panel', () => {
360360
361361 test ( 'should load and open Adminer' , async ( { website, context } ) => {
362362 const adminerButton = website . page . getByRole ( 'button' , {
363- name : / O p e n A d m i n e r / i ,
363+ name : ' Open Adminer' ,
364364 } ) ;
365365 await expect ( adminerButton ) . toBeVisible ( ) ;
366366 await expect ( adminerButton ) . toBeEnabled ( ) ;
@@ -432,7 +432,7 @@ test.describe('Database panel', () => {
432432
433433 test ( 'should load and open phpMyAdmin' , async ( { website, context } ) => {
434434 const phpMyAdminButton = website . page . getByRole ( 'button' , {
435- name : / O p e n p h p M y A d m i n / i ,
435+ name : ' Open phpMyAdmin' ,
436436 } ) ;
437437 await expect ( phpMyAdminButton ) . toBeVisible ( ) ;
438438 await expect ( phpMyAdminButton ) . toBeEnabled ( ) ;
@@ -464,7 +464,7 @@ test.describe('Database panel', () => {
464464 . locator ( 'tr' )
465465 . filter ( { hasText : 'wp_posts' } )
466466 . first ( ) ;
467- await expect ( wpPostsRow ) . toBeVisible ( { timeout : 10000 } ) ;
467+ await expect ( wpPostsRow ) . toBeVisible ( ) ;
468468 await waitForAjaxIdle ( ) ;
469469 await wpPostsRow . getByRole ( 'link' , { name : 'Browse' } ) . click ( ) ;
470470 await newPage . waitForLoadState ( ) ;
@@ -479,14 +479,12 @@ test.describe('Database panel', () => {
479479 . first ( )
480480 . click ( ) ;
481481 await newPage . waitForLoadState ( ) ;
482- const pmaForm = newPage . locator (
483- 'form#insertForm, form[name="insertForm"]'
484- ) ;
485- await expect ( pmaForm ) . toBeVisible ( { timeout : 10000 } ) ;
486- await expect ( pmaForm ) . toContainText ( 'Welcome to WordPress.' ) ;
482+ const editForm = newPage . locator ( 'form#insertForm' ) ;
483+ await expect ( editForm ) . toBeVisible ( ) ;
484+ await expect ( editForm ) . toContainText ( 'Welcome to WordPress.' ) ;
487485
488486 // Update the post content
489- const postContentRow = pmaForm
487+ const postContentRow = editForm
490488 . locator ( 'tr' )
491489 . filter ( { hasText : 'post_content' } )
492490 . first ( ) ;
0 commit comments