2 declare(strict_types = 1);
18 use Codeception\Example;
35 $I->useExistingSession(
'admin');
37 $pageTree->openPath([
'styleguide TCA demo',
'elements basic']);
38 $I->switchToContentFrame();
41 $I->waitForText(
'elements basic', 20);
42 $editRecordLinkCssPath =
'#recordlist-tx_styleguide_elements_basic a[data-original-title="Edit record"]';
43 $I->click($editRecordLinkCssPath);
44 $I->waitForElementNotVisible(
'#t3js-ui-block');
45 $I->waitForText(
'Edit Form', 3,
'h1');
56 'inputValue' =>
'This is a demo text',
57 'expectedValue' =>
'This is a demo text',
58 'expectedInternalValue' =>
'This is a demo text',
59 'expectedValueAfterSave' =>
'This is a demo text',
63 'label' =>
'input_2, size=10',
64 'inputValue' =>
'This is a demo text with numbers and other characters 42 #!',
65 'expectedValue' =>
'This is a demo text with numbers and other characters 42 #!',
66 'expectedInternalValue' =>
'This is a demo text with numbers and other characters 42 #!',
67 'expectedValueAfterSave' =>
'This is a demo text with numbers and other characters 42 #!',
71 'label' =>
'input_3 max=4',
72 'inputValue' =>
'Kasper',
73 'expectedValue' =>
'Kasp',
74 'expectedInternalValue' =>
'Kasp',
75 'expectedValueAfterSave' =>
'Kasp',
79 'label' =>
'input_4 eval=alpha',
80 'inputValue' =>
'Kasper = TYPO3',
81 'expectedValue' =>
'KasperTYPO',
82 'expectedInternalValue' =>
'KasperTYPO',
83 'expectedValueAfterSave' =>
'KasperTYPO',
87 'label' =>
'input_4 eval=alpha',
88 'inputValue' =>
'Non-latin characters: ŠĐŽĆČ',
89 'expectedValue' =>
'Nonlatincharacters',
90 'expectedInternalValue' =>
'Nonlatincharacters',
91 'expectedValueAfterSave' =>
'Nonlatincharacters',
95 'label' =>
'input_5 eval=alphanum',
96 'inputValue' =>
'Kasper = TYPO3',
97 'expectedValue' =>
'KasperTYPO3',
98 'expectedInternalValue' =>
'KasperTYPO3',
99 'expectedValueAfterSave' =>
'KasperTYPO3',
103 'label' =>
'input_10 eval=is_in is_in=abc123',
104 'inputValue' =>
'abcd1234',
105 'expectedValue' =>
'abc123',
106 'expectedInternalValue' =>
'abc123',
107 'expectedValueAfterSave' =>
'abc123',
111 'label' =>
'input_10 eval=is_in is_in=abc123',
112 'inputValue' =>
'Kasper TYPO3',
113 'expectedValue' =>
'a3',
114 'expectedInternalValue' =>
'a3',
115 'expectedValueAfterSave' =>
'a3',
119 'label' =>
'input_11 eval=lower',
120 'inputValue' =>
'Kasper TYPO3!',
121 'expectedValue' =>
'kasper typo3!',
122 'expectedInternalValue' =>
'kasper typo3!',
123 'expectedValueAfterSave' =>
'kasper typo3!',
127 'label' =>
'input_13 eval=nospace',
128 'inputValue' =>
' Kasper TYPO3! ',
129 'expectedValue' =>
'KasperTYPO3!',
130 'expectedInternalValue' =>
'KasperTYPO3!',
131 'expectedValueAfterSave' =>
'KasperTYPO3!',
135 'label' =>
'input_16 eval=password',
136 'inputValue' =>
'Kasper',
137 'expectedValue' =>
'********',
138 'expectedInternalValue' =>
'Kasper',
139 'expectedValueAfterSave' =>
'Kasper',
143 'label' =>
'input_19 eval=trim',
144 'inputValue' =>
' Kasper ',
145 'expectedValue' =>
'Kasper',
146 'expectedInternalValue' =>
'Kasper',
147 'expectedValueAfterSave' =>
'Kasper',
151 'label' =>
'input_19 eval=trim',
152 'inputValue' =>
' Kasper TYPO3 ',
153 'expectedValue' =>
'Kasper TYPO3',
154 'expectedInternalValue' =>
'Kasper TYPO3',
155 'expectedValueAfterSave' =>
'Kasper TYPO3',
159 'label' =>
'input_23 eval=upper',
160 'inputValue' =>
'Kasper TYPO3!',
161 'expectedValue' =>
'KASPER TYPO3!',
162 'expectedInternalValue' =>
'KASPER TYPO3!',
163 'expectedValueAfterSave' =>
'KASPER TYPO3!',
167 'label' =>
'input_24 eval=year',
168 'inputValue' =>
'2016',
169 'expectedValue' =>
'2016',
170 'expectedInternalValue' =>
'2016',
171 'expectedValueAfterSave' =>
'2016',
175 'label' =>
'input_24 eval=year',
176 'inputValue' =>
'12',
177 'expectedValue' =>
'12',
178 'expectedInternalValue' =>
'12',
179 'expectedValueAfterSave' =>
'12',
183 'label' =>
'input_24 eval=year',
184 'inputValue' =>
'Kasper',
185 'expectedValue' => date(
'Y'),
186 'expectedInternalValue' => date(
'Y'),
187 'expectedValueAfterSave' => date(
'Y'),
188 'comment' =>
'Invalid character is converted to current year',