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
/* | |
This is an example of how to add special CSS that only applies in Percy's | |
rendering environment, for example to hide certain dynamic elements. | |
This is a bit of hack, we don't guarantee this will work forever in Percy | |
and we'll be adding a more officially-supported mechanism for this. | |
*/ | |
@-moz-document domain(proxyme.percy.io) { | |
#flappy-div { | |
visibility: hidden !important; |
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
# Tell Percy that this is a parallelized build. Because we separately finalize | |
# Percy builds, this should remain "2" no matter the actual number of nodes. | |
# | |
# Set this environment variable: | |
PERCY_PARALLEL_TOTAL=2 | |
# In your spec_helper, only call `initialize_build` and not finalize: | |
config.before(:suite) { Percy::Capybara.initialize_build } | |
# Do not call `finalize_build`. |
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
# Example to use Percy against a remote host. | |
# Requires: poltergeist gem, and phantomjs. | |
# | |
# This uses the percy-capybara native loader, which is slower and less accurate | |
# than other loaders. See: | |
# https://percy.io/docs/clients/ruby/capybara-other#non-rails-asset-setup | |
require 'percy/capybara' | |
require 'capybara/poltergeist' |
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
import Ember from 'ember'; | |
import { | |
beforeEach, | |
afterEach | |
} from 'mocha'; | |
// Support for overriding the baseline time used by Moment.js. Accepts ISO formatted timestamps. | |
// | |
// Requires: | |
// moment >= 2.11.0 in order to override moment.now. |
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
function textNodesUnder(el){ | |
var n, a = []; | |
var walk = document.createTreeWalker(el, NodeFilter.SHOW_TEXT, null, false); | |
while (n = walk.nextNode()) { a.push(n); } | |
return a; | |
} | |
// Normalize all text nodes (merge adjacent nodes). | |
var elements = document.getElementsByTagName('*'); | |
for (var i = 0; i < elements.length; i++) { |
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
$('#ember-testing-container').css('height', '100%'); | |
$('#ember-testing-container').css('width', '100%'); | |
$('#ember-testing').css('zoom', '100%'); |
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
netstat -nat | awk '{print $6}' | sort | uniq -c | sort -n |
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
describe('Acceptance: Marketing pages', function() { | |
it('can visit /about', function() { | |
visit('/about'); | |
percySnapshot('about page'); | |
click('.TeamMember:first'); | |
andThen(() => { expect(find('.TeamMember:first')).to.have.class('is-expanded'); }); | |
percySnapshot('about page (show details)'); | |
}); |
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
describe('Acceptance: Marketing pages', function() { | |
it('can visit /about', function() { | |
visit('/about'); | |
click('.TeamMember:first'); | |
andThen(() => { | |
expect(find('.TeamMember:first')).to.have.class('is-expanded'); | |
}); | |
}); | |
}); |
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
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
ehthumbs.db | |
Thumbs.db |