This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: dockercompose | |
# Required-Start: $docker | |
# Required-Stop: $docker | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Docker Services | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get alert | |
var a = page.alert(); | |
// check the message of alert | |
expect(String(a.getText())).to.be(msg); | |
// close the alert | |
a.accept(); | |
// dismiss (cancel/close) a modal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# language: en | |
# ------------------------------------------------------------------------------ | |
Feature: Search results in Google | |
Scenario: Search something in google | |
Given I'm at http://www.google.com/ncr | |
When I search for minium github | |
Then a link for https://github.com/viltgroup/minium is displayed | |
Scenario Outline: Search something in google (results in a JSON file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser.get("http://www.amazon.com/"); | |
var searchBox = $("#twotabsearchtextbox"); | |
var goBtn = $(":submit").withValue("Go"); | |
var results = $(".s-access-title"); | |
var addToCartBtn = $("#add-to-cart-button"); | |
var confirmText = $("#confirm-text"); | |
var cartCount = $("#nav-cart-count"); | |
searchBox.fill("Hubsan X4"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.directive('lowerThan', [ | |
function() { | |
var link = function($scope, $element, $attrs, ctrl) { | |
var validate = function(viewValue) { | |
var comparisonModel = $attrs.lowerThan; | |
var t, f; | |
if (!viewValue || !comparisonModel) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |