Form Builder
Feature: update and publish form app
Scenario: new user publishes app Given new user is not signed in And new user opens standalone i.e. /plugins/form-builder/standalone? And new user changes the form Title i.e. App Model 'backup_content: set to store the changes they have made' When new user selects “Add to Site” Then the form’s status is “published” i.e. App Model content = backup_content And the view url for the app should successfully load when navigated to (I.e./plugins/form-builder/view?id=[ID_OF_THE_APP]&mode=page) And the view url for the app should display an overlay with “This plugin is unclaimed. Sign up to activate it! [Sign Up Button]”
When user clicks on [Sign Up Button] Then the Popup Editor should open to the account sign up screen And new user enters a valid email in the popup editor And new user enters an 8 character password Then new user should have an account created And new user should be signed into the newly created account And the previously unclaimed app should be associated with the new account (app.owners is associated with new user ID) And the overlay with “This plugin is unclaimed. Sign up to activate it! [Sign Up Button]” should no longer be displayed
Scenario: end-user submits for Given an end-user (no account, signed out) navigates to a Form view url And the form is set to the default After Submission Option display message: “Thanks“ And end-user enters answers to all fields And clicks “Submit” on form Then the form should display the confirmation message “Thanks“ And the form response dashboard should populate with the end-user’s submitted data
Scenario: successfully adds all element-types to a form in standalone Given an end-user (no account, signed out) navigates to a Form view url And they select “Add Element” and select one of every element option (22) Then the form should have all elements added in the “Elements” list And show all added elements in the preview
And end-user enters answers to all input fields And clicks “Submit” And the form response dashboard (i.e. /apps/[ID_OF_THE_APP]/responses) should populate with the end-user’s submitted data