Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Behat\Gherkin\Node\TableNode namespace for instanceof TableNode #605

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions features/random.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ Feature: RandomContext functionality
And I fill in "Username" with "<?user>"
When I press "Create new account"
Then an email has been sent to "<?user>@example.com" with the subject "Account details for <?user>"

Scenario: Test RandomContext functionality in tables
Given I am viewing a page:
| title |
| <?random_page> |
Then I should see the text "<?random_page>"
1 change: 1 addition & 0 deletions src/Drupal/DrupalExtension/Context/RandomContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Drupal\DrupalExtension\Context;

use Behat\Behat\Hook\Scope\ScenarioScope;
use Behat\Gherkin\Node\TableNode;

/**
* Class RandomContext
Expand Down