dispatch('backend/indexer/indexer/list/');
        $body = $this->getResponse()->getBody();
        $this->assertStringContainsString('
Index Management
', $body);
        $this->assertEquals(
            1,
            \Magento\TestFramework\Helper\Xpath::getElementsCountForXpath(
                '//*[@id="gridIndexer_massaction-select"]',
                $body
            ),
            'Mode selector is not found'
        );
        $this->assertStringContainsString('option value="change_mode_onthefly"', $body);
        $this->assertStringContainsString('option value="change_mode_changelog"', $body);
    }
    /**
     * Assert that index management contains a certain number of indexers
     *
     * @return void
     */
    public function testDefaultNumberOfIndexers()
    {
        $this->dispatch('backend/indexer/indexer/list/');
        $body = $this->getResponse()->getBody();
        $this->assertGreaterThanOrEqual(
            1,
            \Magento\TestFramework\Helper\Xpath::getElementsCountForXpath(
                '//*[@name="indexer_ids"]',
                $body
            ),
            'Indexer list is empty'
        );
    }
}