3 declare(strict_types = 1);
36 $I->useExistingSession(
'admin');
48 $I->amGoingTo(
'Check if deactivating null checkboxes marks as "changed"');
50 $editRecordLinkCssPath =
'#recordlist-tx_styleguide_inline_fal a[data-original-title="Edit record"]';
51 $I->click($editRecordLinkCssPath);
53 $I->waitForElementNotVisible(
'#t3js-ui-block');
54 $I->waitForText(
'Edit Form engine - inline fal "1" on page "inline fal"');
55 $I->click(
'typical fal');
56 $I->click(
'.form-irre-header');
57 $I->waitForElementNotVisible(
'.nprogress-custom-parent');
59 $I->amGoingTo(
'enable checkboxes and see whether the fields get marked as changed');
60 foreach ([
'title',
'alternative',
'description'] as $fieldName) {
61 $currentCheckboxSelector =
'//input[contains(@name, "[' . $fieldName .
']") and @type="checkbox" and contains(@name, "control[active][sys_file_reference]")]';
62 $I->checkOption($currentCheckboxSelector);
63 $I->seeElement($currentCheckboxSelector .
'/./ancestor::div[contains(concat(\' \', @class, \' \'), \'has-change\')]');
66 $I->click(
'.panel-group .form-section');
79 $I->switchToMainFrame();
81 $I->waitForElement(
'svg .nodes .node');
82 $pageTree->openPath([
'styleguide TCA demo',
'inline fal']);
83 $I->switchToContentFrame();
84 $I->waitForText(
'inline fal');