I'm having banner image upload and logo upload page in step progress bar like in https://codepen.io/jidelambo/pen/RaRygY
On banner image upload im taking to cropper page for image cropping (which has save button with id crop-button) similarly, On logo image upload im taking to same cropper page.
->assertSee('Banner Section')
->attach('image',public_path('images/banner-image.jpg'))
->waitFor('.cropper-container')
->click('#crop-button')
->waitForReload()
->assertSee('Banner Uploaded!!!')
->press('Save Banner')
->assertSee('Logo Section')
->attach('image',public_path('images/logo-image.jpg'))
->waitFor('.cropper-container')
->click('#crop-button')
->waitForReload()//Error occurs in this line(Timeout: Waited 5 seconds for page reload. )
->assertSee('Logo Uploaded!!!')
For Banner image crop button works fine, but its not working for logo image crop, can you guide me please.Clicking same element causing issue ? How can i rectify this?
Aucun commentaire:
Enregistrer un commentaire