Skip to content
Snippets Groups Projects
Commit a50c79ca authored by Rajab Natshah's avatar Rajab Natshah Committed by GitHub
Browse files

Issue #2888454: Fixed travis-ci speed of processing the functional automated tests

parent 3c284d4b
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ cache: ...@@ -6,6 +6,7 @@ cache:
- "$HOME/.composer/cache" - "$HOME/.composer/cache"
- "$HOME/.drush/cache" - "$HOME/.drush/cache"
- "$HOME/.npm" - "$HOME/.npm"
- "$HOME/.selenium/cache"
php: php:
- 5.6 - 5.6
...@@ -13,7 +14,8 @@ php: ...@@ -13,7 +14,8 @@ php:
env: env:
- VERSION=8.x-4.x - VERSION=8.x-4.x
sudo: false sudo: enabled
dist: trusty
addons: addons:
firefox: 46.0.1 firefox: 46.0.1
...@@ -39,8 +41,6 @@ before_install: ...@@ -39,8 +41,6 @@ before_install:
- composer self-update - composer self-update
- composer --version - composer --version
install:
- export PATH="$HOME/.composer/vendor/bin:$TRAVIS_BUILD_DIR/bin:$PATH" - export PATH="$HOME/.composer/vendor/bin:$TRAVIS_BUILD_DIR/bin:$PATH"
- export COMPOSER_EXIT_ON_PATCH_FAILURE=1 - export COMPOSER_EXIT_ON_PATCH_FAILURE=1
...@@ -49,10 +49,10 @@ install: ...@@ -49,10 +49,10 @@ install:
- mysql -e "SHOW VARIABLES LIKE 'wait_timeout'" - mysql -e "SHOW VARIABLES LIKE 'wait_timeout'"
# PHP Configurations. # 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_time = 180' >> drupal.php.ini;
- echo 'max_input_vars = 10000' >> drupal.php.ini; - echo 'max_input_vars = 10000' >> drupal.php.ini;
- echo 'memory_limit = 512M' >> drupal.php.ini; - echo 'memory_limit = 2048M' >> drupal.php.ini;
- echo 'error_reporting = E_ALL' >> drupal.php.ini; - echo 'error_reporting = E_ALL' >> drupal.php.ini;
- echo 'post_max_size = 64M' >> drupal.php.ini; - echo 'post_max_size = 64M' >> drupal.php.ini;
- echo 'upload_max_filesize = 32M' >> drupal.php.ini; - echo 'upload_max_filesize = 32M' >> drupal.php.ini;
...@@ -71,12 +71,14 @@ install: ...@@ -71,12 +71,14 @@ install:
- firefox --version - firefox --version
# Run selenium standalone server. # Run selenium standalone server.
- echo "Getting selenium server standalone 2.53.1\n" - SELENIUM="$HOME/.selenium/cache/selenium-server-standalone-2.53.1.jar";
- wget -O $HOME/selenium-server-standalone-2.53.1.jar http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar - if [[ ! -f $SELENIUM ]]; then wget -O $SELENIUM http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar; fi
- java -jar $HOME/selenium-server-standalone-2.53.1.jar -port 4445 > /dev/null 2>&1 & - java -jar $SELENIUM -port 4445 > /dev/null 2>&1 &
- echo "[ OK ] Starting Selenium on the 4445 port ..." - echo "[ OK ] Starting Selenium on the 4445 port ..."
- composer global require phing/phing - composer global require phing/phing
install:
- phing build -Dversion=$VERSION -Dbranch=$TRAVIS_COMMIT - phing build -Dversion=$VERSION -Dbranch=$TRAVIS_COMMIT
- phing install -Ddb.database=drupal - phing install -Ddb.database=drupal
...@@ -91,6 +93,9 @@ before_script: ...@@ -91,6 +93,9 @@ before_script:
# Install Varbase Development feature. # Install Varbase Development feature.
# Development Environment Modules and Features, make sure to disable this feature in production. # Development Environment Modules and Features, make sure to disable this feature in production.
- drush -y en varbase_development -vvv - drush -y en varbase_development -vvv
- drush -y en varbase_heroslider_media -vvv
- drush -y en varbase_carousels -vvv
- drush -y en varbase_search -vvv
script: script:
- cd ./profiles/varbase - cd ./profiles/varbase
...@@ -99,4 +104,4 @@ script: ...@@ -99,4 +104,4 @@ script:
# - behat --strict tests/features/varbase/step3-cleanup-tests/ # no need as we build every time. # - behat --strict tests/features/varbase/step3-cleanup-tests/ # no need as we build every time.
matrix: matrix:
fast_finish: true fast_finish: true
\ No newline at end of file
...@@ -75,8 +75,7 @@ So that it will show up under that rich text field without having to upload the ...@@ -75,8 +75,7 @@ So that it will show up under that rich text field without having to upload the
And I wait for AJAX to finish And I wait for AJAX to finish
And I switch to main frame And I switch to main frame
And I wait for AJAX to finish And I wait for AJAX to finish
Then I should see "Embed media" Then I should see "Embed Flag Earth"
And I should see "Embed Flag Earth"
When I fill in "Embed Flag Earth custom Caption text" for "Caption" When I fill in "Embed Flag Earth custom Caption text" for "Caption"
And I fill in "Embed Flag Earth custom Alt text" for "Alternative text" And I fill in "Embed Flag Earth custom Alt text" for "Alternative text"
And I fill in "Embed Flag Earth custom title" for "Title" And I fill in "Embed Flag Earth custom title" for "Title"
...@@ -84,4 +83,4 @@ So that it will show up under that rich text field without having to upload the ...@@ -84,4 +83,4 @@ So that it will show up under that rich text field without having to upload the
And I wait for AJAX to finish And I wait for AJAX to finish
When I press "Save" When I press "Save"
And I wait And I wait
Then I should see image with the "Embed Flag Earth all earth in space" title text Then I should see image with the "Embed Flag Earth all earth in space" title text
\ No newline at end of file
...@@ -7,6 +7,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -7,6 +7,7 @@ So that the "Landing page" will show up having paragrpahs of different types
Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Carousel" Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Carousel"
Given I am a logged in user with the "test_super_admin" user Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page" When I go to "node/add/landing_page"
And I wait
And I fill in "Test Landing page Carousel" for "Title" And I fill in "Test Landing page Carousel" for "Title"
And I fill in "Test Landing page description Carousel" for "Page description" And I fill in "Test Landing page description Carousel" for "Page description"
And I press the "Add" button And I press the "Add" button
...@@ -15,6 +16,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -15,6 +16,7 @@ So that the "Landing page" will show up having paragrpahs of different types
And I wait for AJAX to finish And I wait for AJAX to finish
And I select "2 Seconds" from "Slide Interval" And I select "2 Seconds" from "Slide Interval"
When I Expand the select list "dropbutton-multiple" When I Expand the select list "dropbutton-multiple"
And I wait
And I press "Add Image" And I press "Add Image"
And I wait for AJAX to finish And I wait for AJAX to finish
And I scrolldown And I scrolldown
...@@ -29,7 +31,8 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -29,7 +31,8 @@ So that the "Landing page" will show up having paragrpahs of different types
When I double click on the image with the "Embed Flag Earth all earth in space" title text When I double click on the image with the "Embed Flag Earth all earth in space" title text
And I switch to main frame And I switch to main frame
And I wait And I wait
When I Expand the select list "dropbutton-multiple" And I Expand the select list "dropbutton-multiple"
And I wait
And I press "Add Image" And I press "Add Image"
And I wait for AJAX to finish And I wait for AJAX to finish
And I press the "Select an image" button And I press the "Select an image" button
...@@ -45,6 +48,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -45,6 +48,7 @@ So that the "Landing page" will show up having paragrpahs of different types
And I switch to main frame And I switch to main frame
And I wait for AJAX to finish And I wait for AJAX to finish
And I press "Save" And I press "Save"
And I wait
Then I should see "Landing page Test Landing page Carousel has been created" Then I should see "Landing page Test Landing page Carousel has been created"
And I should see image with the "Embed Flag Earth all earth in space" title text And I should see image with the "Embed Flag Earth all earth in space" title text
...@@ -52,13 +56,16 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -52,13 +56,16 @@ So that the "Landing page" will show up having paragrpahs of different types
Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Accordion" Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Accordion"
Given I am a logged in user with the "test_super_admin" user Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page" When I go to "node/add/landing_page"
And I wait
And I fill in "Test Landing page Accordion" for "Title" And I fill in "Test Landing page Accordion" for "Title"
And I fill in "Test Landing page description Accordion" for "Page description" And I fill in "Test Landing page description Accordion" for "Page description"
And I press the "Add" button And I press the "Add" button
Then I press the "Accordion" button Then I should see "Accordion"
When I press the "Accordion" button
And I wait for AJAX to finish And I wait for AJAX to finish
And I scrolldown And I scrolldown
And I Expand the field "styling-settings" Then I should see "styling settings"
When I Expand the field "styling-settings"
And I scrolldown And I scrolldown
And I press the "Select an image" button And I press the "Select an image" button
And I wait for AJAX to finish And I wait for AJAX to finish
...@@ -80,38 +87,34 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -80,38 +87,34 @@ So that the "Landing page" will show up having paragrpahs of different types
When I press "Save" When I press "Save"
Then I should see "Landing page Test Landing page Accordion has been created" Then I should see "Landing page Test Landing page Accordion has been created"
And I click "Accordion Section Title test" And I click "Accordion Section Title test"
And I wait
And I should see "Accordion Section Body test" And I should see "Accordion Section Body test"
@javascript @local @development @staging @production @javascript @local @development @staging @production
Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Drupal Block" Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Drupal Block"
Given I am a logged in user with the "test_super_admin" user Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page" When I go to "node/add/landing_page"
And I wait
And I fill in "Test Landing page Drupal Block" for "Title" And I fill in "Test Landing page Drupal Block" for "Title"
And I fill in "Test Landing page description Drupal Block" for "Page description" And I fill in "Test Landing page description Drupal Block" for "Page description"
And I press the "Add" button And I press the "Add" button
Then I press "Drupal Block" And I wait for AJAX to finish
Then I should see "Add paragraph"
When I press "Drupal Block"
And I wait for AJAX to finish And I wait for AJAX to finish
And I scrolldown And I scrolldown
Then I should see "Block"
When I select "Site branding" from "Block" When I select "Site branding" from "Block"
And I Expand the field "styling-settings"
And I press the "Select an image" button
And I wait for AJAX to finish
Then the image media browser should be open
When I switch to iframe "entity_browser_iframe_image_browser"
And I fill in "Embed Flag Earth" for "Search keywords"
And I press the "Search" button
And I wait for AJAX to finish
Then I should see image with the "Embed Flag Earth all earth in space" title text
When I double click on the image with the "Embed Flag Earth all earth in space" title text
And I switch to main frame
And I wait And I wait
And I press "Save" And I press "Save"
And I wait
Then I should see "Landing page Test Landing page Drupal Block has been created" Then I should see "Landing page Test Landing page Drupal Block has been created"
@javascript @local @development @staging @production @javascript @local @development @staging @production
Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Columns (Equal)" Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Columns (Equal)"
Given I am a logged in user with the "test_super_admin" user Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page" When I go to "node/add/landing_page"
And I wait
And I fill in "Test Landing page Columns (Equal)" for "Title" And I fill in "Test Landing page Columns (Equal)" for "Title"
And I fill in "Test Landing page description Columns (Equal)" for "Page description" And I fill in "Test Landing page description Columns (Equal)" for "Page description"
And I press the "Add" button And I press the "Add" button
...@@ -120,6 +123,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -120,6 +123,7 @@ So that the "Landing page" will show up having paragrpahs of different types
And I scrolldown And I scrolldown
When I Expand the field "styling-settings" When I Expand the field "styling-settings"
And I wait for AJAX to finish
And I press the "Select an image" button And I press the "Select an image" button
And I wait for AJAX to finish And I wait for AJAX to finish
Then the image media browser should be open Then the image media browser should be open
...@@ -164,12 +168,14 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -164,12 +168,14 @@ So that the "Landing page" will show up having paragrpahs of different types
And I wait for AJAX to finish And I wait for AJAX to finish
When I press "Save" When I press "Save"
And I wait
Then I should see "Landing page Test Landing page Columns (Equal) has been created" Then I should see "Landing page Test Landing page Columns (Equal) has been created"
@javascript @local @development @staging @production @javascript @local @development @staging @production
Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Columns (Two Uneven)" Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Columns (Two Uneven)"
Given I am a logged in user with the "test_super_admin" user Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page" When I go to "node/add/landing_page"
And I wait
And I fill in "Test Landing page Columns (Two Uneven)" for "Title" And I fill in "Test Landing page Columns (Two Uneven)" for "Title"
And I fill in "Test Landing page description Columns (Two Uneven)" for "Page description" And I fill in "Test Landing page description Columns (Two Uneven)" for "Page description"
And I press the "Add" button And I press the "Add" button
...@@ -222,12 +228,14 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -222,12 +228,14 @@ So that the "Landing page" will show up having paragrpahs of different types
And I wait for AJAX to finish And I wait for AJAX to finish
When I press "Save" When I press "Save"
And I wait
Then I should see "Landing page Test Landing page Columns (Two Uneven) has been created" Then I should see "Landing page Test Landing page Columns (Two Uneven) has been created"
@javascript @local @development @staging @production @javascript @local @development @staging @production
Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Image" Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Image"
Given I am a logged in user with the "test_super_admin" user Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page" When I go to "node/add/landing_page"
And I wait
And I fill in "Test Landing page Image" for "Title" And I fill in "Test Landing page Image" for "Title"
And I fill in "Test Landing page description Image" for "Page description" And I fill in "Test Landing page description Image" for "Page description"
And I press the "Add" button And I press the "Add" button
...@@ -246,6 +254,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -246,6 +254,7 @@ So that the "Landing page" will show up having paragrpahs of different types
And I switch to main frame And I switch to main frame
And I wait for AJAX to finish And I wait for AJAX to finish
And I press "Save" And I press "Save"
And I wait
Then I should see "Landing page Test Landing page Image has been created" Then I should see "Landing page Test Landing page Image has been created"
And I should see image with the "Embed Flag Earth all earth in space" title text And I should see image with the "Embed Flag Earth all earth in space" title text
...@@ -253,6 +262,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -253,6 +262,7 @@ So that the "Landing page" will show up having paragrpahs of different types
Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Modal" Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Modal"
Given I am a logged in user with the "test_super_admin" user Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page" When I go to "node/add/landing_page"
And I wait
And I fill in "Test Landing page Modal" for "Title" And I fill in "Test Landing page Modal" for "Title"
And I fill in "Test Landing page description Modal" for "Page description" And I fill in "Test Landing page description Modal" for "Page description"
And I press the "Add" button And I press the "Add" button
...@@ -269,6 +279,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -269,6 +279,7 @@ So that the "Landing page" will show up having paragrpahs of different types
When I press "Save" When I press "Save"
Then I should see "Landing page Test Landing page Modal has been created" Then I should see "Landing page Test Landing page Modal has been created"
When I press "Modal button" When I press "Modal button"
And I wait
Then I should see "Modal title" Then I should see "Modal title"
And I should see "Modal Body test" And I should see "Modal Body test"
...@@ -276,6 +287,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -276,6 +287,7 @@ So that the "Landing page" will show up having paragrpahs of different types
Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Simple" Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Simple"
Given I am a logged in user with the "test_super_admin" user Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page" When I go to "node/add/landing_page"
And I wait
And I fill in "Test Landing page Simple" for "Title" And I fill in "Test Landing page Simple" for "Title"
And I fill in "Test Landing page description Simple" for "Page description" And I fill in "Test Landing page description Simple" for "Page description"
And I press the "Add" button And I press the "Add" button
...@@ -298,6 +310,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -298,6 +310,7 @@ So that the "Landing page" will show up having paragrpahs of different types
And I switch to main frame And I switch to main frame
And I wait for AJAX to finish And I wait for AJAX to finish
When I press "Save" When I press "Save"
And I wait
Then I should see "Landing page Test Landing page Simple has been created" Then I should see "Landing page Test Landing page Simple has been created"
And I should see "Simple text test" And I should see "Simple text test"
...@@ -305,6 +318,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -305,6 +318,7 @@ So that the "Landing page" will show up having paragrpahs of different types
Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Tabs" Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Tabs"
Given I am a logged in user with the "test_super_admin" user Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page" When I go to "node/add/landing_page"
And I wait
And I fill in "Test Landing page Tabs" for "Title" And I fill in "Test Landing page Tabs" for "Title"
And I fill in "Test Landing page description Tabs" for "Page description" And I fill in "Test Landing page description Tabs" for "Page description"
And I press the "Add" button And I press the "Add" button
...@@ -331,6 +345,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -331,6 +345,7 @@ So that the "Landing page" will show up having paragrpahs of different types
Then I should see "Tab Body" Then I should see "Tab Body"
And I fill in the rich text editor field "Text" with "Tab 1 - Body test" And I fill in the rich text editor field "Text" with "Tab 1 - Body test"
When I press "Save" When I press "Save"
And I wait
Then I should see "Landing page Test Landing page Tabs has been created" Then I should see "Landing page Test Landing page Tabs has been created"
And I should see "Tab 1" And I should see "Tab 1"
And I should see "Tab 1 - Body test" And I should see "Tab 1 - Body test"
...@@ -368,6 +383,7 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -368,6 +383,7 @@ So that the "Landing page" will show up having paragrpahs of different types
Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "WebForm" Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "WebForm"
Given I am a logged in user with the "test_super_admin" user Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page" When I go to "node/add/landing_page"
And I wait
And I fill in "Test Landing page WebForm" for "Title" And I fill in "Test Landing page WebForm" for "Title"
And I fill in "Test Landing page description WebForm" for "Page description" And I fill in "Test Landing page description WebForm" for "Page description"
And I press the "Add" button And I press the "Add" button
...@@ -378,4 +394,5 @@ So that the "Landing page" will show up having paragrpahs of different types ...@@ -378,4 +394,5 @@ So that the "Landing page" will show up having paragrpahs of different types
And I select "Contact" from "Webform" And I select "Contact" from "Webform"
And I wait And I wait
When I press "Save" When I press "Save"
And I wait
Then I should see "Landing page Test Landing page WebForm has been created" Then I should see "Landing page Test Landing page WebForm has been created"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment