Skip to content

Commit

Permalink
Issue #3346730: Remove installing the Varbase Update Helper module fr…
Browse files Browse the repository at this point in the history
…om the list of default Varbase components on installation
  • Loading branch information
Natshah committed Mar 8, 2023
1 parent 07f7005 commit f105c91
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 34 deletions.
6 changes: 2 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion configbit/default.components.varbase.bit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ config_bit:
- varbase_dashboards
- varbase_default_content
- varbase_tour
- varbase_update_helper
42 changes: 13 additions & 29 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`
Expand All @@ -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
Expand All @@ -76,36 +75,26 @@ 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
Needed to uninstall as the Antibot module will prevent the Selenium robot from performing effectively
```
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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
```

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit f105c91

Please sign in to comment.