Problem/Motivation
Add a function to tests/src/Behat/features/bootstrap/FeatureContext.php to take a screenshot of a Form.
- Output a screenshot of the form in
pngformat. - Specify the URL as the file name.
- To distinguish between the files output by the BDD test, output to the
/form_screenshotdirectory.
Issue fork cloud-3406395
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
sekinet commented@yas
Could you please review the patch?
Comment #4
sekinet commentedComment #5
yas@sekinet
I posted my comment, however I think we should refactor the existing code base at https://github.com/docomoinnovations/drupalextension/blob/6.x/src/Drupal...
Thanks!
Comment #6
sekinet commented@yas
Thank you for your comment. I have fixed it as you suggested. There is an error in
phpstan, but it should go away once the PR#24 is merged. Could you please check?Comment #7
sekinet commentedComment #8
sekinet commented@yas
Fixed to output with
I take screenshot. Refactoring has been done accordingly. Could you please check it?Comment #9
baldwinlouie commented@sekinet This is a great patch. It looks good to me.
Comment #10
yas@baldwinlouie
Thank you for your review.
@sekinet
Thank you for the patch. I'll merge the patch to
5.xand6.x, and close this issue as Fixed.Comment #13
yas