この箇所を
paths:
- %paths.base%/features
以下のように書き換え
paths:
- features
これでnpm testしたら一応動いたけど、スクリーンショットが出力されてない…
————————-
> wordpress-behat@1.0.0 test C:\Users\■ユーザー名■\■ディレクトリパスなど■\vccw\boilerplate-behat-wordpress
vccw\boilerplate-behat-wordpress
> set NODE_ENV=production&&node bin/run-tests.js
Feature: Example Features
Scenario: Login as the “administrator” role # features\sample.feature:3
When I login as the “administrator” role # VCCW\Behat\Mink\WordPressExtension\Context\WordPressContext::login_as_the_role()
No html element found for the selector (‘#loginform’) (Exception)
And I am on “/wp-admin/” # Behat\MinkExtension\Context\MinkContext::visit()
Then I should see “Dashboard” # Behat\MinkExtension\Context\MinkContext::assertPageContainsText()
Scenario: Take a screenshot # features\sample.feature:9
Given the screen size is 1440×900 # VCCW\Behat\Mink\WordPressExtension\Context\WordPressContext::set_window_size()
And I login as the “administrator” role # VCCW\Behat\Mink\WordPressExtension\Context\WordPressContext::login_as_the_role()
No html element found for the selector (‘#loginform’) (Exception)
When I am on “/” # Behat\MinkExtension\Context\MinkContext::visit()
Then take a screenshot and save it to “_out/1440×900.png” # VCCW\Behat\Mink\WordPressExtension\Context\WordPressContext::take_a_screenshot()
When I am on “/wp-admin/” # Behat\MinkExtension\Context\MinkContext::visit()
Then take a screenshot and save it to “_out/1440×900-wp-admin.png” # VCCW\Behat\Mink\WordPressExtension\Context\WordPressContext::take_a_screenshot()
Given the screen size is 320×400 # VCCW\Behat\Mink\WordPressExtension\Context\WordPressContext::set_window_size()
When I am on “/” # Behat\MinkExtension\Context\MinkContext::visit()
Then take a screenshot and save it to “_out/320×400.png” # VCCW\Behat\Mink\WordPressExtension\Context\WordPressContext::take_a_screenshot()
When I am on “/wp-admin/” # Behat\MinkExtension\Context\MinkContext::visit()
Then take a screenshot and save it to “_out/320×400-wp-admin.png” # VCCW\Behat\Mink\WordPressExtension\Context\WordPressContext::take_a_screenshot()
もう一度 npm test します
———————–
> wordpress-behat@1.0.0 test C:\Users\■ユーザー名■\■ディレクトリパスなど■\vccw\boilerplate-behat-wordpress
> set NODE_ENV=production&&node bin/run-tests.js
Feature: Example Features
Scenario: Login as the “administrator” role # features\sample.feature:3
When I login as the “administrator” role # VCCW\Behat\Mink\WordPressExtenson\Context\WordPressContext::login_as_the_role()
And I am on “/wp-admin/” # Behat\MinkExtension\Context\MinContext::visit()
Then I should see “Dashboard” # Behat\MinkExtension\Context\MinContext::assertPageContainsText()
Scenario: Take a screenshot # featurs\sample.feature:9
Given the screen size is 1440×900 # VCCW\Bhat\Mink\WordPressExtension\Context\WordPressContext::set_window_size()
And I login as the “administrator” role # VCCW\Bhat\Mink\WordPressExtension\Context\WordPressContext::login_as_the_role()
When I am on “/” # Behat\inkExtension\Context\MinkContext::visit()
Then take a screenshot and save it to “_out/1440×900.png” # VCCW\Bhat\Mink\WordPressExtension\Context\WordPressContext::take_a_screenshot()
When I am on “/wp-admin/” # Behat\inkExtension\Context\MinkContext::visit()
Then take a screenshot and save it to “_out/1440×900-wp-admin.png” # VCCW\Bhat\Mink\WordPressExtension\Context\WordPressContext::take_a_screenshot()
Given the screen size is 320×400 # VCCW\Bhat\Mink\WordPressExtension\Context\WordPressContext::set_window_size()
When I am on “/” # Behat\inkExtension\Context\MinkContext::visit()
Then take a screenshot and save it to “_out/320×400.png” # VCCW\Bhat\Mink\WordPressExtension\Context\WordPressContext::take_a_screenshot()
When I am on “/wp-admin/” # Behat\inkExtension\Context\MinkContext::visit()
Then take a screenshot and save it to “_out/320×400-wp-admin.png” # VCCW\Bhat\Mink\WordPressExtension\Context\WordPressContext::take_a_screenshot()