From f105c91e51dcace775d59cb19f16d05e659bbd2a Mon Sep 17 00:00:00 2001 From: Rajab Natshah Date: Wed, 8 Mar 2023 18:50:25 +0300 Subject: [PATCH] Issue #3346730: Remove installing the Varbase Update Helper module from the list of default Varbase components on installation --- .circleci/config.yml | 6 +-- configbit/default.components.varbase.bit.yml | 1 - tests/README.md | 42 ++++++-------------- 3 files changed, 15 insertions(+), 34 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d6a9b183..d7c94389 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -200,10 +200,8 @@ commands: ../bin/drush pm:enable social_auth_facebook --yes ../bin/drush pm:enable social_auth_twitter --yes ../bin/drush pm:enable social_auth_linkedin --yes - ../bin/drush config:set system.performance css.preprocess 0 --yes - ../bin/drush config:set system.performance js.preprocess 0 --yes - ../bin/drush config:set system.logging error_level all --yes - ../bin/drush cr + ../bin/drush pm:enable varbase_update_helper --yes + ../bin/drush cache:rebuild ## Run Selenium Standalone server. - run: diff --git a/configbit/default.components.varbase.bit.yml b/configbit/default.components.varbase.bit.yml index 02d9ffeb..39098b3b 100644 --- a/configbit/default.components.varbase.bit.yml +++ b/configbit/default.components.varbase.bit.yml @@ -26,4 +26,3 @@ config_bit: - varbase_dashboards - varbase_default_content - varbase_tour - - varbase_update_helper diff --git a/tests/README.md b/tests/README.md index eb446006..26a4809b 100644 --- a/tests/README.md +++ b/tests/README.md @@ -19,16 +19,15 @@ composer create-project vardot/varbase:10.0.x-dev PROJECT_DIR_NAME --stability d ### Add needed testing packages ``` cd path to your files of the project/PROJECT_DIR_NAME -composer require --dev drupal/core-dev:~9.0 +composer require --dev drupal/core-dev:~10 composer require --dev drush/drush:~11.0 -composer require --dev drupal/drupal-extension:~4.0 --with-all-dependencies -composer require --dev emuse/behat-html-formatter:^0.2.0 +composer require --dev drupal/drupal-extension:~5.0 --with-all-dependencies ``` ### Add additional testing packages ``` -cd path to yout files of the project/PROJECT_DIR_NAME +Change path to your files of the project/PROJECT_DIR_NAME BEHAT-SCREENSHOT to capture images on demand or when a test fails composer require --dev drevops/behat-screenshot @@ -48,7 +47,7 @@ Read more about it here: https://github.com/drevops/behat-screenshot ### Install Varbase Have Varbase installed from the browser or using the `drush site:install` command. -But make sure to have the webmaster user with the `dD.123123ddd` passwrod. +But make sure to have the webmaster user with the `dD.123123ddd` password. Exmaple Drush install: Change directory in the terminal to the path of the project and `/PROJECT_DIR_NAME/docroot` @@ -58,7 +57,7 @@ Change directory in the terminal to the path of the project and `/PROJECT_DIR_NA ``` ### Enable all Varbase components -Make sure that all varbase modules are insalled. +Make sure that all varbase modules are installed. ``` ../bin/drush pm:enable vmi --yes ../bin/drush pm:enable varbase_heroslider_media --yes @@ -76,19 +75,18 @@ Make sure that all varbase modules are insalled. ../bin/drush pm:enable social_auth_facebook --yes ../bin/drush pm:enable social_auth_twitter --yes ../bin/drush pm:enable social_auth_linkedin --yes -../bin/drush cr +../bin/drush pm:enable varbase_update_helper --yes +../bin/drush cache:rebuild ``` -### Enable the Drush Language Command module and add a RTL language +### Import and Update local RTL language Needed to add the extra languages. ``` cd path to your files of the project/PROJECT_DIR_NAME -composer require drupal/drush_language:~1.0 cd `/PROJECT_DIR_NAME/docroot` -../bin/drush pm:enable drush_language --yes -../bin/drush language-add ar -../bin/drush language-info -../bin/drush cr +../bin/drush locale-import ar --autocreate-language profiles/varbase/translations/ar.po +../bin/drush locale-update --langcodes=ar +../bin/drush cache:rebuild ``` ### Uninstall Antibot module to make the Selenium robot have more control @@ -96,16 +94,7 @@ Needed to uninstall as the Antibot module will prevent the Selenium robot from p ``` cd `/PROJECT_DIR_NAME/docroot` ../bin/drush pm:uninstall antibot --yes -../bin/drush cr -``` - -### Change config for error reporting and CSS/JS aggregation -``` -cd `/PROJECT_DIR_NAME/docroot` -../bin/drush config:set system.performance css.preprocess 0 --yes -../bin/drush config:set system.performance js.preprocess 0 --yes -../bin/drush config:set system.logging error_level all --yes -../bin/drush cr +../bin/drush cache:rebuild ``` ### Add testing users. @@ -187,13 +176,10 @@ To run the automated testing with behat you will need to change the [ wd_host an Drupal\MinkExtension: ajax_timeout: 60 files_path: "%paths.base%/tests/assets/" - goutte: ~ selenium2: wd_host: 127.0.0.1:4445/wd/hub capabilities: - # browser: 'firefox' browser: 'chrome' - # browser: 'phantomjs' nativeEvents: true marionette: true browserName: chrome @@ -224,9 +210,7 @@ To run the automated testing with behat you will need to change the [ wd_host an - "--allowed-ips=*" - "--whitelisted-ips=*" base_url: 'http://varbase.test' - # browser_name: 'firefox' browser_name: 'chrome' - # browser_name: 'phantomjs' javascript_session: selenium2 ``` @@ -324,7 +308,7 @@ $ ../../../bin/behat --tags '@development' tests/features/varbase/ Which it will run Scenarios which has got the @development tag. ``` -$ ../../../bin/behat --tags '@staging' ftests/eatures/varbase/ +$ ../../../bin/behat --tags '@staging' tests/features/varbase/ ``` Which it will run Scenarios which has got the @staging tag.