Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/+autotoc.tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix robottests for new autotoc implementation. @petschki
6 changes: 3 additions & 3 deletions plone/schemaeditor/tests/robot/test_fields.robot
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ I go to fields configuration
I got to fieldset
[Arguments] ${FIELD_LABEL}

Click //nav[@class="autotoc-nav"]/a[contains(text(),"${FIELD_LABEL}")]
Click //*[contains(@class, "autotoc-nav")]//a[contains(text(),"${FIELD_LABEL}")]


I add a new Content Type
Expand Down Expand Up @@ -236,13 +236,13 @@ the new fieldset is created
[Arguments] ${FIELDSET_LABEL}

Get Text //*[@id="global_statusmessage"] contains Fieldset added successfully.
Get Element Count //form[@id="form"]/fieldset/legend[contains(text(),"${FIELDSET_LABEL}")] should be 1
Get Element Count //form[@id="form"]//fieldset/legend[contains(text(),"${FIELDSET_LABEL}")] should be 1

the field is added to fieldset
[Arguments] ${FIELDSET_LABEL} ${FIELD_LABEL}

Get Text //*[@id="global_statusmessage"] contains Field added successfully.
Get Element Count //form[@id="form"]/fieldset/legend[contains(text(),"${FIELDSET_LABEL}")]/following-sibling::div[@data-field_id="address"] should be 1
Get Element Count //form[@id="form"]//fieldset/legend[contains(text(),"${FIELDSET_LABEL}")]/following-sibling::div[@data-field_id="address"] should be 1

the field is removed
[Arguments] ${FIELD_ID}
Expand Down