Skip to content

Instantly share code, notes, and snippets.

View fuel-lhartwell's full-sized avatar

Laura Hartwell fuel-lhartwell

View GitHub Profile
@fuel-lhartwell
fuel-lhartwell / tab.bash
Created February 26, 2019 19:30 — forked from bobthecow/tab.bash
Open new Terminal tabs from the command line
#!/bin/bash
#
# Open new Terminal tabs from the command line
#
# Author: Justin Hileman (http://justinhileman.com)
#
# Installation:
# Add the following function to your `.bashrc` or `.bash_profile`,
# or save it somewhere (e.g. `~/.tab.bash`) and source it in `.bashrc`
#
@fuel-lhartwell
fuel-lhartwell / behat-reference.feature
Created November 14, 2016 18:23 — forked from mnapoli/behat-reference.feature
Behat Mink reference
# Given
Given I am on [the] homepage
Given I am on "url"
# When
When I go to [the] homepage
When I go to "url"
When I reload the page
@fuel-lhartwell
fuel-lhartwell / README.md
Created March 23, 2016 18:00 — forked from eddiejaoude/README.md
Install Firefox addon/extension with no user interaction
@fuel-lhartwell
fuel-lhartwell / FeatureContext.php
Created March 22, 2016 17:50 — forked from jbouzekri/FeatureContext.php
A nice wait for js calls ending function in behat
<?php
/**
* @author Gildas Quéméner <gildas@akeneo.com>
* @copyright 2013 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
use Behat\Behat\Exception\BehaviorException;
use Behat\Mink\Driver\Selenium2Driver;
@fuel-lhartwell
fuel-lhartwell / FeatureContext.php
Created March 11, 2016 20:50 — forked from weaverryan/FeatureContext.php
Behat Definition to help click generic links on different rows of a table
<?php
// ...
class FeatureContext extends MinkContext
{
/**
* Looks for a table, then looks for a row that contains the given text.
* Once it finds the right row, it clicks a link in that row.
*
@fuel-lhartwell
fuel-lhartwell / FeatureContext.php
Created March 4, 2016 13:54 — forked from generalconsensus/FeatureContext.php
behat autoselect chosen.js
<?php
use Behat\Mink\Exception\ElementNotFoundException;
/**
* @Given /^I select "([^"]*)" from "([^"]*)" chosen\.js autoselect box$/
*/
public function iSelectFromChosenJAutoselectBox($option, $select) {
$select = $this->fixStepArgument($select);
$option = $this->fixStepArgument($option);