2 declare(strict_types = 1);
30 $I->useExistingSession(
'admin');
32 $I->see(
'Backend users');
33 $I->click(
'Backend users');
35 $I->switchToContentFrame();
43 $I->see(
'Backend User Listing');
45 $I->wantTo(
'See the table of users');
46 $I->waitForElementVisible(
'#typo3-backend-user-list');
57 $I->wantTo(
'See the table of users');
58 $I->waitForElementVisible(
'#typo3-backend-user-list');
60 $I->canSeeNumberOfElements(
'#typo3-backend-user-list tbody tr', 4);
62 $I->wantTo(
'Filter the list of user by valid username admin');
63 $I->fillField(
'#tx_Beuser_username',
'admin');
65 $I->waitForElementNotVisible(
'div#nprogess');
66 $I->waitForElementVisible(
'#typo3-backend-user-list');
71 $I->wantTo(
'Filter the list of user by valid username administrator');
72 $I->fillField(
'#tx_Beuser_username',
'administrator');
74 $I->waitForElementNotVisible(
'div#nprogess');
75 $I->waitForElementVisible(
'#typo3-backend-user-list');
86 $I->wantTo(
'See the table of users');
87 $I->waitForElementVisible(
'#typo3-backend-user-list');
89 $I->canSeeNumberOfElements(
'#typo3-backend-user-list tbody tr', 4);
91 $I->wantToTest(
'Filter BackendUser and see only admins');
92 $I->selectOption(
'#tx_Beuser_usertype',
'Admin only');
94 $I->waitForElementNotVisible(
'div#nprogess');
95 $I->waitForElementVisible(
'#typo3-backend-user-list');
100 $I->wantToTest(
'Filter BackendUser and see normal users');
101 $I->selectOption(
'#tx_Beuser_usertype',
'Normal users only');
103 $I->waitForElementNotVisible(
'div#nprogess');
104 $I->waitForElementVisible(
'#typo3-backend-user-list');
115 $I->wantTo(
'See the table of users');
116 $I->waitForElementVisible(
'#typo3-backend-user-list');
118 $I->canSeeNumberOfElements(
'#typo3-backend-user-list tbody tr', 4);
120 $I->wantToTest(
'Filter BackendUser and see only active users');
121 $I->selectOption(
'#tx_Beuser_status',
'Active only');
123 $I->waitForElementNotVisible(
'div#nprogess');
124 $I->waitForElementVisible(
'#typo3-backend-user-list');
129 $I->wantToTest(
'Filter BackendUser and see only inactive users');
130 $I->selectOption(
'#tx_Beuser_status',
'Inactive only');
132 $I->waitForElementNotVisible(
'div#nprogess');
133 $I->waitForElementVisible(
'#typo3-backend-user-list');
144 $I->wantTo(
'See the table of users');
145 $I->waitForElementVisible(
'#typo3-backend-user-list');
147 $I->canSeeNumberOfElements(
'#typo3-backend-user-list tbody tr', 4);
149 $I->wantToTest(
'Filter BackendUser and see only users logged in before');
150 $I->selectOption(
'#tx_Beuser_logins',
'Logged in before');
152 $I->waitForElementNotVisible(
'div#nprogess');
153 $I->waitForElementVisible(
'#typo3-backend-user-list');
158 $I->wantToTest(
'Filter BackendUser and see only users never logged in before');
159 $I->selectOption(
'#tx_Beuser_logins',
'Never logged in');
161 $I->waitForElementNotVisible(
'div#nprogess');
162 $I->waitForElementVisible(
'#typo3-backend-user-list');
173 $I->wantTo(
'See the table of users');
174 $I->waitForElementVisible(
'#typo3-backend-user-list');
176 $I->canSeeNumberOfElements(
'#typo3-backend-user-list tbody tr', 4);
179 $I->wantToTest(
'Filter BackendUser and see only users with given usergroup');
180 $I->selectOption(
'#tx_beuser_backendUserGroup',
'editor-group');
182 $I->waitForElementNotVisible(
'div#nprogess');
183 $I->waitForElementVisible(
'#typo3-backend-user-list');
194 $I->canSee(
'Backend User Listing',
'h1');
195 $username = $I->grabTextFrom(
'#typo3-backend-user-list > tbody > tr:nth-child(1) > td.col-title > a:nth-child(1) > b');
197 $I->amGoingTo(
'test the edit button');
198 $I->click(
'#typo3-backend-user-list > tbody > tr:nth-child(1) > td.col-control > div:nth-child(1) > a');
201 $I->amGoingTo(
'test the edit link on username');
202 $I->click(
'#typo3-backend-user-list > tbody > tr:nth-child(1) > td.col-title > a:nth-child(1)');
205 $I->amGoingTo(
'test the edit link on real name');
206 $I->click(
'#typo3-backend-user-list > tbody > tr:nth-child(1) > td.col-title > a:nth-child(4)');
216 $I->canSeeNumberOfElements(
'#typo3-backend-user-list tbody tr', $countOfUsers);
217 $I->wantToTest(
'If a number of users is shown in the footer row');
218 $I->canSeeNumberOfElements(
'#typo3-backend-user-list tfoot tr', 1);
219 $I->see($countOfUsers .
' Users',
'#typo3-backend-user-list tfoot tr');
228 $I->waitForElementNotVisible(
'#t3js-ui-block');
229 $I->canSee(
'Edit Backend user "' . $username .
'" on root level');
231 $I->click(
'div.module-docheader .btn.t3js-editform-close');
232 $I->waitForElementVisible(
'table.table-striped');
233 $I->canSee(
'Backend User Listing',
'h1');