diff --git a/features/random.feature b/features/random.feature index 2a5ae81b..d2195c6f 100644 --- a/features/random.feature +++ b/features/random.feature @@ -19,3 +19,9 @@ Feature: RandomContext functionality And I fill in "Username" with "" When I press "Create new account" Then an email has been sent to "@example.com" with the subject "Account details for " + + Scenario: Test RandomContext functionality in tables + Given I am viewing a page: + | title | + | | + Then I should see the text "" diff --git a/src/Drupal/DrupalExtension/Context/RandomContext.php b/src/Drupal/DrupalExtension/Context/RandomContext.php index 58c8b76a..72ca8dbe 100644 --- a/src/Drupal/DrupalExtension/Context/RandomContext.php +++ b/src/Drupal/DrupalExtension/Context/RandomContext.php @@ -3,6 +3,7 @@ namespace Drupal\DrupalExtension\Context; use Behat\Behat\Hook\Scope\ScenarioScope; +use Behat\Gherkin\Node\TableNode; /** * Class RandomContext