‪TYPO3CMS  11.5
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 {
30  public function ‪_before(‪ApplicationTester $I): void
31  {
32  $I->useExistingSession('admin');
33  }
34 
36  {
37  $I->click('#web_IndexedSearchIsearch');
38  $I->waitForElement('svg .nodes .node');
39  // click on PID=0
40  $I->clickWithLeftButton('#identifier-0_0 text.node-name');
41  $I->switchToContentFrame();
42  $I->seeElement('.t3-js-jumpMenuBox');
43  $I->selectOption('.t3-js-jumpMenuBox', 'General statistics');
44  $I->see('Indexing Engine Statistics', '.t3js-module-body');
45  $I->see('General statistics', '.t3js-module-body');
46  $I->see('Row count by database table', '.t3js-module-body');
47  // Select only "Row count by database table"
48  $rowCount = $I->grabMultiple('.row > .col-md-6:first-child > table > tbody >tr > td:nth-child(2)');
49  foreach ($rowCount as $count) {
50  // Check only for numeric value, coz we can't actually predict the value due to frontend testing
51  $I->assertIsNumeric($count);
52  }
53 
54  $I->selectOption('.t3-js-jumpMenuBox', 'List: Pages');
55  $I->see('Indexing Engine Statistics', '.t3js-module-body');
56  $I->see('Pages', '.t3js-module-body');
57 
58  $I->selectOption('.t3-js-jumpMenuBox', 'List: External documents');
59  $I->see('Indexing Engine Statistics', '.t3js-module-body');
60  $I->see('External documents', '.t3js-module-body');
61 
62  $I->selectOption('.t3-js-jumpMenuBox', 'Detailed statistics');
63  $I->see('Indexing Engine Statistics', '.t3js-module-body');
64  $I->see('Please select a page from the page tree.', '.t3js-module-body');
65  }
66 }
‪TYPO3\CMS\Core\Tests\Acceptance\Application\IndexedSearch\IndexedSearchModuleCest\checkExpectedTextOnIndexedSearchPages
‪checkExpectedTextOnIndexedSearchPages(ApplicationTester $I)
Definition: IndexedSearchModuleCest.php:35
‪TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester
Definition: ApplicationTester.php:27
‪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:30
‪TYPO3\CMS\Core\Tests\Acceptance\Application\IndexedSearch
Definition: IndexedSearchModuleCest.php:18