Drupal 8 distribution for Claro theme development
Includes Test node (cd_node
), Text fixtures (textfixtures
), Hebrew language
(lang_hebrew
) and Dev help (devhelp
) submodules.
composer config repositories.'zolhorvath/cd_core' github https://github.com/zolhorvath/cd_core.git
composer require zolhorvath/cd_core
Contains dashboard and markup generator modules with nightwatch.js tests.
composer config repositories.'zolhorvath/cd_tools' github https://github.com/zolhorvath/cd_tools.git
composer require zolhorvath/cd_tools
composer config repositories.'zolhorvath/clarodist' github https://github.com/zolhorvath/clarodist.git
composer require zolhorvath/clarodist
drush si clarodist
-
Installed Drupal instance with this profile.
-
java -jar selenium-server-standalone-[VERSION].jar -port 4444
Selenium on port 4444. -
Change dir to the root of this profile.
-
Copy
example.nightwatch.conf.js
asnightwatch.conf.js
and override env vars, for examplesettings.test_settings.default.launch_url
. -
yarn
Get NodeJs dependencies (recommended node v8), and... -
./node_modules/.bin/nightwatch
Create screenshots with the default env, which useschrome
, so it should be installed (and should be available for Selenium)Additional environments:
chrome
firefox
safari
How to enable Safari WebDriverchromeLinux
firefoxLinux
chromeWin
firefoxWin
ie11
edge
android
(with Chrome browser)iPhone5
./node_modules/.bin/nightwatch -e chrome,firefox,safari
To create screenshots in every defined env (parallelly)../node_modules/.bin/nightwatch tests/Nightwatch/Tests/textInputTest.js
To run only a single test. -
Screenshots will be saved to
reports/screenshots/[testName]
. -
Screenshots merge:
yarn ssmfm
- Incubator for Drupal 8 extension development A simple Grunt Drupal Tasks-based scaffolding tool what provides a flexible local environment for Drupal contrib extension development