Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • project/varbase
  • issue/varbase-3087001
  • issue/varbase-3215888
  • issue/varbase-3245763
  • issue/varbase-3253354
  • issue/varbase-3256661
  • issue/varbase-3258740
  • issue/varbase-3259665
  • issue/varbase-3260809
  • issue/varbase-3263378
  • issue/varbase-3266504
  • issue/varbase-3269421
  • issue/varbase-3269809
  • issue/varbase-3270457
  • issue/varbase-3276911
  • issue/varbase-3277590
  • issue/varbase-3285082
  • issue/varbase-3292847
  • issue/varbase-3293400
  • issue/varbase-3293696
  • issue/varbase-3298632
  • issue/varbase-3301451
  • issue/varbase-3318323
  • issue/varbase-3318847
  • issue/varbase-3346247
  • issue/varbase-3391550
  • issue/varbase-3443948
  • issue/varbase-3471788
  • issue/varbase-3479338
  • issue/varbase-3484640
30 results
Show changes
Commits on Source (2)
......@@ -43,6 +43,7 @@ default:
- Drupal\DrupalExtension\Context\MessageContext
- Drupal\DrupalExtension\Context\MinkContext
- Drupal\DrupalExtension\Context\MarkupContext
- DrevOps\BehatScreenshotExtension\Context\ScreenshotContext
formatters:
pretty:
html:
......@@ -114,3 +115,8 @@ default:
print_args: false
print_outp: false
loop_break: false
DrevOps\BehatScreenshotExtension:
dir: '%paths.base%/tests/screenshots'
fail: true
fail_prefix: 'failed_'
purge: false
......@@ -70,7 +70,8 @@
"drupal/core-dev": "~9.0",
"drush/drush": "~10.0 || ~11.0",
"drupal/drupal-extension": "~4.0",
"emuse/behat-html-formatter": "^0.2.0"
"emuse/behat-html-formatter": "^0.2.0",
"drevops/behat-screenshot": "~1.0"
},
"config": {
"bin-dir": "bin/",
......
......@@ -26,6 +26,26 @@ composer require --dev emuse/behat-html-formatter:^0.2.0
```
### Add additional testing packages
```
cd path to yout 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
Edit the behat.yml file, which is located in:
`path to your files of the project/PROJECT_DIR_NAME/docroot/profiles/varbase/behat.yml`
- to have DrevOps\BehatScreenshotExtension\Context\ScreenshotContext under contexts
- to have DrevOps\BehatScreenshotExtension:
dir: '%paths.base%/tests/screenshots'
fail: true
fail_prefix: 'failed_'
purge: false
under extensions
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.
......@@ -104,7 +124,7 @@ To delete testing users use
## 1. Change the base url
Edit the behat.yml file, which located in:
Edit the behat.yml file, which is located in:
`path to your files of the project/PROJECT_DIR_NAME/docroot/profiles/varbase/behat.yml`
to the domain or the local virtual domain.
```
......
......@@ -4,7 +4,7 @@ The welcome message is made possible by having Varbase Tour module
@javascript @local @development @staging @production
Scenario: Check if welcome message is enabled
Given I am a logged in user with the "webmaster" user
And I go to "admin/config/varbase/settings"
And I go to "/admin/config/varbase/settings"
Then I should see "Varbase general settings"
And I should see "Allow site to show welcome message"
And I check the box "Allow site to show welcome message"
......@@ -15,9 +15,11 @@ The welcome message is made possible by having Varbase Tour module
@javascript @local @development @staging @production
Scenario: Check if welcome message and tour are displayed
Given I am a logged in user with the "webmaster" user
And I go to "?welcome"
And I go to "/?welcome"
And I wait 2 seconds
And I scroll to the bottom
Then I should see "Welcome to "
And I should see " Get started "
And I should see "Get started"
When I click "Get started"
And I wait 2 seconds
Then I should see "Tour Switch"
......@@ -33,7 +35,7 @@ The welcome message is made possible by having Varbase Tour module
@javascript @local @development @staging @production
Scenario: Check if welcome message is disabled after closing it
Given I am a logged in user with the "webmaster" user
And I go to "admin/config/varbase/settings"
And I go to "/admin/config/varbase/settings"
Then I should see "Varbase general settings"
And I should see "Allow site to show welcome message"
And the "Allow site to show welcome message" checkbox is unchecked
......@@ -34,8 +34,7 @@ So that the "Landing (Layout Builder) page" will show up having the listed secti
And I should not see "Bootstrap 10 Cols"
And I should not see "Bootstrap 11 Cols"
And I should not see "Bootstrap 12 Cols"
And I scroll to the top of the page
And I wait 1s
When I scroll to the top of the page
Then I should see "Save layout"
When I press the "Save layout" button
And I wait
......
......@@ -63,6 +63,7 @@ As a site admin, I will create a new landing page, add a section with different
Then I should see "Test Rich text in 2 cols section, col 2"
When I scroll to the top of the page
And I wait 2s
Then I should see "Save layout"
And I press the "Save layout" button
And I wait
......