From da3f0ec1e328d77a27add674543f425e7e86e39c Mon Sep 17 00:00:00 2001
From: Rajab Natshah <rajabn@gmail.com>
Date: Tue, 7 Feb 2017 15:42:20 +0200
Subject: [PATCH] Issue #2845837 : Updated [ Feature: Website Base Requirements
 - Website Languages - All content translatable to all languages ] automated
 functional test.

---
 .travis.yml                                                   | 2 +-
 tests/features/varbase/step1-init-tests/2-add-arabic.feature  | 4 ++++
 tests/features/varbase/step1-init-tests/3-add-french.feature  | 4 ++++
 ...ges_all-content-translatable-to-all-languages_v4-0.feature | 4 ++--
 4 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index fd9b9116..6b382020 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -49,7 +49,7 @@ install:
   - mysql -e "SHOW VARIABLES LIKE 'wait_timeout'"
 
   # PHP Configurations.
-  - echo 'max_execution_time = 300' >> drupal.php.ini;
+  - echo 'max_execution_time = 600' >> drupal.php.ini;
   - echo 'max_input_time = 180' >> drupal.php.ini;
   - echo 'max_input_vars = 10000' >> drupal.php.ini;
   - echo 'memory_limit = 512M' >> drupal.php.ini;
diff --git a/tests/features/varbase/step1-init-tests/2-add-arabic.feature b/tests/features/varbase/step1-init-tests/2-add-arabic.feature
index dfa95b50..d00aa585 100644
--- a/tests/features/varbase/step1-init-tests/2-add-arabic.feature
+++ b/tests/features/varbase/step1-init-tests/2-add-arabic.feature
@@ -13,8 +13,12 @@ Feature: Add Arabic language if we do not have it to languages in the system.
      When I select "ar" from "Language name"
       And I press "Add language"
       And I wait for the batch job to finish
+      And I wait for the batch job to finish
+      And I wait for the batch job to finish
      Then I should see "The language Arabic has been created and can now be used."
       And I wait for the batch job to finish
+      And I wait for the batch job to finish
+      And I wait for the batch job to finish
      When I go to "/admin/config/regional/language"
       And I wait
      Then I should see "Arabic"
diff --git a/tests/features/varbase/step1-init-tests/3-add-french.feature b/tests/features/varbase/step1-init-tests/3-add-french.feature
index 45e8c575..929d365d 100644
--- a/tests/features/varbase/step1-init-tests/3-add-french.feature
+++ b/tests/features/varbase/step1-init-tests/3-add-french.feature
@@ -13,8 +13,12 @@ Feature: Add French language if we do not have it to languages in the system.
      When I select "fr" from "Language name"
       And I press "Add language"
       And I wait for the batch job to finish
+      And I wait for the batch job to finish
+      And I wait for the batch job to finish
      Then I should see "The language French has been created and can now be used."
       And I wait for the batch job to finish
+      And I wait for the batch job to finish
+      And I wait for the batch job to finish
      When I go to "/admin/config/regional/language"
       And I wait
      Then I should see "French"
diff --git a/tests/features/varbase/step2-apply-tests/04-website-base-requirements_website-languages_all-content-translatable-to-all-languages_v4-0.feature b/tests/features/varbase/step2-apply-tests/04-website-base-requirements_website-languages_all-content-translatable-to-all-languages_v4-0.feature
index 3a5b60d1..2fbe18af 100644
--- a/tests/features/varbase/step2-apply-tests/04-website-base-requirements_website-languages_all-content-translatable-to-all-languages_v4-0.feature
+++ b/tests/features/varbase/step2-apply-tests/04-website-base-requirements_website-languages_all-content-translatable-to-all-languages_v4-0.feature
@@ -49,9 +49,9 @@ So that I will be able to create a content then I will have the option to transl
      Then I should see "Traduire Test English Basic page en Français"
      When I fill in "La page test d'anglais de base" for "Titre"
       And I fill in the rich text editor field "Corps" with "Corps de la page test d'anglais de base"
-      And I press "op"
+      And I press the "Enregistrer et laisser publié" 
       And I wait
-     Then I should see "La page test d'anglais de base"
+     Then I should see "La page test d'anglais de base" button
      When I click "Translate"
       And I wait
      Then I should see "Test English Basic page"
-- 
GitLab