diff --git a/i18n/fr.xliff b/i18n/fr.xliff
index b196a44..9d92b7f 100644
--- a/i18n/fr.xliff
+++ b/i18n/fr.xliff
@@ -114,6 +114,10 @@
[^"]+)"$/]]>
[^"]+)"$/]]>
+
+
+
+
"([^"]|\\")*")$/]]>
"([^"]|\\")*")$/]]>
diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php
index ea8bfc1..f5ea75b 100644
--- a/src/Behat/MinkExtension/Context/MinkContext.php
+++ b/src/Behat/MinkExtension/Context/MinkContext.php
@@ -197,6 +197,16 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface
$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.
*
diff --git a/src/Behat/MinkExtension/Context/MinkDictionary.php b/src/Behat/MinkExtension/Context/MinkDictionary.php
index a36aef3..aab8fef 100644
--- a/src/Behat/MinkExtension/Context/MinkDictionary.php
+++ b/src/Behat/MinkExtension/Context/MinkDictionary.php
@@ -263,6 +263,16 @@ trait MinkDictionary
$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.
*