@@ -114,6 +114,10 @@
|
|||||||
<source><![CDATA[/^(?:|I )should be on "(?P<page>[^"]+)"$/]]></source>
|
<source><![CDATA[/^(?:|I )should be on "(?P<page>[^"]+)"$/]]></source>
|
||||||
<target><![CDATA[/^(?:|je )devrais être sur "(?P<page>[^"]+)"$/]]></target>
|
<target><![CDATA[/^(?:|je )devrais être sur "(?P<page>[^"]+)"$/]]></target>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="i-should-be-on-homepage">
|
||||||
|
<source><![CDATA[/^(?:|I )should be on (?:|the )homepage$/]]></source>
|
||||||
|
<target><![CDATA[/^(?:|je )devrais être sur la page d'accueil$/]]></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>
|
<source><![CDATA[/^the (?i)url(?-i) should match (?P<pattern>"([^"]|\\")*")$/]]></source>
|
||||||
<target><![CDATA[/^l'(?i)url(?-i) devrait suivre le motif (?P<pattern>"([^"]|\\")*")$/]]></target>
|
<target><![CDATA[/^l'(?i)url(?-i) devrait suivre le motif (?P<pattern>"([^"]|\\")*")$/]]></target>
|
||||||
|
|||||||
@@ -197,6 +197,16 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface
|
|||||||
$this->assertSession()->addressEquals($this->locatePath($page));
|
$this->assertSession()->addressEquals($this->locatePath($page));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks, that current page is the homepage.
|
||||||
|
*
|
||||||
|
* @Then /^(?:|I )should be on (?:|the )homepage$/
|
||||||
|
*/
|
||||||
|
public function assertHomepage()
|
||||||
|
{
|
||||||
|
$this->assertSession()->addressEquals($this->locatePath('/'));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks, that current page PATH matches regular expression.
|
* Checks, that current page PATH matches regular expression.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -263,6 +263,16 @@ trait MinkDictionary
|
|||||||
$this->assertSession()->addressEquals($this->locatePath($page));
|
$this->assertSession()->addressEquals($this->locatePath($page));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks, that current page is the homepage.
|
||||||
|
*
|
||||||
|
* @Then /^(?:|I )should be on (?:|the )homepage$/
|
||||||
|
*/
|
||||||
|
public function assertHomepage()
|
||||||
|
{
|
||||||
|
$this->assertSession()->addressEquals($this->locatePath('/'));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks, that current page PATH matches regular expression.
|
* Checks, that current page PATH matches regular expression.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user