[TASK] Make failing acceptance tests after image update run again 78/56878/10
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 6 May 2018 20:27:16 +0000 (22:27 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 8 May 2018 22:04:57 +0000 (00:04 +0200)
The agent update introduced a higher chromedriver version that
caused several acceptance tests to fail. Adjusting wait states
brings them back to green.

The bamboo plan update now uses a php.ini without xdebug and
simplifies the unit test runs in this area.

And we need a patch for typo3/testing-framework version 1.2.6:
composer update typo3/testing-framework

Change-Id: Icc7b6b062ad652db2c92ae7a7c5197477abf2b7d
Resolves: #84939
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/56878
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
21 files changed:
Build/bamboo/src/main/java/core/AbstractCoreSpec.java
Build/bamboo/src/main/java/core/NightlySpec.java
composer.lock
typo3/sysext/core/Tests/Acceptance.suite.yml
typo3/sysext/core/Tests/Acceptance/Backend/BackendUser/ListUserCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Extensionmanager/GetExtensionsCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Extensionmanager/InstalledExtensionsCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/AbstractElementsBasicCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/CategoryTreeCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/ElementsBasicInputCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/ElementsBasicInputDateCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/ElementsGroupCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/FalMetadataInheritanceCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/Inline1nCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Install/InstallModuleCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Scheduler/TasksCest.php
typo3/sysext/core/Tests/Acceptance/Backend/Template/TemplateCest.php
typo3/sysext/core/Tests/AcceptanceInstallMysql.suite.yml
typo3/sysext/core/Tests/AcceptanceInstallMysql/InstallWithMysqlIntroductionPackageCest.php
typo3/sysext/core/Tests/AcceptanceInstallPgsql.suite.yml
typo3/sysext/core/Tests/AcceptanceInstallPgsql/InstallWithPgsqlIntroductionPackageCest.php

index 76814fe..9a10cd7 100644 (file)
@@ -632,8 +632,7 @@ abstract public class AbstractCoreSpec {
                     .interpreter(ScriptTaskProperties.Interpreter.BINSH_OR_CMDEXE)
                     .inlineBody(
                         this.getScriptTaskBashInlineBody() +
-                        this.getScriptTaskBashPhpNoXdebug() +
-                        "php_no_xdebug bin/phpunit --log-junit test-reports/phpunit.xml -c " + this.testingFrameworkBuildPath + "UnitTests.xml"
+                        "php -n -c /etc/php/cli-no-xdebug/php.ini bin/phpunit --log-junit test-reports/phpunit.xml -c " + this.testingFrameworkBuildPath + "UnitTests.xml"
                     )
             )
             .finalTasks(
@@ -669,8 +668,7 @@ abstract public class AbstractCoreSpec {
                         .interpreter(ScriptTaskProperties.Interpreter.BINSH_OR_CMDEXE)
                         .inlineBody(
                             this.getScriptTaskBashInlineBody() +
-                            this.getScriptTaskBashPhpNoXdebug() +
-                            "php_no_xdebug bin/phpunit-randomizer --log-junit test-reports/phpunit.xml -c " + this.testingFrameworkBuildPath + "UnitTests.xml --order rand"
+                            "php -n -c /etc/php/cli-no-xdebug/php.ini bin/phpunit-randomizer --log-junit test-reports/phpunit.xml -c " + this.testingFrameworkBuildPath + "UnitTests.xml --order rand"
                         )
                 )
                 .finalTasks(
@@ -736,7 +734,7 @@ abstract public class AbstractCoreSpec {
             .interpreter(ScriptTaskProperties.Interpreter.BINSH_OR_CMDEXE)
             .inlineBody(
                 this.getScriptTaskBashInlineBody() +
-                "php -S localhost:8000 >/dev/null 2>&1 &\n" +
+                "php -n -c /etc/php/cli-no-xdebug/php.ini -S localhost:8000 >/dev/null 2>&1 &\n" +
                 "echo $! > phpserver.pid\n" +
                 "\n" +
                 "./bin/chromedriver --url-base=/wd/hub >/dev/null 2>&1 &\n" +
@@ -895,20 +893,4 @@ abstract public class AbstractCoreSpec {
             "fi\n" +
             "\n";
     }
-
-    /**
-     * A bash function providing a php bin without xdebug
-     */
-    protected String getScriptTaskBashPhpNoXdebug() {
-        return
-            "php_no_xdebug () {\n" +
-            "    temporaryPath=\"$(mktemp -t php.XXXX).ini\"\n" +
-            "    php -i | grep \"\\.ini\" | grep -o -e '\\(/[A-Za-z0-9._-]\\+\\)\\+\\.ini' | grep -v xdebug | xargs awk 'FNR==1{print \"\"}1' > \"${temporaryPath}\"\n" +
-            "    php -n -c \"${temporaryPath}\" \"$@\"\n" +
-            "    RETURN=$?\n" +
-            "    rm -f \"${temporaryPath}\"\n" +
-            "    exit $RETURN\n" +
-            "}\n" +
-            "\n";
-    }
 }
index bf47c22..1b842d7 100644 (file)
@@ -168,8 +168,7 @@ public class NightlySpec extends AbstractCoreSpec {
                     .interpreter(ScriptTaskProperties.Interpreter.BINSH_OR_CMDEXE)
                     .inlineBody(
                         this.getScriptTaskBashInlineBody() +
-                        this.getScriptTaskBashPhpNoXdebug() +
-                        "php_no_xdebug ./bin/php-cs-fixer fix -v --dry-run --path-mode intersection --config=Build/.php_cs typo3/\n" +
+                        "php -n -c /etc/php/cli-no-xdebug/php.ini bin/php-cs-fixer fix -v --dry-run --path-mode intersection --config=Build/.php_cs typo3/\n" +
                         "exit $?\n"
                     )
             )
index cb5c16e..1c22dde 100644 (file)
@@ -1,7 +1,7 @@
 {
     "_readme": [
         "This file locks the dependencies of your project to a known state",
-        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
+        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
     "content-hash": "7a8192024da87bd27d79d2ff271bee38",
         },
         {
             "name": "typo3/testing-framework",
-            "version": "1.2.5",
+            "version": "1.2.6",
             "source": {
                 "type": "git",
                 "url": "https://github.com/TYPO3/testing-framework.git",
-                "reference": "4432bd9e4e39fb980481b35c5d4ec0054c427d28"
+                "reference": "dd19899367604b1944758dd64ee5a63450e400a5"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/TYPO3/testing-framework/zipball/4432bd9e4e39fb980481b35c5d4ec0054c427d28",
-                "reference": "4432bd9e4e39fb980481b35c5d4ec0054c427d28",
+                "url": "https://api.github.com/repos/TYPO3/testing-framework/zipball/dd19899367604b1944758dd64ee5a63450e400a5",
+                "reference": "dd19899367604b1944758dd64ee5a63450e400a5",
                 "shasum": ""
             },
             "require": {
                 "tests",
                 "typo3"
             ],
-            "time": "2018-05-07T09:47:32+00:00"
+            "time": "2018-05-08T20:48:24+00:00"
         },
         {
             "name": "webmozart/assert",
index 6f48474..d8ce31c 100644 (file)
@@ -18,4 +18,4 @@ modules:
         # You can simply do that by scrolling to it.
         elementScrollBehavior: 1
         chromeOptions:
-          args: ["--headless", "--no-sandbox", "window-size=1280x1024"]
\ No newline at end of file
+          args: ["--headless", "--no-sandbox", "window-size=1280x1024", "--proxy-server='direct://'", "--proxy-bypass-list=*", "--disable-gpu"]
\ No newline at end of file
index 3c2b07e..0d0711e 100644 (file)
@@ -37,6 +37,7 @@ class ListUserCest
 
         // switch to content iframe
         $I->switchToIFrame('list_frame');
+        $I->waitForElementNotVisible('div#nprogess');
     }
 
     /**
@@ -66,6 +67,7 @@ class ListUserCest
         $I->wantTo('Filter the list of user by valid username admin');
         $I->fillField('#tx_Beuser_username', 'admin');
         $I->click('Filter');
+        $I->waitForElementNotVisible('div#nprogess');
         $I->waitForElementVisible('#typo3-backend-user-list');
 
         // We expect exact one fitting Backend User created from the Fixtures
@@ -74,6 +76,7 @@ class ListUserCest
         $I->wantTo('Filter the list of user by valid username administrator');
         $I->fillField('#tx_Beuser_username', 'administrator');
         $I->click('Filter');
+        $I->waitForElementNotVisible('div#nprogess');
         $I->waitForElementVisible('#typo3-backend-user-list');
 
         // We expect exact no fitting Backend User created from the Fixtures
@@ -93,6 +96,7 @@ class ListUserCest
         $I->wantToTest('Filter BackendUser and see only admins');
         $I->selectOption('#tx_Beuser_usertype', 'Admin only');
         $I->click('Filter');
+        $I->waitForElementNotVisible('div#nprogess');
         $I->waitForElementVisible('#typo3-backend-user-list');
 
         // We expect exact two fitting Backend Users created from the Fixtures
@@ -101,6 +105,7 @@ class ListUserCest
         $I->wantToTest('Filter BackendUser and see normal users');
         $I->selectOption('#tx_Beuser_usertype', 'Normal users only');
         $I->click('Filter');
+        $I->waitForElementNotVisible('div#nprogess');
         $I->waitForElementVisible('#typo3-backend-user-list');
 
         // We expect exact two fitting Backend Users created from the Fixtures
@@ -120,6 +125,7 @@ class ListUserCest
         $I->wantToTest('Filter BackendUser and see only active users');
         $I->selectOption('#tx_Beuser_status', 'Active only');
         $I->click('Filter');
+        $I->waitForElementNotVisible('div#nprogess');
         $I->waitForElementVisible('#typo3-backend-user-list');
 
         // We expect exact two fitting Backend Users created from the Fixtures
@@ -128,6 +134,7 @@ class ListUserCest
         $I->wantToTest('Filter BackendUser and see only inactive users');
         $I->selectOption('#tx_Beuser_status', 'Inactive only');
         $I->click('Filter');
+        $I->waitForElementNotVisible('div#nprogess');
         $I->waitForElementVisible('#typo3-backend-user-list');
 
         // We expect exact two fitting Backend Users created from the Fixtures
@@ -147,6 +154,7 @@ class ListUserCest
         $I->wantToTest('Filter BackendUser and see only users logged in before');
         $I->selectOption('#tx_Beuser_logins', 'Logged in before');
         $I->click('Filter');
+        $I->waitForElementNotVisible('div#nprogess');
         $I->waitForElementVisible('#typo3-backend-user-list');
 
         // We expect exact two fitting Backend Users created from the Fixtures
@@ -155,6 +163,7 @@ class ListUserCest
         $I->wantToTest('Filter BackendUser and see only users never logged in before');
         $I->selectOption('#tx_Beuser_logins', 'Never logged in');
         $I->click('Filter');
+        $I->waitForElementNotVisible('div#nprogess');
         $I->waitForElementVisible('#typo3-backend-user-list');
 
         // We expect exact two fitting Backend Users created from the Fixtures
@@ -175,6 +184,7 @@ class ListUserCest
         $I->wantToTest('Filter BackendUser and see only users with given usergroup');
         $I->selectOption('#tx_beuser_backendUserGroup', 'editor-group');
         $I->click('Filter');
+        $I->waitForElementNotVisible('div#nprogess');
         $I->waitForElementVisible('#typo3-backend-user-list');
 
         // We expect exact one fitting Backend User created from the Fixtures
index cbc84c8..c5847dc 100644 (file)
@@ -69,7 +69,10 @@ class GetExtensionsCest
     {
         $I->fillField('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', 'superext');
         $I->click('Go');
+        // @todo do something about the double loading of the table, it is rendered twice (not double, but once, then retrieve extension list loader, then second time)
         $I->waitForElementVisible('#terSearchTable');
+        $I->wait(3);
+        $I->waitForElementNotVisible('div#nprogess');
         $I->canSeeNumberOfElements('#terSearchTable tbody tr', 1);
         $I->canSee('Super Extension');
 
@@ -78,6 +81,8 @@ class GetExtensionsCest
         $I->fillField('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', 'neededext');
         $I->pressKey('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', WebDriverKeys::ENTER);
         $I->waitForElementVisible('#terSearchTable');
+        $I->wait(3);
+        $I->waitForElementNotVisible('div#nprogess');
         $I->canSeeNumberOfElements('#terSearchTable tbody tr', 1);
         $I->canSee('Needed Extension');
     }
@@ -91,6 +96,8 @@ class GetExtensionsCest
         $I->click('Go');
         $I->waitForElementVisible('#terSearchTable');
         $I->canSeeNumberOfElements('#terSearchTable tbody tr', 2);
+        $I->wait(3);
+        $I->waitForElementNotVisible('div#nprogess');
         $I->canSee('Super Extension');
         $I->canSee('Needed Extension');
     }
index e78a526..fdf2460 100644 (file)
@@ -54,7 +54,7 @@ class InstalledExtensionsCest
         $I->canSee('cshmanual', '#typo3-extension-list tbody tr[role="row"] td');
 
         // unset the filter
-        $I->waitForElementVisible('#Tx_Extensionmanager_extensionkey ~button.close', 1);
+        $I->waitForElementVisible('#Tx_Extensionmanager_extensionkey ~button.close', 10);
         $I->click('#Tx_Extensionmanager_extensionkey ~button.close');
 
         $I->canSeeNumberOfElements('#typo3-extension-list tbody tr[role="row"]', [10, 100]);
@@ -81,13 +81,9 @@ class InstalledExtensionsCest
         $I->canSeeElement('#system_BelogLog');
 
         $I->switchToIFrame('list_frame');
-        $I->fillField('Tx_Extensionmanager_extensionkey', 'belog');
         $I->waitForElementVisible('//*[@id="typo3-extension-list"]/tbody/tr[@id="belog"]');
         $I->click('a[data-original-title="Deactivate"]', '//*[@id="typo3-extension-list"]/tbody/tr[@id="belog"]');
 
-        $I->waitForElementVisible('#Tx_Extensionmanager_extensionkey ~button.close', 1);
-        $I->click('#Tx_Extensionmanager_extensionkey ~button.close');
-
         $I->switchToIFrame();
         $I->cantSeeElement('#system_BelogLog');
 
@@ -97,13 +93,9 @@ class InstalledExtensionsCest
         $I->cantSeeElement('#system_BelogLog');
 
         $I->switchToIFrame('list_frame');
-        $I->fillField('Tx_Extensionmanager_extensionkey', 'belog');
         $I->waitForElementVisible('//*[@id="typo3-extension-list"]/tbody/tr[@id="belog"]');
         $I->click('a[data-original-title="Activate"]', '//*[@id="typo3-extension-list"]/tbody/tr[@id="belog"]');
 
-        $I->waitForElementVisible('#Tx_Extensionmanager_extensionkey ~button.close', 1);
-        $I->click('#Tx_Extensionmanager_extensionkey ~button.close');
-
         $I->switchToIFrame();
         $I->canSeeElement('#system_BelogLog');
     }
index ba5e73f..e9f8b56 100644 (file)
@@ -53,6 +53,7 @@ abstract class AbstractElementsBasicCest
                 $inputField->sendKeys(WebDriverKeys::TAB);
                 // Click on the div so that any opened popup (potentially from the field below) is closed
                 $formSection->click();
+                $I->waitForElementNotVisible('#t3js-ui-block');
 
                 $I->comment('Test value of visible and hidden field');
                 $I->canSeeInField($inputField, $data['expectedValue']);
@@ -62,6 +63,7 @@ abstract class AbstractElementsBasicCest
                 $saveButtonLink = '//*/button[@name="_savedok"][1]';
                 $I->waitForElement($saveButtonLink, 30);
                 $I->click($saveButtonLink);
+                $I->waitForElementNotVisible('#t3js-ui-block');
                 $I->waitForElement('//*/button[@name="_savedok"][not(@disabled)][1]', 30);
                 $I->waitForElement($initializedInputFieldXpath, 30);
 
index fc64579..e862fc6 100644 (file)
@@ -29,6 +29,7 @@ class CategoryTreeCest
         $I->useExistingSession();
         // Ensure main content frame is fully loaded, otherwise there are load-race-conditions
         $I->switchToIFrame('list_frame');
+        $I->waitForElementNotVisible('div#nprogess', 30);
         $I->waitForText('Web Content Management System');
         $I->switchToIFrame();
     }
@@ -62,6 +63,7 @@ class CategoryTreeCest
         $I->wait(1);
         // Select category with id 7
         $I->click('#recordlist-sys_category tr[data-uid="7"] a[data-original-title="Edit record"]');
+        $I->waitForText('Category', 20);
         // Change title and level to root
         $I->fillField('input[data-formengine-input-name="data[sys_category][7][title]"]', 'level-1-4');
         $I->click('.identifier-7 text');
@@ -69,6 +71,7 @@ class CategoryTreeCest
         $I->click('button[name="_savedok"]');
         // Wait for tree and check if isset level-1-4
         $I->waitForElement('.svg-tree-wrapper svg');
-        $I->see('level-1-4', '.svg-tree-wrapper svg .node text');
+        $I->waitForText('Category');
+        $I->see('level-1-4');
     }
 }
index 12a592a..71e4825 100644 (file)
@@ -39,11 +39,13 @@ class ElementsBasicInputCest extends AbstractElementsBasicCest
         $I->click('List');
         $pageTree->openPath(['styleguide TCA demo', 'elements basic']);
         $I->switchToIFrame('list_frame');
+        $I->waitForElementNotVisible('div#nprogess', 30);
 
         // Open record and wait until form is ready
-        $I->waitForText('elements basic');
+        $I->waitForText('elements basic', 20);
         $editRecordLinkCssPath = '#recordlist-tx_styleguide_elements_basic a[data-original-title="Edit record"]';
         $I->click($editRecordLinkCssPath);
+        $I->waitForElementNotVisible('#t3js-ui-block');
         $I->waitForText('Edit Form', 3, 'h1');
     }
 
index f041da6..371e446 100644 (file)
@@ -39,11 +39,13 @@ class ElementsBasicInputDateCest extends AbstractElementsBasicCest
         $I->click('List');
         $pageTree->openPath(['styleguide TCA demo', 'elements basic']);
         $I->switchToIFrame('list_frame');
+        $I->waitForElementNotVisible('div#nprogess', 30);
 
         // Open record and wait until form is ready
-        $I->waitForText('elements basic');
+        $I->waitForText('elements basic', 20);
         $editRecordLinkCssPath = '#recordlist-tx_styleguide_elements_basic a[data-original-title="Edit record"]';
         $I->click($editRecordLinkCssPath);
+        $I->waitForElementNotVisible('#t3js-ui-block');
         $I->waitForText('Edit Form', 3, 'h1');
         $I->click('inputDateTime');
         $I->waitForText('inputDateTime', 3);
index e7b2165..33aafa5 100644 (file)
@@ -34,10 +34,11 @@ class ElementsGroupCest
         $I->click('List');
         $pageTree->openPath(['styleguide TCA demo', 'elements group']);
         $I->switchToIFrame('list_frame');
+        $I->waitForElementNotVisible('div#nprogess', 30);
 
         $I->executeJS('window.name="TYPO3Main";');
 
-        $I->waitForText('elements group');
+        $I->waitForText('elements group', 20);
         $editRecordLinkCssPath = '#recordlist-tx_styleguide_elements_group a[data-original-title="Edit record"]';
         $I->click($editRecordLinkCssPath);
         $I->waitForText('Edit Form', 3, 'h1');
index f9203de..69a13a8 100644 (file)
@@ -51,6 +51,7 @@ class FalMetadataInheritanceCest
     {
         $I->amGoingTo('Create new CE with image');
         $I->click('.t3js-page-new-ce a');
+        $I->waitForElementNotVisible('div#nprogess');
         $I->click('Text & Images');
         $I->waitForText('Create new Page Content on page');
         $I->fillField('//input[contains(@data-formengine-input-name, "data[tt_content]") and contains(@data-formengine-input-name, "[header]")]', 'tt_content with image');
@@ -107,6 +108,7 @@ class FalMetadataInheritanceCest
         $I->switchToWindow();
         $I->switchToIFrame('list_frame');
         $I->click('tt_content with image');
+        $I->waitForElementNotVisible('#t3js-ui-block');
         $I->waitForText('Edit Page Content "tt_content with image" on page "styleguide TCA demo"');
         $I->click('Images');
         $I->click('.form-irre-header');
@@ -143,6 +145,7 @@ class FalMetadataInheritanceCest
     {
         $I->amGoingTo('Create new CE with image with filled metadata');
         $I->click('.t3js-page-new-ce a');
+        $I->waitForElementNotVisible('div#nprogess');
         $I->click('Text & Images');
         $I->waitForText('Create new Page Content on page');
         $I->fillField('//input[contains(@data-formengine-input-name, "data[tt_content]") and contains(@data-formengine-input-name, "[header]")]', 'tt_content with image with filled metadata');
index 5f97733..f4a7d15 100644 (file)
@@ -36,7 +36,7 @@ class Inline1nCest
         $pageTree->openPath(['styleguide TCA demo', 'inline 1n']);
         $I->switchToIFrame('list_frame');
 
-        $I->waitForText('inline 1n');
+        $I->waitForText('inline 1n', 20);
         $editRecordLinkCssPath = '#recordlist-tx_styleguide_inline_1n a[data-original-title="Edit record"]';
         $I->click($editRecordLinkCssPath);
         $I->waitForText('Edit Form', 3, 'h1');
@@ -47,12 +47,12 @@ class Inline1nCest
      */
     public function checkIfExpandsAndCollapseShowInput(Admin $I)
     {
-        $I->wantTo('Expands the inline Elemnet');
+        $I->wantTo('Expands the inline Element');
         $I->click('div[data-toggle="formengine-inline"]', '#data-12-tx_styleguide_inline_1n-1-inline_1-tx_styleguide_inline_1n_child-1_div');
         $I->waitForElement('input[data-formengine-input-name="data[tx_styleguide_inline_1n_child][1][input_1]"]');
         $I->wantTo('check is the value in input');
         $I->seeInField('input[data-formengine-input-name="data[tx_styleguide_inline_1n_child][1][input_1]"]', 'lipsum');
-        $I->wantTo('Collapse the inline Elemnet');
+        $I->wantTo('Collapse the inline Element');
         $I->click('div[data-toggle="formengine-inline"]', '#data-12-tx_styleguide_inline_1n-1-inline_1-tx_styleguide_inline_1n_child-1_div');
         $I->waitForElementNotVisible('#data-12-tx_styleguide_inline_1n-1-inline_1-tx_styleguide_inline_1n_child-1_fields.panel-collapse');
     }
index f100b9b..20d13f5 100644 (file)
@@ -102,6 +102,7 @@ class InstallModuleCest
             $I->amGoingTo('login to install tool with right password');
             $I->fillField('#t3-install-form-password', $this->password);
             $I->click('//button[@type="submit"]');
+            $I->wait(2);
             $I->waitForElement('//body[@class="backend"]');
             $I->see('Important actions');
             $I->waitForElement('.t3js-list-group-wrapper');
index a2c5b59..379d462 100644 (file)
@@ -45,7 +45,7 @@ class TasksCest
     {
         $I->see('No tasks defined yet');
         $I->click('//a[contains(@title, "Add task")]', '.module-docheader');
-        $I->cantSeeElement('#task_SystemStatusUpdateNotificationEmail');
+        $I->waitForElementNotVisible('#task_SystemStatusUpdateNotificationEmail');
         $I->selectOption('#task_class', 'System Status Update');
         $I->seeElement('#task_SystemStatusUpdateNotificationEmail');
         $I->selectOption('#task_type', 'Single');
@@ -97,6 +97,7 @@ class TasksCest
         $I->dontSee('disabled');
         $I->wantTo('See a disable button for a task');
         $I->click('//a[contains(@data-original-title, "Disable")]');
+        $I->waitForElementVisible('div.tx_scheduler_mod1');
         $I->seeElement('.tx_scheduler_mod1 .disabled');
         $I->see('disabled');
     }
@@ -133,6 +134,7 @@ class TasksCest
     public function canSwitchToSetupCheck(Admin $I)
     {
         $I->selectOption('select[name=SchedulerJumpMenu]', 'Setup check');
+        $I->waitForElementVisible('div.tx_scheduler_mod1');
         $I->see('Setup check');
         $I->see('This screen checks if the requisites for running the Scheduler as a cron job are fulfilled');
     }
@@ -143,6 +145,7 @@ class TasksCest
     public function canSwitchToInformation(Admin $I)
     {
         $I->selectOption('select[name=SchedulerJumpMenu]', 'Information');
+        $I->waitForElementVisible('div.tx_scheduler_mod1');
         $I->see('Information');
         $I->canSeeNumberOfElements('.tx_scheduler_mod1 table tbody tr', [1, 10000]);
     }
index bf5cad7..2cd699c 100644 (file)
@@ -102,7 +102,9 @@ class TemplateCest
         // fill title input field
         $I->fillField('//input[@data-formengine-input-name="data[sys_template][1][title]"]', 'Acceptance Test Site');
         $I->click("//button[@name='_savedok']");
+        $I->waitForElementNotVisible('#t3js-ui-block', 30);
         $I->waitForElement('#EditDocumentController');
+        $I->waitForElementNotVisible('#t3js-ui-block');
 
         $I->wantTo('change the setup, save the template and close the form');
         // grap and fill setup textarea
@@ -134,6 +136,7 @@ class TemplateCest
         $I->waitForText('page.10.value =');
         $I->fillField('//input[@name="data[page.10.value][value]"]', 'HELLO WORLD!');
         $I->click('//input[@name="update_value"]');
+        $I->wait(2);
         $I->waitForText('Value updated');
         $I->see('page.10.value = HELLO WORLD!');
         $I->see('[value] = HELLO WORLD!');
index 7a43af8..7b74d05 100644 (file)
@@ -18,4 +18,4 @@ modules:
         # You can simply do that by scrolling to it.
         elementScrollBehavior: 1
         chromeOptions:
-          args: ["--headless", "--no-sandbox", "window-size=1280x1024"]
\ No newline at end of file
+          args: ["--headless", "--no-sandbox", "window-size=1280x1024", "--proxy-server='direct://'", "--proxy-bypass-list=*", "--disable-gpu"]
\ No newline at end of file
index 61140da..53b0dfe 100644 (file)
@@ -66,6 +66,7 @@ class InstallWithMysqlIntroductionPackageCest
         $I->seeCookie('be_typo_user');
 
         // Loading might take some time
+        $I->wait(10);
         $I->switchToIFrame('list_frame');
         $I->waitForText('Get preconfigured distribution', 30);
         $I->click('.t3-button-action-installdistribution');
index a4de529..3970aa7 100644 (file)
@@ -18,4 +18,4 @@ modules:
         # You can simply do that by scrolling to it.
         elementScrollBehavior: 1
         chromeOptions:
-          args: ["--headless", "--no-sandbox", "window-size=1280x1024"]
+          args: ["--headless", "--no-sandbox", "window-size=1280x1024", "--proxy-server='direct://'", "--proxy-bypass-list=*", "--disable-gpu"]
index 988ab46..86d1949 100644 (file)
@@ -66,6 +66,7 @@ class InstallWithPgsqlIntroductionPackageCest
         $I->seeCookie('be_typo_user');
 
         // Loading might take some time
+        $I->wait(10);
         $I->switchToIFrame('list_frame');
         $I->waitForText('Get preconfigured distribution', 30);
         $I->click('.t3-button-action-installdistribution');