use focus instead of scrollTo

This commit is contained in:
Ron Rennick 2020-10-28 19:15:17 -03:00
parent 9851c26d31
commit ef2e226feb
1 changed files with 1 additions and 1 deletions

View File

@ -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' );