2021-03-10 03:56:24 +01:00
|
|
|
@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"
|
2021-04-15 03:25:47 +02:00
|
|
|
When I click on the ".step-button-next" element
|
2022-05-25 03:11:29 +02:00
|
|
|
Then the ".progress-title" element should contain "EditableFormStep_03"
|
|
|
|
And I click on the ".step-button-next" element
|
|
|
|
Then the ".progress-title" element should contain "EditableFormStep_04"
|
|
|
|
And I click on the ".step-button-next" element
|
|
|
|
Then the ".progress-title" element should contain "EditableFormStep_07"
|
|
|
|
And I click on the ".step-button-prev" element
|
|
|
|
Then the ".progress-title" element should contain "EditableFormStep_04"
|
|
|
|
And I fill in "abc" for "EditableTextField_04"
|
|
|
|
And I click on the ".step-button-next" element
|
|
|
|
Then the ".progress-title" element should contain "EditableFormStep_05"
|
|
|
|
And I click on the ".step-button-next" element
|
|
|
|
Then the ".progress-title" element should contain "EditableFormStep_06"
|
|
|
|
And I click on the ".step-button-prev" element
|
|
|
|
Then the ".progress-title" element should contain "EditableFormStep_05"
|
|
|
|
And I click on the ".step-button-prev" element
|
|
|
|
Then the ".progress-title" element should contain "EditableFormStep_04"
|
|
|
|
And I fill in "" for "EditableTextField_04"
|
|
|
|
And I click on the ".step-button-prev" element
|
2021-03-10 03:56:24 +01:00
|
|
|
Then the ".progress-title" element should contain "EditableFormStep_03"
|
2021-04-15 03:25:47 +02:00
|
|
|
When I click on the ".step-button-prev" element
|
2022-05-25 03:11:29 +02:00
|
|
|
Then the ".progress-title" element should contain "EditableFormStep_01"
|
2021-03-10 03:56:24 +01:00
|
|
|
And I fill in "abc" for "EditableTextField_01"
|
2021-04-15 03:25:47 +02:00
|
|
|
And I click on the ".step-button-next" element
|
2021-03-10 03:56:24 +01:00
|
|
|
Then the ".progress-title" element should contain "EditableFormStep_02"
|
|
|
|
# prevent the 'form has unsaved changes' alrt
|
2021-04-15 03:25:47 +02:00
|
|
|
When I click on the ".step-button-prev" element
|
2022-05-25 03:11:29 +02:00
|
|
|
And I fill in "" for "EditableTextField_01"
|