Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing translations of Behat predefined steps (Phar install)
    text
    copied!<p>I've run some tests with the predefined step definitions of Mink Extension. They work as long as they're in english language. </p> <p>Now I've tried the following scenario with german steps:</p> <pre><code># language: de Funktionalität: Demo @javascript Szenario: Test 1 Angenommen I am on "/" Angenommen ich bin auf "/" ... </code></pre> <p>Behat now tells me that the german step definition is undefined, while the english version works.</p> <p>According to the CLI help, <code>behat --lang de -dl</code> should display the translated definitions, but it only shows me the english ones ...</p> <p>What am I doing wrong here?</p> <p>Edit: Here's a script to rebuild the scenario. It follows the install steps from the docs (<a href="http://extensions.behat.org/mink/#through-phar" rel="nofollow">http://extensions.behat.org/mink/#through-phar</a>) in a temporary directory and runs the test feature file.</p> <pre><code>#!/bin/bash set -e TEMPDIR=/tmp/behat-$$ mkdir $TEMPDIR cd $TEMPDIR curl http://behat.org/downloads/behat.phar &gt;behat.phar curl http://behat.org/downloads/mink.phar &gt;mink.phar curl http://behat.org/downloads/mink_extension.phar &gt;mink_extension.phar cat &gt;behat.yml &lt;&lt;EOF default: extensions: mink_extension.phar: mink_loader: 'mink.phar' base_url: 'http://behat.org' goutte: ~ EOF mkdir features cat &gt;features/test.feature &lt;&lt;EOF # language: de Funktionalität: Demo Szenario: Öffne Startseite DE + EN Angenommen I am on "/" Angenommen ich bin auf "/" EOF php behat.phar </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload