‪TYPO3CMS  ‪main
IndexedSearchModuleCest.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 
33  {
34  $I->click('[data-modulemenu-identifier="web_IndexedSearchIsearch"]');
35  // click on PID=0
36  $I->clickWithLeftButton('#typo3-pagetree-treeContainer [role="treeitem"][data-id="0"] .node-contentlabel');
37  $I->switchToContentFrame();
38  $I->seeElement('.t3-js-jumpMenuBox');
39  $I->selectOption('.t3-js-jumpMenuBox', 'General statistics');
40  $I->see('General statistics', '.t3js-module-body');
41  $I->see('Row count by database table', '.t3js-module-body');
42  // Select only "Row count by database table"
43  $rowCount = $I->grabMultiple('.row > .col-md-6:first-child > table > tbody >tr > td:nth-child(2)');
44  foreach ($rowCount as $count) {
45  // Check only for numeric value, coz we can't actually predict the value due to frontend testing
46  $I->assertIsNumeric($count);
47  }
48 
49  $I->selectOption('.t3-js-jumpMenuBox', 'List of indexed pages');
50  $I->see('List of indexed pages', '.t3js-module-body');
51 
52  $I->selectOption('.t3-js-jumpMenuBox', 'List of indexed external documents');
53  $I->see('List of indexed external documents', '.t3js-module-body');
54 
55  $I->selectOption('.t3-js-jumpMenuBox', 'Detailed statistics');
56  $I->see('Detailed statistics', '.t3js-module-body');
57  $I->see('Please select a page in the page tree.', '.t3js-module-body');
58  }
59 }
‪TYPO3\CMS\Core\Tests\Acceptance\Application\IndexedSearch\IndexedSearchModuleCest\checkExpectedTextOnIndexedSearchPages
‪checkExpectedTextOnIndexedSearchPages(ApplicationTester $I)
Definition: IndexedSearchModuleCest.php:32
‪TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester
Definition: ApplicationTester.php:28
‪TYPO3\CMS\Core\Tests\Acceptance\Application\IndexedSearch\IndexedSearchModuleCest
Definition: IndexedSearchModuleCest.php:26
‪TYPO3\CMS\Core\Tests\Acceptance\Application\IndexedSearch\IndexedSearchModuleCest\_before
‪_before(ApplicationTester $I)
Definition: IndexedSearchModuleCest.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Application\IndexedSearch
Definition: IndexedSearchModuleCest.php:18