‪TYPO3CMS  ‪main
FileMetaDataCest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 
26 {
27  public function ‪_before(‪ApplicationTester $I): void
28  {
29  $I->useExistingSession('admin');
30  }
31 
32  public function ‪metaDataCanBeEdited(‪ApplicationTester $I): void
33  {
34  $I->wantToTest('Metadata can be edited through search list results');
35  $I->click('Filelist');
36 
37  $I->switchToContentFrame();
38  $I->canSee('fileadmin');
39 
40  $I->fillField('input[name="searchTerm"]', 'bus');
41  $I->click('button[type="submit"]');
42  $I->waitForElementVisible('.t3-filelist-container');
43 
44  $I->click('bus_lane.jpg');
45  $I->waitForElementNotVisible('#t3js-ui-block');
46  $I->waitForElementVisible('#EditDocumentController');
47 
48  $I->canSee('Edit File Metadata "bus_lane.jpg"', 'h1');
49  }
50 }
‪TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester
Definition: ApplicationTester.php:28
‪TYPO3\CMS\Core\Tests\Acceptance\Application\FileList
Definition: FileClipboardCest.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Application\FileList\FileMetaDataCest
Definition: FileMetaDataCest.php:26
‪TYPO3\CMS\Core\Tests\Acceptance\Application\FileList\FileMetaDataCest\_before
‪_before(ApplicationTester $I)
Definition: FileMetaDataCest.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Application\FileList\FileMetaDataCest\metaDataCanBeEdited
‪metaDataCanBeEdited(ApplicationTester $I)
Definition: FileMetaDataCest.php:32