mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
22 lines
943 B
Gherkin
22 lines
943 B
Gherkin
@assets @retry
|
|
Feature: Next form step for userforms
|
|
As a website user
|
|
I want to click to the next form step button to see the next form step
|
|
|
|
Background:
|
|
Given a userform with a hidden form step "My userform"
|
|
|
|
Scenario: Next step button does not navigate to hidden form steps
|
|
When I go to "/my-userform"
|
|
And I wait for 2 seconds
|
|
And the ".progress-title" element should contain "EditableFormStep_01"
|
|
When I click on the ".step-button-next" element
|
|
Then the ".progress-title" element should contain "EditableFormStep_03"
|
|
When I click on the ".step-button-prev" element
|
|
And I fill in "abc" for "EditableTextField_01"
|
|
And I click on the ".step-button-next" element
|
|
Then the ".progress-title" element should contain "EditableFormStep_02"
|
|
# prevent the 'form has unsaved changes' alrt
|
|
When I click on the ".step-button-prev" element
|
|
And I fill in "" for "EditableTextField_01"
|