You are here

behat.varbase.yml in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.5

File

behat.varbase.yml
View source
  1. default:
  2. autoload:
  3. '': %paths.base%/tests/features/bootstrap
  4. suites:
  5. default:
  6. paths:
  7. - %paths.base%/tests/features
  8. contexts:
  9. - VarbaseContext:
  10. parameters:
  11. varbase_users:
  12. webmaster: { email: 'webmaster@vardot.com', password: 'dD.123123ddd' }
  13. test_authenticated: { email: 'authenticated.test@vardot.com', password: 'dD.123123ddd' }
  14. test_editor: { email: 'editor.test@vardot.com', password: 'dD.123123ddd' }
  15. test_content_admin: { email: 'content.admin.test@vardot.com', password: 'dD.123123ddd' }
  16. test_seo_admin: { email: 'seo.admin.test@vardot.com', password: 'dD.123123ddd' }
  17. test_site_admin: { email: 'site.admin.test@vardot.com', password: 'dD.123123ddd' }
  18. test_super_admin: { email: 'super.admin.test@vardot.com', password: 'dD.123123ddd' }
  19. - SelectorsContext:
  20. parameters:
  21. selectors:
  22. ## Add all css selectors which you will use in most features.
  23. css:
  24. breadcrumb: ".breadcrumb"
  25. breadcrumb first link: ".breadcrumb li:nth-child(1) a"
  26. image button in rich text editor body field: "#cke_edit-body-und-0-value .cke_button__image"
  27. ## Add all XPath selectors which you will use in most features.
  28. xpath:
  29. page title: '//h1[contains(@class, "page-header")'
  30. textarea for body field: '//*[@id="edit-body-und-0-value"]'
  31. rich text editor for body field: '//iframe[@title="Rich Text Editor, edit-body-und-0-value"]'
  32. HTML editor for body field: '//*[@id="edit-body-und-0-value-aced"]'
  33. ## You can add list of selectorrs which you will use in most features.
  34. # But by loading them from files.
  35. files_path: "%paths.base%/tests/selectors/"
  36. files:
  37. - "varbase/front-end-selectors.yml"
  38. - "varbase/back-end-selectors.yml"
  39. - Drupal\DrupalExtension\Context\DrupalContext
  40. - Drupal\DrupalExtension\Context\DrushContext
  41. - Drupal\DrupalExtension\Context\MessageContext
  42. - Drupal\DrupalExtension\Context\MinkContext
  43. - Drupal\DrupalExtension\Context\MarkupContext
  44. - behatch:context:browser:
  45. timeout: 4
  46. - behatch:context:debug:
  47. screenshotDir: "%paths.base%/tests/screenshots/"
  48. - behatch:context:json:
  49. evaluationMode: javascript
  50. - behatch:context:system:
  51. root: "../../"
  52. - behatch:context:table
  53. - behatch:context:xml
  54. paths:
  55. features: %paths.base%/tests/features
  56. bootstrap: %paths.base%/tests/features/bootstrap
  57. formatters:
  58. pretty:
  59. html:
  60. output_path: "%paths.base%/tests/reports/"
  61. extensions:
  62. Behat\MinkExtension:
  63. files_path: "%paths.base%/tests/assets/"
  64. goutte: ~
  65. zombie: ~
  66. selenium2:
  67. wd_host: 127.0.0.1:4445/wd/hub
  68. capabilities:
  69. # browser: 'firefox'
  70. browser: 'chrome'
  71. # browser: 'phantomjs'
  72. nativeEvents: true
  73. base_url: 'http://127.0.0.1:8080'
  74. # browser_name: 'firefox'
  75. browser_name: 'chrome'
  76. # browser_name: 'phantomjs'
  77. javascript_session: selenium2
  78. Drupal\DrupalExtension:
  79. blackbox: ~
  80. api_driver: 'drupal'
  81. region_map:
  82. content: ".main-container"
  83. footer: "#footer"
  84. left header: "#header-left"
  85. right header: "#header-right"
  86. right sidebar: "#aside-region"
  87. field body: "#edit-body-wrapper"
  88. selectors:
  89. message_selector: '.messages'
  90. error_message_selector: '.messages.error'
  91. success_message_selector: '.messages.status'
  92. warning_message_selector: '.messages.warning'
  93. Behatch\Extension: ~
  94. emuse\BehatHTMLFormatter\BehatHTMLFormatterExtension:
  95. name: html
  96. renderer: Twig,Behat2
  97. file_name: index
  98. print_args: false
  99. print_outp: false
  100. loop_break: false