Merge branch '5.8' into 5

This commit is contained in:
Steve Boyd 2021-04-27 15:10:05 +12:00
commit 911400003b
2 changed files with 4 additions and 16 deletions

View File

@ -10,12 +10,12 @@ Feature: Next form step for userforms
When I go to "/my-userform"
And I wait for 2 seconds
And the ".progress-title" element should contain "EditableFormStep_01"
When I click the ".step-button-next" element
When I click on the ".step-button-next" element
Then the ".progress-title" element should contain "EditableFormStep_03"
When I click the ".step-button-prev" element
When I click on the ".step-button-prev" element
And I fill in "abc" for "EditableTextField_01"
And I click the ".step-button-next" element
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 the ".step-button-prev" element
When I click on the ".step-button-prev" element
And I fill in "" for "EditableTextField_01"

View File

@ -15,18 +15,6 @@ use SilverStripe\Versioned\Versioned;
*/
class FixtureContext extends BaseFixtureContext
{
/**
* @When /^I click the "([^"]+)" element$/
* @param $selector
*/
public function iClickTheElement(string $selector): void
{
$page = $this->getMainContext()->getSession()->getPage();
$element = $page->find('css', $selector);
assertNotNull($element, sprintf('Element %s not found', $selector));
$element->click();
}
/**
* Example: Given a userform with a hidden form step "My userform"
*