MNT Fix behat test

This commit is contained in:
Steve Boyd 2024-03-04 14:31:09 +13:00
parent ac2c7f3186
commit 3bd62cf380
1 changed files with 5 additions and 2 deletions

View File

@ -35,6 +35,7 @@ Feature: Userforms
And I fill in "Options[GridFieldAddNewInlineButton][2][Value]" with "2"
And I press the "Save" button
And I follow "My userform"
And I click the "Form Fields" CMS tab
# Create textfields
And I press the "Add Field" button
@ -59,15 +60,17 @@ Feature: Userforms
And I wait for 5 seconds
# Edit My textfield 3
When I click on the ".ss-gridfield-item[data-id='6'] .edit-link" element
When I click the "Form Fields" CMS tab
And I click on the ".ss-gridfield-item[data-id='6'] .edit-link" element
And I click the "Validation" CMS tab
And I check "Is this field Required?"
And I press the "Save" button
And I follow "My userform"
And I click the "Form Fields" CMS tab
# Drag and drop my text field 2 to Page Two
Then I drag the ".ss-gridfield-item[data-id='4'] .handle" element to the ".ss-gridfield-item[data-id='6'] .handle" element
And I wait for 1 seconds
And I wait for 2 seconds
And I press the "Publish" button
And I dismiss all toasts