Skip to content

Commit

Permalink
Added 'Edit xml models' test
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Jun 7, 2014
1 parent 3b17fb3 commit 5bfb378
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 0 deletions.
30 changes: 30 additions & 0 deletions collective/easyform/tests/robot/tests.robot
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,33 @@ Add action to form
Assign Id To Element xpath=//div[@data-field_id="action_title"] action_title
Capture and crop page screenshot added-new-action.png action_title


Edit xml models
Given a site owner
And a easyform EasyForm

When Click link Fields
${note1} = Add note form-buttons-modeleditor
... Click 'Edit XML Fields Model' button to open edit xml fields model page
... width=300 position=right
Capture and crop page screenshot edit-xml-fields-model-button.png form-buttons-modeleditor ${note1}
Remove elements ${note1}
And Click button Edit XML Fields Model
When Execute JavaScript ace.edit("modelEditor").setValue(ace.edit("modelEditor").getValue())
Capture and crop page screenshot edit-xml-fields-model-page.png page-intro rules-editor
And Click button Save
Then Page should contain Saved

When Click link Back to the schema editor

When Click link Actions
${note1} = Add note form-buttons-modeleditor
... Click 'Edit XML Actions Model' button to open edit xml actions model page
... width=310 position=right
Capture and crop page screenshot edit-xml-actions-model-button.png form-buttons-modeleditor ${note1}
Remove elements ${note1}
And Click button Edit XML Actions Model
When Execute JavaScript ace.edit("modelEditor").setValue(ace.edit("modelEditor").getValue())
Capture and crop page screenshot edit-xml-actions-model-page.png page-intro rules-editor
And Click button Save
Then Page should contain Saved
7 changes: 7 additions & 0 deletions docs/actions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ Edit action
-----------

.. image:: images/created-easyform-actions.png

Edit XML Actions Model
----------------------

.. image:: images/edit-xml-actions-model-button.png

.. image:: images/edit-xml-actions-model-page.png
7 changes: 7 additions & 0 deletions docs/fields.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ Edit field
----------

.. image:: images/created-easyform-fields.png

Edit XML Fields Model
---------------------

.. image:: images/edit-xml-fields-model-button.png

.. image:: images/edit-xml-fields-model-page.png
Binary file added docs/images/edit-xml-actions-model-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/edit-xml-actions-model-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/edit-xml-fields-model-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/edit-xml-fields-model-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5bfb378

Please sign in to comment.