ordinadigitalservices / drupal-behat-contexts
与 jhedstrom/drupalextension 一起使用的额外 behat 上下文
dev-master
2019-04-04 07:17 UTC
Requires
- drupal/drupal-extension: ^3.4
Requires (Dev)
- phpmd/phpmd: ^2.6
Suggests
- drupal/entityqueue: Enables the use of the EntityQueueContext
- drupal/paragraphs: Enables the use of the ParagraphsContext
- drupal/profile: Enables the use of the ProfileContext
- drupal/search_api: Enables the use of the SearchContext
This package is auto-updated.
Last update: 2024-09-04 19:38:33 UTC
README
此项目包含用于 Drupal 的 Behat 上下文。
这个仓库是做什么用的?
此仓库用于扩展由 Drupal Behat 扩展 提供的默认 Behat 上下文。
如何进行设置?
通过 composer 安装,并将所需的上下文添加到您的 behat.yml
文件中。
上下文特定配置选项
某些上下文可以通过 behat.yml
文件进行配置。以下是对这些配置选项的文档。
\OrdinaDigitalServices\BrowserContext
BrowserContext
在每个场景开始时将浏览器窗口调整为 1024x768,除非指定其他方式。这可以通过在 behat.yml
中添加一些配置进行调整(配置文件为简略形式)
default:
suites:
default:
contexts:
- ...
- OrdinaDigitalServices\BrowserContext:
resizeOnScenarioStart: false
defaultWindowSize:
width: 1920
height: 1080
如你所见,有两个选项可以设置。一个布尔值 resizeOnScenarioStart
用于完全禁用调整大小,以及一个数组 defaultWindowSize
用于指定不同的默认宽度和/或高度。