Forked from
project / varbase
676 commits behind the upstream repository.
-
Rajab Natshah authored
Issue #2928092: Changed Browser in [behat.varbase.yml, and .travis.yml] to work with selenium on [Travis-ci]
Rajab Natshah authoredIssue #2928092: Changed Browser in [behat.varbase.yml, and .travis.yml] to work with selenium on [Travis-ci]
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
behat.varbase.yml 4.02 KiB
default:
autoload:
'': %paths.base%/tests/features/bootstrap
suites:
default:
paths:
- %paths.base%/tests/features
contexts:
- VarbaseContext:
parameters:
varbase_users:
webmaster: { email: 'webmaster@vardot.com', password: 'dD.123123ddd' }
test_authenticated: { email: 'authenticated.test@vardot.com', password: 'dD.123123ddd' }
test_editor: { email: 'editor.test@vardot.com', password: 'dD.123123ddd' }
test_content_admin: { email: 'content.admin.test@vardot.com', password: 'dD.123123ddd' }
test_seo_admin: { email: 'seo.admin.test@vardot.com', password: 'dD.123123ddd' }
test_site_admin: { email: 'site.admin.test@vardot.com', password: 'dD.123123ddd' }
test_super_admin: { email: 'super.admin.test@vardot.com', password: 'dD.123123ddd' }
- SelectorsContext:
parameters:
selectors:
## Add all css selectors which you will use in most features.
css:
breadcrumb: ".breadcrumb"
breadcrumb first link: ".breadcrumb li:nth-child(1) a"
image button in rich text editor body field: "#cke_edit-body-und-0-value .cke_button__image"
## Add all XPath selectors which you will use in most features.
xpath:
page title: '//h1[contains(@class, "page-header")'
textarea for body field: '//*[@id="edit-body-und-0-value"]'
rich text editor for body field: '//iframe[@title="Rich Text Editor, edit-body-und-0-value"]'
HTML editor for body field: '//*[@id="edit-body-und-0-value-aced"]'
## You can add list of selectorrs which you will use in most features.
# But by loading them from files.
files_path: "%paths.base%/tests/selectors/"
files:
- "varbase/front-end-selectors.yml"
- "varbase/back-end-selectors.yml"
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\DrushContext
- Drupal\DrupalExtension\Context\MessageContext
- Drupal\DrupalExtension\Context\MinkContext
- Drupal\DrupalExtension\Context\MarkupContext
- behatch:context:browser:
timeout: 4
- behatch:context:debug:
screenshotDir: "%paths.base%/tests/screenshots/"
- behatch:context:json:
evaluationMode: javascript
- behatch:context:system:
root: "../../"
- behatch:context:table
- behatch:context:xml
paths:
features: %paths.base%/tests/features
bootstrap: %paths.base%/tests/features/bootstrap
formatters:
pretty:
html:
output_path: "%paths.base%/tests/reports/"
extensions:
Behat\MinkExtension:
files_path: "%paths.base%/tests/assets/"
goutte: ~
zombie: ~
selenium2:
wd_host: 127.0.0.1:4445/wd/hub
capabilities: