Skip to content

Instantly share code, notes, and snippets.

@generalredneck
generalredneck / .lando.yml
Last active June 4, 2021 16:10 — forked from dustinleblanc/.lando.yml
Pantheon Build Tools with Lando Behat Testing
name: some-site
recipe: pantheon
config:
framework: drupal8
env: dev
site: some-site
id: some-uuid-string-here
drush: 8.3
php: '7.3'
webroot: web
@generalredneck
generalredneck / gist:44875680786c6ca6cd6713aa5e5adb7d
Last active October 23, 2017 19:04 — forked from heathdutton/gist:cc29284de3934706acd1
Start an Acquia drush command, and wait for it to complete before continuing.
#!/bin/bash
# Runs an acquia task, and waits for the task to complete before continuing.
# This is a helper script, to be used in others as needed.
#
# @see https://gist.github.com/heathdutton/cc29284de3934706acd1
if [[ $1 = "" ]] || [[ $2 = "" ]]
then
echo "Runs an acquia drush command, waiting for the results before continuing."
echo "Can be used as a replacement for drush."
process:
field_temp_tax_1:
plugin: iterator
source: field_album_jcarousel
process:
target_id: tid
field_temp_tax_2:
plugin: iterator
source: field_album_slideshow
process:
<?php
return array(
'zfcrbac' => array(
'firewalls' => array(
'ZfcRbac\Firewall\Controller' => array(
array('controller' => 'index', 'actions' => 'index', 'roles' => 'guest')
),
'ZfcRbac\Firewall\Route' => array(
array('route' => 'profiles/add', 'roles' => 'member'),
array('route' => 'admin/*', 'roles' => 'administrator')
Feature: google
I want to search something on google
Scenario: Search something on google
Given I am on "/"
And I fill in "q" with "selenium"
When I press "Google Search"
And I click the first link
Then I should see "selenium"
function waitForMail($subject) {
$lastExceptionMessage = '';
for ($second = 0; ; $second+=2) {
if ($second > 45) {
$this->fail(
"WaitFor timeout. \n"
. "Last exception message: \n" . $lastExceptionMessage
);
}
$this->clickAndWait('link=Search');