[TASK] Acceptance tests: chrome headless 72/54272/8
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 3 Oct 2017 12:13:55 +0000 (14:13 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 3 Oct 2017 14:32:49 +0000 (16:32 +0200)
Switch to chrome headless for acceptance tests. We
don't need xvfb and friends on bamboo anymore which
will be updated with another patch later.

Change-Id: Ieb78d3d198f7dd9dc882041d86b403099e0854c6
Resolves: #82659
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/54272
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Tests/Acceptance.suite.yml
typo3/sysext/core/Tests/Acceptance/Backend/Topbar/SearchCest.php
typo3/sysext/core/Tests/AcceptanceInstallMysql.suite.yml
typo3/sysext/core/Tests/AcceptanceInstallPgsql.suite.yml

index 445e764..0f6a3c2 100644 (file)
@@ -9,9 +9,7 @@ modules:
       url: http://localhost:8000/typo3temp/var/tests/acceptance
       browser: chrome
       port: 4444
-      window_size: 1280x1024
       wait: 1
-      restart: false
       capabilities:
         # Disable the "scroll to element before clicking" behavior as this breaks tests
         # where for example a fixed docbar is used. Selenium scrolls to the element before
@@ -21,4 +19,4 @@ modules:
         # You can simply do that by scrolling to it.
         elementScrollBehavior: 1
         chromeOptions:
-          args: [no-sandbox,disable-infobars,disable-notifications,disable-gpu,disable-software-rasterizer]
\ No newline at end of file
+          args: ["--headless", "--no-sandbox", "window-size=1280x1024"]
\ No newline at end of file
index 51ae978..d0bc940 100644 (file)
@@ -64,13 +64,13 @@ class SearchCest
     public function searchForFancyTextAndCheckEmptyResultInfo(Admin $I)
     {
         $I->fillField('#live-search-box', 'Kasper = Jesus # joh316');
-        $I->waitForElementVisible(self::$topBarModuleSelector . ' ' . Topbar::$dropdownListSelector);
+        $I->waitForElementVisible(self::$topBarModuleSelector . ' ' . Topbar::$dropdownListSelector, 100);
 
         // tod0: check why TYPO3 does not return a result for "Kasper" by itself
         $I->canSee('No results found.', self::$topBarModuleSelector);
 
         $I->click(self::$topBarModuleSelector . ' .close');
-        $I->waitForElementNotVisible(self::$topBarModuleSelector . ' ' . Topbar::$dropdownListSelector);
+        $I->waitForElementNotVisible(self::$topBarModuleSelector . ' ' . Topbar::$dropdownListSelector, 100);
         $I->cantSeeInField('#live-search-box', 'Kasper = Jesus # joh316');
     }
 
index b3ed454..913c495 100644 (file)
@@ -9,9 +9,7 @@ modules:
       url: http://localhost:8000/typo3temp/var/tests/acceptanceinstallmysql
       browser: chrome
       port: 4444
-      window_size: 1280x1024
       wait: 1
-      restart: false
       capabilities:
         # Disable the "scroll to element before clicking" behavior as this breaks tests
         # where for example a fixed docbar is used. Selenium scrolls to the element before
@@ -21,4 +19,4 @@ modules:
         # You can simply do that by scrolling to it.
         elementScrollBehavior: 1
         chromeOptions:
-          args: [no-sandbox,disable-infobars,disable-notifications,disable-gpu,disable-software-rasterizer]
\ No newline at end of file
+          args: ["--headless", "--no-sandbox", "window-size=1280x1024"]
\ No newline at end of file
index fb578b0..ff61dcf 100644 (file)
@@ -9,9 +9,7 @@ modules:
       url: http://localhost:8000/typo3temp/var/tests/acceptanceinstallpgsql
       browser: chrome
       port: 4444
-      window_size: 1280x1024
       wait: 1
-      restart: false
       capabilities:
         # Disable the "scroll to element before clicking" behavior as this breaks tests
         # where for example a fixed docbar is used. Selenium scrolls to the element before
@@ -21,4 +19,4 @@ modules:
         # You can simply do that by scrolling to it.
         elementScrollBehavior: 1
         chromeOptions:
-          args: [no-sandbox,disable-infobars,disable-notifications,disable-gpu,disable-software-rasterizer]
+          args: ["--headless", "--no-sandbox", "window-size=1280x1024"]