Add clear field to fix the test

This commit is contained in:
Veljko
2021-03-31 12:06:05 +02:00
committed by Veljko V
parent faf714e832
commit a6215e22ba

View File

@@ -104,6 +104,7 @@ class ManageSegmentsCest {
$i->wantTo('Edit existing segment');
$i->clickItemRowActionByItemName($segmentTitle, 'Edit');
$i->waitForElementNotVisible('.mailpoet_form_loading');
$i->clearField('#field_name');
$i->fillField(['name' => 'name'], $segmentEditedTitle);
$i->fillField(['name' => 'description'], $segmentEditedDesc);
$i->selectOptionInReactSelect('has WordPress user role', '[data-automation-id="select-segment-action"]');