use delete focus selector available on order edit

This commit is contained in:
Ron Rennick 2020-10-29 09:17:35 -03:00
parent ef2e226feb
commit 8830de1fa4
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ const verifyPublishAndTrash = async ( button, publishNotice, publishVerification
}
// Trash
await page.focus( '#submitdiv' );
await page.focus( 'a.submitdelete' );
await expect( page ).toClick( 'a.submitdelete' );
await page.waitForSelector( '#message' );