[TASK] Add a basic extensionmanager test 73/47573/4
authordirk_juettner <dirk.juettner@gmail.com>
Mon, 11 Apr 2016 15:56:51 +0000 (17:56 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Wed, 13 Apr 2016 19:20:12 +0000 (21:20 +0200)
Call extensionmanager and verify ext:styleguide
is listed.

Resolves: #75523
Releases: master
Change-Id: I0929a12c0699dc99a95151a8083fbb3efecee674
Reviewed-on: https://review.typo3.org/47573
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/core/Tests/Acceptance/Backend/Extensionmanager/CheckExtensionmanagerListCest.php [new file with mode: 0644]

diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Extensionmanager/CheckExtensionmanagerListCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Extensionmanager/CheckExtensionmanagerListCest.php
new file mode 100644 (file)
index 0000000..0d6caaf
--- /dev/null
@@ -0,0 +1,54 @@
+<?php
+namespace TYPO3\CMS\Core\Tests\Acceptance\Backend\Login;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use TYPO3\CMS\Core\Tests\Acceptance\Step\Backend\Admin;
+
+/**
+ * Extensionmanager list view
+ */
+class CheckExtensionmanagerListCest
+{
+    public function _before(Admin $I)
+    {
+        $I->useExistingSession();
+    }
+
+    /**
+     * Check extension styleguide is there
+     *
+     * @param Admin $I
+     */
+    public function checkExtensionSyleguideIsListed(Admin $I)
+    {
+        $I->wantTo('check extension styleguide is there');
+        $I->click('Extensions');
+
+        // Load frame set extensionmanager
+        $I->waitForElement('#typo3-contentContainerWrapper');
+
+        $I->switchToIFrame('content');
+
+        $extKey = 'Styleguide';
+        // Fill extension search field
+        $I->fillField('Tx_Extensionmanager_extensionkey', $extKey);
+
+        // Wait for search result
+        $I->waitForElement('#typo3-extension-list_wrapper');
+
+        // Look for extension key
+        $I->waitForText($extKey);
+    }
+}