use focus instead of scrollTo
This commit is contained in:
parent
9851c26d31
commit
ef2e226feb
|
@ -110,7 +110,7 @@ const verifyPublishAndTrash = async ( button, publishNotice, publishVerification
|
|||
}
|
||||
|
||||
// Trash
|
||||
await page.scrollTo( '#submitdiv' );
|
||||
await page.focus( '#submitdiv' );
|
||||
await expect( page ).toClick( 'a.submitdelete' );
|
||||
await page.waitForSelector( '#message' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue