Skip to content

Instantly share code, notes, and snippets.

View swichers's full-sized avatar
👻
We must construct additional pylons!

Steven Wichers swichers

👻
We must construct additional pylons!
View GitHub Profile
@swichers
swichers / d8-behat-fillInDrupalAutocomplete.inc
Last active May 18, 2020 07:37 — forked from johnennewdeeson/FeatureContext_fill_in_drupal_autocomplete.inc
Behat Step to select an autocomplete suggestion from a partial entry
<?php
use Behat\Mink\Extension\ElementNotFoundException;
use Drupal\DrupalExtension\Context\DrupalContext;
class FeatureContext extends DrupalContext {
/**
* Gives us acess to the other contexts so we can access their properties.
*
* @BeforeScenario
@swichers
swichers / d8-behat-iSelectFirstAutocomplete.php
Last active August 6, 2021 11:59 — forked from IslandUsurper/gist:12723643dddc9315ff71
Behat Step to select the first autocomplete suggestion
<?php
use Behat\Mink\Extension\ElementNotFoundException;
use Drupal\DrupalExtension\Context\DrupalContext;
class FeatureContext extends DrupalContext {
/**
* Gives us acess to the other contexts so we can access their properties.
*