Merge branch 'master' of git://github.com/Behat/MinkExtension

This commit is contained in:
Peter Schultz
2013-03-04 18:48:25 +01:00
8 changed files with 200 additions and 119 deletions

View File

@@ -4,12 +4,18 @@ php:
- 5.3
- 5.4
env:
- SYMFONY_VERSION='2.1.*'
- SYMFONY_VERSION='2.2.*@dev'
branches:
only:
- master
before_script:
- curl http://getcomposer.org/installer | php
- php composer.phar install --dev
- php composer.phar require --no-update symfony/symfony=$SYMFONY_VERSION
- php composer.phar install --dev --prefer-source
- export PATH=./vendor/bin:$PATH
script: vendor/bin/behat -fprogress
script: behat -fprogress

View File

@@ -12,19 +12,24 @@
}
],
"minimum-stability": "dev",
"require": {
"php": ">=5.3.2",
"behat/behat": ">=2.4.0,<2.5.0",
"behat/mink": ">=1.4.0,<1.5.0"
"behat/behat": ">=2.4,<2.5-dev",
"behat/mink": ">=1.4,<1.5-dev"
},
"require-dev": {
"behat/mink-goutte-driver": "*"
"fabpot/goutte": "1.0.*@dev",
"behat/mink-goutte-driver": "1.0.*"
},
"autoload": {
"psr-0": { "Behat\\MinkExtension": "src/" }
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
}
}

View File

@@ -2,133 +2,157 @@
<file original="global" source-language="en" target-language="de" datatype="plaintext">
<header />
<body>
<trans-unit id="i-am-on-homepage">
<source><![CDATA[/^(?:|I )am on (?:|the )homepage$/]]></source>
<target><![CDATA[/^(?:|ich )bin (?:|ich )auf (?:|der )Startseite$/]]></target>
</trans-unit>
<trans-unit id="i-go-to-homepage">
<source><![CDATA[/^(?:|I )go to (?:|the )homepage$/]]></source>
<target><![CDATA[/^(?:|ich )gehe (?:|ich )auf (?:|die )Startseite$/]]></target>
</trans-unit>
<trans-unit id="i-am-on-page">
<source><![CDATA[/^(?:|I )am on "(?P<page>[^"]+)"$/]]></source>
<target><![CDATA[/^(?:|ich )bin auf "(?P<page>[^"]+)"$/]]></target>
<target><![CDATA[/^(?:|ich )bin (?:|ich )auf "(?P<page>[^"]+)"$/]]></target>
</trans-unit>
<trans-unit id="i-go-to-page">
<source><![CDATA[/^(?:|I )go to "(?P<page>[^"]+)"$/]]></source>
<target><![CDATA[/^(?:|ich )gehe nach "(?P<page>[^"]+)"$/]]></target>
<target><![CDATA[/^(?:|ich )gehe (?:|ich )nach "(?P<page>[^"]+)"$/]]></target>
</trans-unit>
<trans-unit id="reload-the-page">
<source><![CDATA[/^(?:|I )reload the page$/]]></source>
<target><![CDATA[/^(?:|ich )aktualisiere die Seite$/]]></target>
<target><![CDATA[/^(?:|ich )aktualisiere (?:|ich )die Seite$/]]></target>
</trans-unit>
<trans-unit id="move-backward-one-page">
<source><![CDATA[/^(?:|I )move backward one page$/]]></source>
<target><![CDATA[/^(?:|ich )gehe eine Seite zurück$/]]></target>
<target><![CDATA[/^(?:|ich )gehe (?:|ich )eine Seite zurück$/]]></target>
</trans-unit>
<trans-unit id="move-forward-one-page">
<source><![CDATA[/^(?:|I )move forward one page$/]]></source>
<target><![CDATA[/^(?:|ich )gehe eine Seite vorwärts$/]]></target>
<target><![CDATA[/^(?:|ich )gehe (?:|ich )eine Seite vorwärts$/]]></target>
</trans-unit>
<trans-unit id="i-press-button">
<source><![CDATA[/^(?:|I )press "(?P<button>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )drücke "(?P<button>(?:[^"]|\\")*)"$/]]></target>
<target><![CDATA[/^(?:|ich )drücke (?:|ich )"(?P<button>(?:[^"]|\\")*)"$/]]></target>
</trans-unit>
<trans-unit id="i-follow-link">
<source><![CDATA[/^(?:|I )follow "(?P<link>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )folge "(?P<link>(?:[^"]|\\")*)"$/]]></target>
<target><![CDATA[/^(?:|ich )folge (?:|ich )"(?P<link>(?:[^"]|\\")*)"$/]]></target>
</trans-unit>
<trans-unit id="i-fill-in-field-with-value">
<source><![CDATA[/^(?:|I )fill in "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )gebe in das Feld "(?P<field>(?:[^"]|\\")*)" "(?P<value>(?:[^"]|\\")*)" ein$/]]></target>
<target><![CDATA[/^(?:|ich )gebe (?:|ich )in das Feld "(?P<field>(?:[^"]|\\")*)" "(?P<value>(?:[^"]|\\")*)" ein$/]]></target>
</trans-unit>
<trans-unit id="i-fill-in-value-for-field">
<source><![CDATA[/^(?:|I )fill in "(?P<value>(?:[^"]|\\")*)" for "(?P<field>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )gebe "(?P<value>(?:[^"]|\\")*)" in "(?P<field>(?:[^"]|\\")*)" ein$/]]></target>
<target><![CDATA[/^(?:|ich )gebe (?:|ich )"(?P<value>(?:[^"]|\\")*)" in "(?P<field>(?:[^"]|\\")*)" ein$/]]></target>
</trans-unit>
<trans-unit id="i-fill-in-the-following">
<source><![CDATA[/^(?:|I )fill in the following:$/]]></source>
<target><![CDATA[/^(?:|ich )gebe das folgende ein:$/]]></target>
<target><![CDATA[/^(?:|ich )gebe (?:|ich )das folgende ein:$/]]></target>
</trans-unit>
<trans-unit id="i-select-option-from-select">
<source><![CDATA[/^(?:|I )select "(?P<option>(?:[^"]|\\")*)" from "(?P<select>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )wähle "(?P<option>(?:[^"]|\\")*)" von "(?P<select>(?:[^"]|\\")*)"$/]]></target>
<target><![CDATA[/^(?:|ich )wähle (?:|ich )"(?P<option>(?:[^"]|\\")*)" von "(?P<select>(?:[^"]|\\")*)"$/]]></target>
</trans-unit>
<trans-unit id="i-additionally-select-option-from-select">
<source><![CDATA[/^(?:|I )additionally select "(?P<option>(?:[^"]|\\")*)" from "(?P<select>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )wähle zusätzlich "(?P<option>(?:[^"]|\\")*)" von "(?P<select>(?:[^"]|\\")*)"$/]]></target>
<target><![CDATA[/^(?:|ich )wähle (?:|ich )zusätzlich "(?P<option>(?:[^"]|\\")*)" von "(?P<select>(?:[^"]|\\")*)"$/]]></target>
</trans-unit>
<trans-unit id="i-check-option">
<source><![CDATA[/^(?:|I )check "(?P<option>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )aktiviere "(?P<option>(?:[^"]|\\")*)"$/]]></target>
<target><![CDATA[/^(?:|ich )aktiviere (?:|ich )"(?P<option>(?:[^"]|\\")*)"$/]]></target>
</trans-unit>
<trans-unit id="i-uncheck-option">
<source><![CDATA[/^(?:|I )uncheck "(?P<option>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )deaktiviere "(?P<option>(?:[^"]|\\")*)"$/]]></target>
<target><![CDATA[/^(?:|ich )deaktiviere (?:|ich )"(?P<option>(?:[^"]|\\")*)"$/]]></target>
</trans-unit>
<trans-unit id="i-attach-the-file-to-field">
<source><![CDATA[/^(?:|I )attach the file "(?P<path>[^"]*)" to "(?P<field>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )lade die Datei "(?P<path>[^"]*)" in "(?P<field>(?:[^"]|\\")*)"$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-text">
<source><![CDATA[/^(?:|I )should see "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )sollte "(?P<text>(?:[^"]|\\")*)" sehen$/]]></target>
</trans-unit>
<trans-unit id="the-response-should-contain">
<source><![CDATA[/^the response should contain "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^die Rückmeldung sollte "(?P<text>(?:[^"]|\\")*)" enthalten$/]]></target>
</trans-unit>
<trans-unit id="i-should-not-see-text">
<source><![CDATA[/^(?:|I )should not see "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )sollte nicht "(?P<text>(?:[^"]|\\")*)" sehen$/]]></target>
</trans-unit>
<trans-unit id="the-response-should-not-contain">
<source><![CDATA[/^the response should not contain "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^die Rückmeldung sollte nicht "(?P<text>(?:[^"]|\\")*)" enthalten$/]]></target>
</trans-unit>
<trans-unit id="the-field-should-contain-value">
<source><![CDATA[/^the "(?P<field>(?:[^"]|\\")*)" field should contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^das "(?P<field>(?:[^"]|\\")*)" Feld sollte "(?P<value>(?:[^"]|\\")*)" enthalten$/]]></target>
</trans-unit>
<trans-unit id="the-field-should-not-contain-value">
<source><![CDATA[/^the "(?P<field>(?:[^"]|\\")*)" field should not contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^das "(?P<field>(?:[^"]|\\")*)" Feld sollte nicht "(?P<value>(?:[^"]|\\")*)" enthalten$/]]></target>
</trans-unit>
<trans-unit id="the-checkbox-should-be-checked">
<source><![CDATA[/^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should be checked$/]]></source>
<target><![CDATA[/^die "(?P<checkbox>(?:[^"]|\\")*)" checkbox sollte aktiviert sein$/]]></target>
</trans-unit>
<trans-unit id="the-checkbox-should-not-be-checked">
<source><![CDATA[/^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should not be checked$/]]></source>
<target><![CDATA[/^die "(?P<checkbox>(?:[^"]|\\")*)" checkbox sollte nicht aktiviert sein$/]]></target>
<target><![CDATA[/^(?:|ich )lade (?:|ich )die Datei "(?P<path>[^"]*)" in "(?P<field>(?:[^"]|\\")*)"$/]]></target>
</trans-unit>
<trans-unit id="i-should-be-on-page">
<source><![CDATA[/^(?:|I )should be on "(?P<page>[^"]+)"$/]]></source>
<target><![CDATA[/^(?:|ich )sollte auf "(?P<page>[^"]+)" sein$/]]></target>
<target><![CDATA[/^(?:|ich )sollte (?:|ich )auf "(?P<page>[^"]+)" sein$/]]></target>
</trans-unit>
<trans-unit id="the-url-should-match">
<trans-unit id="the-url-should-match">
<source><![CDATA[/^the (?i)url(?-i) should match (?P<pattern>"([^"]|\\")*")$/]]></source>
<target><![CDATA[/^die Webadresse sollte mit (?P<pattern>"([^"]|\\")*") übereinstimmen$/]]></target>
</trans-unit>
<trans-unit id="the-element-should-contain">
<source><![CDATA[/^the "(?P<element>[^"]*)" element should contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^das "(?P<element>[^"]*)" Element sollte "(?P<value>(?:[^"]|\\")*)" enthalten$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-text-in-element">
<source><![CDATA[/^(?:|I )should see "(?P<text>(?:[^"]|\\")*)" in the "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^(?:|ich )sollte "(?P<text>(?:[^"]|\\")*)" im "(?P<element>[^"]*)" Element sehen$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-element">
<source><![CDATA[/^(?:|I )should see an? "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^(?:|ich )sollte ein "(?P<element>[^"]*)" Element sehen$/]]></target>
</trans-unit>
<trans-unit id="i-should-not-see-element">
<source><![CDATA[/^(?:|I )should not see an? "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^(?:|ich )sollte kein "(?P<element>[^"]*)" Element sehen$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-num-elements">
<source><![CDATA[/^(?:|I )should see (?P<num>\d+) "(?P<element>[^"]*)" elements?$/]]></source>
<target><![CDATA[/^(?:|ich )sollte (?P<num>\d+) "(?P<element>[^"]*)" Elemente? sehen$/]]></target>
<target><![CDATA[/^(?:|sollte )die Webadresse (?:|sollte )mit (?P<pattern>"([^"]|\\")*") übereinstimmen$/]]></target>
</trans-unit>
<trans-unit id="the-response-status-code-should-be">
<source><![CDATA[/^the response status code should be (?P<code>\d+)$/]]></source>
<target><![CDATA[/^die Status-Code-Rückmeldung sollte (?P<code>\d+) sein$/]]></target>
<target><![CDATA[/^(?:|sollte )die Status-Code-Rückmeldung (?:|sollte )(?P<code>\d+) sein$/]]></target>
</trans-unit>
<trans-unit id="the-response-status-code-should-not-be">
<source><![CDATA[/^the response status code should not be (?P<code>\d+)$/]]></source>
<target><![CDATA[/^die Status-Code-Rückmeldung sollte nicht (?P<code>\d+) sein$/]]></target>
<target><![CDATA[/^(?:|sollte )die Status-Code-Rückmeldung (?:|sollte )nicht (?P<code>\d+) sein$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-text">
<source><![CDATA[/^(?:|I )should see "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )sollte (?:|ich )"(?P<text>(?:[^"]|\\")*)" sehen$/]]></target>
</trans-unit>
<trans-unit id="i-should-not-see-text">
<source><![CDATA[/^(?:|I )should not see "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ich )sollte (?:|ich )nicht "(?P<text>(?:[^"]|\\")*)" sehen$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-text-matching">
<source><![CDATA[/^(?:|I )should see text matching (?P<pattern>"(?:[^"]|\\")*")$/]]></source>
<target><![CDATA[/^(?:|ich )sollte (?:|ich )folgenden Text sehen (?P<pattern>"(?:[^"]|\\")*")$/]]></target>
</trans-unit>
<trans-unit id="i-should-not-see-text-matching">
<source><![CDATA[/^(?:|I )should not see text matching (?P<pattern>"(?:[^"]|\\")*")$/]]></source>
<target><![CDATA[/^(?:|ich )sollte (?:|ich )nicht folgenden Text sehen (?P<pattern>"(?:[^"]|\\")*")$/]]></target>
</trans-unit>
<trans-unit id="the-response-should-contain">
<source><![CDATA[/^the response should contain "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|sollte )die Rückmeldung (?:|sollte )"(?P<text>(?:[^"]|\\")*)" enthalten$/]]></target>
</trans-unit>
<trans-unit id="the-response-should-not-contain">
<source><![CDATA[/^the response should not contain "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|sollte )die Rückmeldung (?:|sollte )nicht "(?P<text>(?:[^"]|\\")*)" enthalten$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-text-in-element">
<source><![CDATA[/^(?:|I )should see "(?P<text>(?:[^"]|\\")*)" in the "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^(?:|ich )sollte (?:|ich )"(?P<text>(?:[^"]|\\")*)" im "(?P<element>[^"]*)" Element sehen$/]]></target>
</trans-unit>
<trans-unit id="i-should-not-see-text-in-element">
<source><![CDATA[/^(?:|I )should not see "(?P<text>(?:[^"]|\\")*)" in the "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^(?:|ich )sollte (?:|ich )nicht "(?P<text>(?:[^"]|\\")*)" im "(?P<element>[^"]*)" Element sehen$/]]></target>
</trans-unit>
<trans-unit id="the-element-should-contain">
<source><![CDATA[/^the "(?P<element>[^"]*)" element should contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|sollte )das "(?P<element>[^"]*)" Element (?:|sollte )"(?P<value>(?:[^"]|\\")*)" enthalten$/]]></target>
</trans-unit>
<trans-unit id="the-element-should-not-contain">
<source><![CDATA[/^the "(?P<element>[^"]*)" element should not contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|sollte )das "(?P<element>[^"]*)" Element (?:|sollte )nicht "(?P<value>(?:[^"]|\\")*)" enthalten$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-element">
<source><![CDATA[/^(?:|I )should see an? "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^(?:|ich )sollte (?:|ich )ein "(?P<element>[^"]*)" Element sehen$/]]></target>
</trans-unit>
<trans-unit id="i-should-not-see-element">
<source><![CDATA[/^(?:|I )should not see an? "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^(?:|ich )sollte (?:|ich )kein "(?P<element>[^"]*)" Element sehen$/]]></target>
</trans-unit>
<trans-unit id="the-field-should-contain-value">
<source><![CDATA[/^the "(?P<field>(?:[^"]|\\")*)" field should contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|sollte )das "(?P<field>(?:[^"]|\\")*)" Feld (?:|sollte )"(?P<value>(?:[^"]|\\")*)" enthalten$/]]></target>
</trans-unit>
<trans-unit id="the-field-should-not-contain-value">
<source><![CDATA[/^the "(?P<field>(?:[^"]|\\")*)" field should not contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|sollte )das "(?P<field>(?:[^"]|\\")*)" Feld (?:|sollte )nicht "(?P<value>(?:[^"]|\\")*)" enthalten$/]]></target>
</trans-unit>
<trans-unit id="the-checkbox-should-be-checked">
<source><![CDATA[/^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should be checked$/]]></source>
<target><![CDATA[/^(?:|sollte )die "(?P<checkbox>(?:[^"]|\\")*)" checkbox (?:|sollte )aktiviert sein$/]]></target>
</trans-unit>
<trans-unit id="the-checkbox-should-not-be-checked">
<source><![CDATA[/^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should not be checked$/]]></source>
<target><![CDATA[/^(?:|sollte )die "(?P<checkbox>(?:[^"]|\\")*)" checkbox (?:|sollte )nicht aktiviert sein$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-num-elements">
<source><![CDATA[/^(?:|I )should see (?P<num>\d+) "(?P<element>[^"]*)" elements?$/]]></source>
<target><![CDATA[/^(?:|ich )sollte (?:|ich )(?P<num>\d+) "(?P<element>[^"]*)" Elemente? sehen$/]]></target>
</trans-unit>
<trans-unit id="print-last-response">
<source><![CDATA[/^print last response$/]]></source>

View File

@@ -4,151 +4,151 @@
<body>
<trans-unit id="i-am-on-page">
<source><![CDATA[/^(?:|I )am on "(?P<page>[^"]+)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーは )"(?P<page>[^\s]+)" を表示している$/]]></target>
<target><![CDATA[/^(?:|ユーザーは )"(?P<page>[^\s]+)" を表示している$/u]]></target>
</trans-unit>
<trans-unit id="i-go-to-page">
<source><![CDATA[/^(?:|I )go to "(?P<page>[^"]+)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )"(?P<page>[^\s]+)" へ移動する$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )"(?P<page>[^\s]+)" へ移動する$/u]]></target>
</trans-unit>
<trans-unit id="reload-the-page">
<source><![CDATA[/^(?:|I )reload the page$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )ページをリロードする$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )ページをリロードする$/u]]></target>
</trans-unit>
<trans-unit id="move-backward-one-page">
<source><![CDATA[/^(?:|I )move backward one page$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )履歴の前のページに戻る$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )履歴の前のページに戻る$/u]]></target>
</trans-unit>
<trans-unit id="move-forward-one-page">
<source><![CDATA[/^(?:|I )move forward one page$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )履歴の次のページヘ進む$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )履歴の次のページヘ進む$/u]]></target>
</trans-unit>
<trans-unit id="i-press-button">
<source><![CDATA[/^(?:|I )press "(?P<button>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )"(?P<button>(?:[^"]|\\")*)" ボタンをクリックする$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )"(?P<button>(?:[^"]|\\")*)" ボタンをクリックする$/u]]></target>
</trans-unit>
<trans-unit id="i-follow-link">
<source><![CDATA[/^(?:|I )follow "(?P<link>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )"(?P<link>(?:[^"]|\\")*)" のリンク先へ移動する$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )"(?P<link>(?:[^"]|\\")*)" のリンク先へ移動する$/u]]></target>
</trans-unit>
<trans-unit id="i-fill-in-field-with-value">
<source><![CDATA[/^(?:|I )fill in "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )"(?P<field>(?:[^"]|\\")*)" フィールドに "(?P<value>(?:[^"]|\\")*)" と入力する$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )"(?P<field>(?:[^"]|\\")*)" フィールドに "(?P<value>(?:[^"]|\\")*)" と入力する$/u]]></target>
</trans-unit>
<trans-unit id="i-fill-in-value-for-field">
<source><![CDATA[/^(?:|I )fill in "(?P<value>(?:[^"]|\\")*)" for "(?P<field>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )"(?P<value>(?:[^"]|\\")*)" という値を "(?P<field>(?:[^"]|\\")*)" に入力する$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )"(?P<value>(?:[^"]|\\")*)" という値を "(?P<field>(?:[^"]|\\")*)" に入力する$/u]]></target>
</trans-unit>
<trans-unit id="i-fill-in-the-following">
<source><![CDATA[/^(?:|I )fill in the following:$/]]></source>
<target><![CDATA[/^(?:|ユーザーが)次のように入力する:$/]]></target>
<target><![CDATA[/^(?:|ユーザーが)次のように入力する:$/u]]></target>
</trans-unit>
<trans-unit id="i-select-option-from-select">
<source><![CDATA[/^(?:|I )select "(?P<option>(?:[^"]|\\")*)" from "(?P<select>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )"(?P<option>(?:[^"]|\\")*)" という値を "(?P<select>(?:[^"]|\\")*)" から選択する$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )"(?P<option>(?:[^"]|\\")*)" という値を "(?P<select>(?:[^"]|\\")*)" から選択する$/u]]></target>
</trans-unit>
<trans-unit id="i-additionally-select-option-from-select">
<source><![CDATA[/^(?:|I )additionally select "(?P<option>(?:[^"]|\\")*)" from "(?P<select>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )"(?P<option>(?:[^"]|\\")*)" という値を "(?P<select>(?:[^"]|\\")*)" から追加で選択する$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )"(?P<option>(?:[^"]|\\")*)" という値を "(?P<select>(?:[^"]|\\")*)" から追加で選択する$/u]]></target>
</trans-unit>
<trans-unit id="i-check-option">
<source><![CDATA[/^(?:|I )check "(?P<option>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )"(?P<option>(?:[^"]|\\")*)" にチェックをつける$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )"(?P<option>(?:[^"]|\\")*)" にチェックをつける$/u]]></target>
</trans-unit>
<trans-unit id="i-uncheck-option">
<source><![CDATA[/^(?:|I )uncheck "(?P<option>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )"(?P<option>(?:[^"]|\\")*)" のチェックをはずす$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )"(?P<option>(?:[^"]|\\")*)" のチェックをはずす$/u]]></target>
</trans-unit>
<trans-unit id="i-attach-the-file-to-field">
<source><![CDATA[/^(?:|I )attach the file "(?P<path>[^"]*)" to "(?P<field>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーが)パス "(?P<path>[^"]*)" にあるファイルを "(?P<field>(?:[^"]|\\")*)" に添付する$/]]></target>
<target><![CDATA[/^(?:|ユーザーが)パス "(?P<path>[^"]*)" にあるファイルを "(?P<field>(?:[^"]|\\")*)" に添付する$/u]]></target>
</trans-unit>
<trans-unit id="i-should-see-text">
<source><![CDATA[/^(?:|I )should see "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|画面に )"(?P<text>(?:[^"]|\\")*)" と表示されていること$/]]></target>
<target><![CDATA[/^(?:|画面に )"(?P<text>(?:[^"]|\\")*)" と表示されていること$/u]]></target>
</trans-unit>
<trans-unit id="the-response-should-contain">
<source><![CDATA[/^the response should contain "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^レスポンスに "(?P<text>(?:[^"]|\\")*)" が含まれていること$/]]></target>
<target><![CDATA[/^レスポンスに "(?P<text>(?:[^"]|\\")*)" が含まれていること$/u]]></target>
</trans-unit>
<trans-unit id="i-should-not-see-text">
<source><![CDATA[/^(?:|I )should not see "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|画面に )"(?P<text>(?:[^"]|\\")*)" と表示されていないこと$/]]></target>
<target><![CDATA[/^(?:|画面に )"(?P<text>(?:[^"]|\\")*)" と表示されていないこと$/u]]></target>
</trans-unit>
<trans-unit id="the-response-should-not-contain">
<source><![CDATA[/^the response should not contain "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^レスポンスに "(?P<text>(?:[^"]|\\")*)" が含まれていないこと$/]]></target>
<target><![CDATA[/^レスポンスに "(?P<text>(?:[^"]|\\")*)" が含まれていないこと$/u]]></target>
</trans-unit>
<trans-unit id="the-field-should-contain-value">
<source><![CDATA[/^the "(?P<field>(?:[^"]|\\")*)" field should contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^"(?P<field>(?:[^"]|\\")*)" フィールドに "(?P<value>(?:[^"]|\\")*)" が含まれていること$/]]></target>
<target><![CDATA[/^"(?P<field>(?:[^"]|\\")*)" フィールドに "(?P<value>(?:[^"]|\\")*)" が含まれていること$/u]]></target>
</trans-unit>
<trans-unit id="the-field-should-not-contain-value">
<source><![CDATA[/^the "(?P<field>(?:[^"]|\\")*)" field should not contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^"(?P<field>(?:[^"]|\\")*)" フィールドに "(?P<value>(?:[^"]|\\")*)" が含まれていないこと$/]]></target>
<target><![CDATA[/^"(?P<field>(?:[^"]|\\")*)" フィールドに "(?P<value>(?:[^"]|\\")*)" が含まれていないこと$/u]]></target>
</trans-unit>
<trans-unit id="the-checkbox-should-be-checked">
<source><![CDATA[/^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should be checked$/]]></source>
<target><![CDATA[/^チェックボックス "(?P<checkbox>(?:[^"]|\\")*)" のチェックがついていること$/]]></target>
<target><![CDATA[/^チェックボックス "(?P<checkbox>(?:[^"]|\\")*)" のチェックがついていること$/u]]></target>
</trans-unit>
<trans-unit id="the-checkbox-should-not-be-checked">
<source><![CDATA[/^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should not be checked$/]]></source>
<target><![CDATA[/^チェックボックス "(?P<checkbox>(?:[^"]|\\")*)" のチェックがはずれていること$/]]></target>
<target><![CDATA[/^チェックボックス "(?P<checkbox>(?:[^"]|\\")*)" のチェックがはずれていること$/u]]></target>
</trans-unit>
<trans-unit id="i-should-be-on-page">
<source><![CDATA[/^(?:|I )should be on "(?P<page>[^"]+)"$/]]></source>
<target><![CDATA[/^(?:|ユーザーが )(?P<page>[^\s]+) を表示していること$/]]></target>
<target><![CDATA[/^(?:|ユーザーが )(?P<page>[^\s]+) を表示していること$/u]]></target>
</trans-unit>
<trans-unit id="the-url-should-match">
<source><![CDATA[/^the (?i)url(?-i) should match (?P<pattern>"([^"]|\\")*")$/]]></source>
<target><![CDATA[/^(?i)url(?-i)が (?P<pattern>"([^"]|\\")*") にマッチすること$/]]></target>
<target><![CDATA[/^(?i)url(?-i)が (?P<pattern>"([^"]|\\")*") にマッチすること$/u]]></target>
</trans-unit>
<trans-unit id="the-element-should-contain">
<source><![CDATA[/^the "(?P<element>[^"]*)" element should contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^"(?P<element>[^"]*)" エレメントに "(?P<value>(?:[^"]|\\")*)" という値が含まれていること$/]]></target>
<target><![CDATA[/^"(?P<element>[^"]*)" エレメントに "(?P<value>(?:[^"]|\\")*)" という値が含まれていること$/u]]></target>
</trans-unit>
<trans-unit id="i-should-see-text-in-element">
<source><![CDATA[/^(?:|I )should see "(?P<text>(?:[^"]|\\")*)" in the "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^"(?P<element>[^"]*)" エレメントに "(?P<text>(?:[^"]|\\")*)" と表示されていること$/]]></target>
<target><![CDATA[/^"(?P<element>[^"]*)" エレメントに "(?P<text>(?:[^"]|\\")*)" と表示されていること$/u]]></target>
</trans-unit>
<trans-unit id="i-should-not-see-text-in-element">
<source><![CDATA[/^(?:|I )should not see "(?P<text>(?:[^"]|\\")*)" in the "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^"(?P<element>[^"]*)" エレメントに "(?P<text>(?:[^"]|\\")*)" と表示されていないこと$/]]></target>
<target><![CDATA[/^"(?P<element>[^"]*)" エレメントに "(?P<text>(?:[^"]|\\")*)" と表示されていないこと$/u]]></target>
</trans-unit>
<trans-unit id="i-should-see-element">
<source><![CDATA[/^(?:|I )should see an? "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^(?:|画面に )"(?P<element>[^"]*)" エレメントが表示されていること$/]]></target>
<target><![CDATA[/^(?:|画面に )"(?P<element>[^"]*)" エレメントが表示されていること$/u]]></target>
</trans-unit>
<trans-unit id="i-should-not-see-element">
<source><![CDATA[/^(?:|I )should not see an? "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^(?:|画面に )"(?P<element>[^"]*)" エレメントが表示されていないこと$/]]></target>
<target><![CDATA[/^(?:|画面に )"(?P<element>[^"]*)" エレメントが表示されていないこと$/u]]></target>
</trans-unit>
<trans-unit id="i-should-see-num-elements">
<source><![CDATA[/^(?:|I )should see (?P<num>\d+) "(?P<element>[^"]*)" elements?$/]]></source>
<target><![CDATA[/^(?:|画面に )(?P<num>\d+) 個の "(?P<element>[^"]*)" エレメントが表示されていること$/]]></target>
<target><![CDATA[/^(?:|画面に )(?P<num>\d+) 個の "(?P<element>[^"]*)" エレメントが表示されていること$/u]]></target>
</trans-unit>
<trans-unit id="the-response-status-code-should-be">
<source><![CDATA[/^the response status code should be (?P<code>\d+)$/]]></source>
<target><![CDATA[/^レスポンスコードが (?P<code>\d+) であること$/]]></target>
<target><![CDATA[/^レスポンスコードが (?P<code>\d+) であること$/u]]></target>
</trans-unit>
<trans-unit id="the-response-status-code-should-not-be">
<source><![CDATA[/^the response status code should not be (?P<code>\d+)$/]]></source>
<target><![CDATA[/^レスポンスコードが (?P<code>\d+) ではないこと$/]]></target>
<target><![CDATA[/^レスポンスコードが (?P<code>\d+) ではないこと$/u]]></target>
</trans-unit>
<trans-unit id="print-last-response">
<source><![CDATA[/^print last response$/]]></source>
<target><![CDATA[/^最後のレスポンスを表示$/]]></target>
<target><![CDATA[/^最後のレスポンスを表示$/u]]></target>
</trans-unit>
<trans-unit id="show-last-response">
<source><![CDATA[/^show last response$/]]></source>
<target><![CDATA[/^最後のレスポンスをブラウザで表示$/]]></target>
<target><![CDATA[/^最後のレスポンスをブラウザで表示$/u]]></target>
</trans-unit>
<trans-unit id="-should-see-text-matching">
<source><![CDATA[/^(?:|I )should see text matching (?P<pattern>"(?:[^"]|\\")*")$/]]></source>
<target><![CDATA[/^(?:|画面に )"(?P<pattern>"(?:[^"]|\\")*")" にマッチするテキストが表示されていること$/]]></target>
<target><![CDATA[/^(?:|画面に )"(?P<pattern>"(?:[^"]|\\")*")" にマッチするテキストが表示されていること$/u]]></target>
</trans-unit>
<trans-unit id="-should-not-see-text-matching">
<source><![CDATA[/^(?:|I )should not see text matching (?P<pattern>"(?:[^"]|\\")*")$/]]></source>
<target><![CDATA[/^(?:|画面に )"(?P<pattern>"(?:[^"]|\\")*")" にマッチするテキストが表示されていないこと$/]]></target>
<target><![CDATA[/^(?:|画面に )"(?P<pattern>"(?:[^"]|\\")*")" にマッチするテキストが表示されていないこと$/u]]></target>
</trans-unit>
</body>
</file>

View File

@@ -2,9 +2,17 @@
<file original="global" source-language="en" target-language="nl" datatype="plaintext">
<header />
<body>
<trans-unit id="i-am-homepage">
<source><![CDATA[/^(?:|I )am on (?:|the )homepage$/]]></source>
<target><![CDATA[/^dat (?:|ik )op de homepage ben$/]]></target>
</trans-unit>
<trans-unit id="i-go-to-homepage">
<source><![CDATA[/^(?:|I )go to (?:|the )homepage$/]]></source>
<target><![CDATA[/^(?:|ik )naar de homepage ga$/]]></target>
</trans-unit>
<trans-unit id="i-am-on-page">
<source><![CDATA[/^(?:|I )am on "(?P<page>[^"]+)"$/]]></source>
<target><![CDATA[/^dat ik op "(?P<page>[^"]+)" ben$/]]></target>
<target><![CDATA[/^dat (?:|ik )op "(?P<page>[^"]+)" ben$/]]></target>
</trans-unit>
<trans-unit id="i-go-to-page">
<source><![CDATA[/^(?:|I )go to "(?P<page>[^"]+)"$/]]></source>
@@ -46,6 +54,10 @@
<source><![CDATA[/^(?:|I )select "(?P<option>(?:[^"]|\\")*)" from "(?P<select>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ik )de optie "(?P<option>(?:[^"]|\\")*)" selecteer voor "(?P<select>(?:[^"]|\\")*)"$/]]></target>
</trans-unit>
<trans-unit id="i-additionally-select-option-from-select">
<source><![CDATA[/^(?:|I )additionally select "(?P<option>(?:[^"]|\\")*)" from "(?P<select>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ik )daarnaast de optie "(?P<option>(?:[^"]|\\")*)" selecteer voor "(?P<select>(?:[^"]|\\")*)"$/]]></target>
</trans-unit>
<trans-unit id="i-check-option">
<source><![CDATA[/^(?:|I )check "(?P<option>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^(?:|ik )"(?P<option>(?:[^"]|\\")*)" aanvink$/]]></target>
@@ -62,6 +74,14 @@
<source><![CDATA[/^(?:|I )should see "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^moet (?:|ik )"(?P<text>(?:[^"]|\\")*)" zien$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-text-matching">
<source><![CDATA[/^(?:|I )should see text matching (?P<pattern>"(?:[^"]|\\")*")$/]]></source>
<target><![CDATA[/^moet (?:|ik )de volgende tekst zien (?P<pattern>"(?:[^"]|\\")*")$/]]></target>
</trans-unit>
<trans-unit id="i-should-not-see-text-matching">
<source><![CDATA[/^(?:|I )should not see text matching (?P<pattern>"(?:[^"]|\\")*")$/]]></source>
<target><![CDATA[/^moet (?:|ik )de volgende tekst niet zien (?P<pattern>"(?:[^"]|\\")*")$/]]></target>
</trans-unit>
<trans-unit id="the-response-should-contain">
<source><![CDATA[/^the response should contain "(?P<text>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^moet het antwoord "(?P<text>(?:[^"]|\\")*)" bevatten$/]]></target>
@@ -102,10 +122,18 @@
<source><![CDATA[/^the "(?P<element>[^"]*)" element should contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^moet het element "(?P<element>[^"]*)" "(?P<value>(?:[^"]|\\")*)" bevatten$/]]></target>
</trans-unit>
<trans-unit id="the-element-should-not-contain">
<source><![CDATA[/^the "(?P<element>[^"]*)" element should not contain "(?P<value>(?:[^"]|\\")*)"$/]]></source>
<target><![CDATA[/^moet het element "(?P<element>[^"]*)" niet "(?P<value>(?:[^"]|\\")*)" bevatten $/]]></target>
</trans-unit>
<trans-unit id="i-should-see-text-in-element">
<source><![CDATA[/^(?:|I )should see "(?P<text>(?:[^"]|\\")*)" in the "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^moet (?:|ik )"(?P<text>(?:[^"]|\\")*)" zien in "(?P<element>[^"]*)"$/]]></target>
</trans-unit>
<trans-unit id="i-should-not-see-text-in-element">
<source><![CDATA[/^(?:|I )should not see "(?P<text>(?:[^"]|\\")*)" in the "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^moet (?:|ik )de tekst "(?P<text>(?:[^"]|\\")*)" niet zien in "(?P<element>[^"]*)"$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-element">
<source><![CDATA[/^(?:|I )should see an? "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^moet (?:|ik )een element "(?P<element>[^"]*)" zien$/]]></target>
@@ -114,10 +142,18 @@
<source><![CDATA[/^(?:|I )should not see an? "(?P<element>[^"]*)" element$/]]></source>
<target><![CDATA[/^moet (?:|ik )een element "(?P<element>[^"]*)" niet zien$/]]></target>
</trans-unit>
<trans-unit id="i-should-see-num-elements">
<source><![CDATA[/^(?:|I )should see (?P<num>\d+) "(?P<element>[^"]*)" elements?$/]]></source>
<target><![CDATA[/^moet (?:|ik ) (?P<num>\d+) "(?P<element>[^"]*)" elementen zien$/]]></target>
</trans-unit>
<trans-unit id="the-response-status-code-should-be">
<source><![CDATA[/^the response status code should be (?P<code>\d+)$/]]></source>
<target><![CDATA[/^moet de statuscode van het antwoord (?P<code>\d+) zijn$/]]></target>
</trans-unit>
<trans-unit id="the-response-status-code-should-not-be">
<source><![CDATA[/^the response status code should not be (?P<code>\d+)$/]]></source>
<target><![CDATA[/^moet de statuscode van het antwoord niet (?P<code>\d+) zijn$/]]></target>
</trans-unit>
<trans-unit id="print-last-response">
<source><![CDATA[/^print last response$/]]></source>
<target><![CDATA[/^print het laatste antwoord$/]]></target>

View File

@@ -5,7 +5,8 @@ namespace Behat\MinkExtension\Context;
use Behat\Behat\Context\BehatContext;
use Behat\Mink\Mink,
Behat\Mink\WebAssert;
Behat\Mink\WebAssert,
Behat\Mink\Session;
/*
* This file is part of the Behat\MinkExtension.
@@ -120,7 +121,7 @@ class RawMinkContext extends BehatContext implements MinkAwareInterface
// Under Cygwin, uniqid with more_entropy must be set to true.
// No effect in other environments.
$filename = $filename ?: sprintf('%s_%s_%s.%s', $this->getMinkParameter('browser_name'), date('c'), uniqid('', true), 'png');
$filepath = $filepath ? $filepath : ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
$filepath = $filepath ? $filepath : (ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir());
file_put_contents($filepath . '/' . $filename, $this->getSession()->getScreenshot());
}
}

View File

@@ -98,6 +98,10 @@ class Extension implements ExtensionInterface
$minkParameters[$ns] = $tlValue;
} else {
foreach ($tlValue as $name => $value) {
if ('guzzle_parameters' === $name) {
$value['redirect.disable'] = true;
}
$container->setParameter("behat.mink.$ns.$name", $value);
}
}

View File

@@ -7,6 +7,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Behat\Behat\Event\StepEvent;
use Behat\Mink\Mink;
use Behat\Mink\Exception\Exception as MinkException;
/*
* This file is part of the Behat\MinkExtension.
@@ -79,6 +80,10 @@ class FailureShowListener implements EventSubscriberInterface
if (StepEvent::FAILED !== $event->getResult()) {
return;
}
if (!$event->getException() instanceof MinkException) {
return;
}
if (null === $this->parameters['show_cmd']) {
throw new \RuntimeException('Set "show_cmd" parameter in behat.yml to be able to open page in browser (ex.: "show_cmd: open %s")');