Skip to content

Commit

Permalink
Fix integration test to handle missing empty div
Browse files Browse the repository at this point in the history
b10ef37 caused an empty div between <form name="edit_form" and
<div id="pfg-fieldwrapper"> to be absent. For some reasons,
current integration test required something (anything) to be
between the two elements. This handles the both cases where
there is content between them or not.
  • Loading branch information
zemm committed Jul 7, 2017
1 parent b10ef37 commit 54195c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Products/PloneFormGen/tests/browser.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ Return to form and confirm that it renders properly::
>>> print browser.contents
<!DOCTYPE html>
...<div class="pfg-form formid-testform">
<form name="edit_form" method="post" enctype="multipart/form-data" class="fgBaseEditForm..." action="..." id="fg-base-edit">
...
<form name="edit_form" method="post" enctype="multipart/form-data" class="fgBaseEditForm..." action="..." id="fg-base-edit">...
<div id="pfg-fieldwrapper">
...
<input type="text" name="replyto" ... id="replyto"...
Expand Down

0 comments on commit 54195c7

Please sign in to comment.