Update default form copy

[MAILPOET-2592]
This commit is contained in:
Pavel Dohnal
2020-01-07 16:08:45 +01:00
committed by Rostislav Wolný
parent 67f9890e24
commit e4cae403ad
3 changed files with 5 additions and 15 deletions

View File

@ -16,7 +16,7 @@ class DefaultForm {
}
public function getName() {
return WPFunctions::get()->_x('A GDPR friendly form', 'default name of form (GDPR friendly) to capture emails', 'mailpoet');
return WPFunctions::get()->_x('My first form', 'default name of form (GDPR friendly) to capture emails', 'mailpoet');
}
public function getBody() {
@ -39,18 +39,6 @@ class DefaultForm {
'params' => ['label' => WPFunctions::get()->_x('Email', 'Form label', 'mailpoet'), 'required' => 'true'],
'position' => '2',
],
[
'type' => 'html',
'name' => WPFunctions::get()->_x('Custom text or HTML', 'Form label', 'mailpoet'),
'id' => 'html',
'unique' => '0',
'static' => '0',
'params' => [
'text' => WPFunctions::get()->__('We keep your data private and share your data only with third parties that make this service possible. See our Privacy Policy for more information.', 'mailpoet'),
'nl2br' => '0',
],
'position' => '3',
],
[
'type' => 'submit',
'name' => WPFunctions::get()->_x('Submit', 'Form label', 'mailpoet'),
@ -58,7 +46,7 @@ class DefaultForm {
'unique' => '0',
'static' => '1',
'params' => ['label' => WPFunctions::get()->_x('Subscribe!', 'Form label', 'mailpoet')],
'position' => '4',
'position' => '3',
],
];
}

View File

@ -46,7 +46,7 @@ class ReinstallFromScratchCest {
$I->seeInCurrentUrl('#/new');
// Check forms
$I->amOnMailpoetPage('Forms');
$I->waitForText('A GDPR friendly form', 30, '[data-automation-id="listing_item_1"]');
$I->waitForText('My first form', 30, '[data-automation-id="listing_item_1"]');
$I->seeNumberOfElements('[data-automation-id^=listing_item_]', 1);
// Check lists
$I->amOnMailpoetPage('Lists');

View File

@ -71,8 +71,10 @@ class SubscriptionFormCest {
$I->wantTo('Subscribe using iframe form');
$I->amOnPage('/form-test');
$I->executeJS('window.scrollTo(0, document.body.scrollHeight);');
$I->switchToIframe('mailpoet_form_iframe');
$I->fillField('[data-automation-id="form_email"]', $this->subscriber_email);
$I->scrollTo('.mailpoet_submit');
$I->click('.mailpoet_submit');
$I->waitForText('Check your inbox or spam folder to confirm your subscription.', self::CONFIRMATION_MESSAGE_TIMEOUT, '.mailpoet_validate_success');
$I->seeNoJSErrors();