MNT Use an EmailField so field validation is triggered in behat (#180)

This commit is contained in:
Guy Sartorelli 2024-05-22 17:11:21 +12:00 committed by GitHub
parent 6e5e0650b6
commit fcf39f1cf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@
namespace SilverStripe\FrameworkTest\Model;
use Page;
use SilverStripe\Forms\EmailField;
use SilverStripe\Forms\RequiredFields;
use SilverStripe\Forms\TextField;
@ -29,7 +30,7 @@ class MultiTabPage extends Page
{
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Second", TextField::create("SecondTabFirstField"));
$fields->addFieldToTab("Root.Third", TextField::create("ThirdTabFirstField"));
$fields->addFieldToTab("Root.Third", EmailField::create("ThirdTabFirstField"));
$fields->addFieldToTab("Root.Third", TextField::create("ThirdTabSecondField"));
$fields->addFieldToTab("Root.Fourth", TextField::create("FourthTabFirstField"));
return $fields;