jungleran / drupal-behat-contexts
用于与jhedstrom/drupalextension一起使用的额外behat上下文
v1.0.0
2020-02-06 15:45 UTC
Requires
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 not auto-updated.
Last update: 2024-09-28 11:38:52 UTC
README
本项目包含用于Drupal的Behat上下文。
这个仓库是做什么用的?
此仓库用于扩展由Drupal Behat Extension提供的默认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
用于指定不同的默认宽度和/或高度。