percy-capybara 3.2.0 → 4.0.0.pre.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +39 -0
- data/.gitignore +1 -0
- data/DEVELOPING.md +26 -0
- data/README.md +2 -2
- data/lib/environment.rb +31 -0
- data/lib/percy.rb +119 -0
- data/lib/version.rb +3 -0
- data/package-lock.json +2155 -0
- data/package.json +6 -0
- data/percy-capybara.gemspec +3 -12
- data/spec/lib/percy/environment_spec.rb +31 -0
- data/spec/lib/percy/percy_spec.rb +55 -0
- data/spec/spec_helper.rb +4 -44
- metadata +17 -233
- data/.travis.yml +0 -17
- data/lib/percy/capybara.rb +0 -60
- data/lib/percy/capybara/anywhere.rb +0 -37
- data/lib/percy/capybara/client.rb +0 -127
- data/lib/percy/capybara/client/builds.rb +0 -81
- data/lib/percy/capybara/client/snapshots.rb +0 -66
- data/lib/percy/capybara/client/user_agent.rb +0 -37
- data/lib/percy/capybara/httpfetcher.rb +0 -36
- data/lib/percy/capybara/loaders/base_loader.rb +0 -161
- data/lib/percy/capybara/loaders/ember_cli_rails_loader.rb +0 -52
- data/lib/percy/capybara/loaders/filesystem_loader.rb +0 -37
- data/lib/percy/capybara/loaders/native_loader.rb +0 -287
- data/lib/percy/capybara/loaders/sprockets_loader.rb +0 -99
- data/lib/percy/capybara/rspec.rb +0 -8
- data/lib/percy/capybara/version.rb +0 -5
- data/spec/lib/percy/capybara/client/builds_spec.rb +0 -171
- data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/assets/percy-admin.svg +0 -34
- data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/index.html +0 -1
- data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/percy-admin-public.svg +0 -34
- data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/assets/percy-frontend.svg +0 -34
- data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/index.html +0 -1
- data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/percy-frontend-public.svg +0 -34
- data/spec/lib/percy/capybara/client/rails_public_test_data/large-file-skipped.png +0 -0
- data/spec/lib/percy/capybara/client/rails_public_test_data/percy-from-public.svg +0 -34
- data/spec/lib/percy/capybara/client/rails_public_test_data/symlink_to_images +0 -1
- data/spec/lib/percy/capybara/client/snapshots_spec.rb +0 -97
- data/spec/lib/percy/capybara/client/symlink_test_data/test.png +0 -0
- data/spec/lib/percy/capybara/client/test_data/assets/css/digested-f3420c6aee71c137a3ca39727052811bae84b2f37d898f4db242e20656a1579e.css +0 -1
- data/spec/lib/percy/capybara/client/test_data/assets/images/large-file-skipped.png +0 -0
- data/spec/lib/percy/capybara/client/test_data/css/base.css +0 -1
- data/spec/lib/percy/capybara/client/test_data/css/digested.css +0 -1
- data/spec/lib/percy/capybara/client/test_data/css/font.css +0 -8
- data/spec/lib/percy/capybara/client/test_data/css/imports.css +0 -1
- data/spec/lib/percy/capybara/client/test_data/css/level0-imports.css +0 -2
- data/spec/lib/percy/capybara/client/test_data/css/level1-imports.css +0 -2
- data/spec/lib/percy/capybara/client/test_data/css/level2-imports.css +0 -1
- data/spec/lib/percy/capybara/client/test_data/css/simple-imports.css +0 -1
- data/spec/lib/percy/capybara/client/test_data/css/source.css.map +0 -2
- data/spec/lib/percy/capybara/client/test_data/iframe.html +0 -7
- data/spec/lib/percy/capybara/client/test_data/images/bg-relative-to-root.png +0 -0
- data/spec/lib/percy/capybara/client/test_data/images/bg-relative.png +0 -0
- data/spec/lib/percy/capybara/client/test_data/images/bg-stacked.png +0 -0
- data/spec/lib/percy/capybara/client/test_data/images/img-relative-to-root.png +0 -0
- data/spec/lib/percy/capybara/client/test_data/images/img-relative.png +0 -0
- data/spec/lib/percy/capybara/client/test_data/images/percy.svg +0 -34
- data/spec/lib/percy/capybara/client/test_data/images/srcset-base.png +0 -0
- data/spec/lib/percy/capybara/client/test_data/images/srcset-first.png +0 -0
- data/spec/lib/percy/capybara/client/test_data/images/srcset-second.png +0 -0
- data/spec/lib/percy/capybara/client/test_data/index.html +0 -1
- data/spec/lib/percy/capybara/client/test_data/js/base.js +0 -1
- data/spec/lib/percy/capybara/client/test_data/test-css.html +0 -20
- data/spec/lib/percy/capybara/client/test_data/test-font.html +0 -9
- data/spec/lib/percy/capybara/client/test_data/test-iframe.html +0 -8
- data/spec/lib/percy/capybara/client/test_data/test-images.html +0 -51
- data/spec/lib/percy/capybara/client/test_data/test-localtest-me-images.html +0 -8
- data/spec/lib/percy/capybara/client/user_agent_spec.rb +0 -45
- data/spec/lib/percy/capybara/client_spec.rb +0 -232
- data/spec/lib/percy/capybara/http_fetcher_spec.rb +0 -17
- data/spec/lib/percy/capybara/loaders/base_loader_spec.rb +0 -122
- data/spec/lib/percy/capybara/loaders/ember_cli_rails_loader_spec.rb +0 -86
- data/spec/lib/percy/capybara/loaders/filesystem_loader_spec.rb +0 -166
- data/spec/lib/percy/capybara/loaders/native_loader_spec.rb +0 -300
- data/spec/lib/percy/capybara/loaders/sprockets_loader_spec.rb +0 -119
- data/spec/lib/percy/capybara_spec.rb +0 -101
- data/spec/support/test_helpers.rb +0 -60
@@ -1,99 +0,0 @@
|
|
1
|
-
require 'percy/capybara/loaders/base_loader'
|
2
|
-
require 'digest'
|
3
|
-
require 'find'
|
4
|
-
require 'set'
|
5
|
-
require 'addressable/uri'
|
6
|
-
|
7
|
-
module Percy
|
8
|
-
module Capybara
|
9
|
-
module Loaders
|
10
|
-
# Resource loader that loads assets via Sprockets (ie. the Rails asset pipeline).
|
11
|
-
class SprocketsLoader < BaseLoader
|
12
|
-
attr_reader :page
|
13
|
-
attr_reader :sprockets_environment
|
14
|
-
attr_reader :sprockets_options
|
15
|
-
|
16
|
-
SKIP_RESOURCE_EXTENSIONS = [
|
17
|
-
'.map', # Ignore source maps.
|
18
|
-
'.gz', # Ignore gzipped files.
|
19
|
-
].freeze
|
20
|
-
MAX_FILESIZE_BYTES = 15 * 1024**2 # 15 MB.
|
21
|
-
|
22
|
-
def initialize(options = {})
|
23
|
-
@sprockets_environment = options[:sprockets_environment]
|
24
|
-
@sprockets_options = options[:sprockets_options]
|
25
|
-
super(options)
|
26
|
-
end
|
27
|
-
|
28
|
-
def snapshot_resources
|
29
|
-
[root_html_resource] + iframes_resources
|
30
|
-
end
|
31
|
-
|
32
|
-
def build_resources
|
33
|
-
resources = []
|
34
|
-
loaded_resource_urls = Set.new
|
35
|
-
|
36
|
-
# Load resources from the asset pipeline.
|
37
|
-
_asset_logical_paths.each do |logical_path|
|
38
|
-
next if SKIP_RESOURCE_EXTENSIONS.include?(File.extname(logical_path))
|
39
|
-
|
40
|
-
asset = sprockets_environment.find_asset(logical_path)
|
41
|
-
|
42
|
-
# Skip large files, these are hopefully downloads and not used in page rendering.
|
43
|
-
next if asset.length > MAX_FILESIZE_BYTES
|
44
|
-
|
45
|
-
content = asset.to_s
|
46
|
-
sha = Digest::SHA256.hexdigest(content)
|
47
|
-
|
48
|
-
if defined?(ActionController)
|
49
|
-
# Ask Rails where this asset is (this handles asset_hosts, digest paths, etc.).
|
50
|
-
resource_url = ActionController::Base.helpers.asset_path(logical_path)
|
51
|
-
else
|
52
|
-
# TODO: more robust support for Sprockets usage outside Rails, ie Sinatra.
|
53
|
-
# How do we find the correct path in that case?
|
54
|
-
path = sprockets_options.digest ? asset.digest_path : logical_path
|
55
|
-
resource_url = Addressable::URI.escape("/assets/#{path}")
|
56
|
-
end
|
57
|
-
|
58
|
-
next if SKIP_RESOURCE_EXTENSIONS.include?(File.extname(resource_url))
|
59
|
-
|
60
|
-
loaded_resource_urls.add(resource_url)
|
61
|
-
resources << Percy::Client::Resource.new(resource_url, sha: sha, content: content)
|
62
|
-
end
|
63
|
-
|
64
|
-
# Load resources from the public/ directory, if a Rails app.
|
65
|
-
if _rails
|
66
|
-
public_path = _rails.public_path.to_s
|
67
|
-
resources += _resources_from_dir(public_path).reject do |resource|
|
68
|
-
# Skip precompiled files already included via the asset pipeline.
|
69
|
-
loaded_resource_urls.include?(resource.resource_url)
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
resources
|
74
|
-
end
|
75
|
-
|
76
|
-
def _rails
|
77
|
-
Rails if defined?(Rails)
|
78
|
-
end
|
79
|
-
|
80
|
-
def _asset_logical_paths
|
81
|
-
if _rails && _rails.application.respond_to?(:precompiled_assets)
|
82
|
-
_rails.application.precompiled_assets
|
83
|
-
else
|
84
|
-
# Re-implement the same technique that "rake assets:precompile" uses to generate the
|
85
|
-
# list of asset paths to include in compiled assets. https://goo.gl/sy2R4z
|
86
|
-
# We can't just use environment.each_logical_path without any filters, because then
|
87
|
-
# we will attempt to compile assets before they're rendered (such as _mixins.css).
|
88
|
-
precompile_list = sprockets_options.precompile
|
89
|
-
logical_paths = sprockets_environment.each_logical_path(*precompile_list).to_a
|
90
|
-
logical_paths += precompile_list.flatten.select do |filename|
|
91
|
-
Pathname.new(filename).absolute? if filename.is_a?(String)
|
92
|
-
end
|
93
|
-
logical_paths.uniq
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
data/lib/percy/capybara/rspec.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
require 'rspec/core'
|
2
|
-
|
3
|
-
# TODO: this has been deprecated for a long time, remove this file when releasing v3.0.0.
|
4
|
-
|
5
|
-
RSpec.configure do |config|
|
6
|
-
config.before(:suite) { Percy::Capybara.initialize_build }
|
7
|
-
config.after(:suite) { Percy::Capybara.finalize_build }
|
8
|
-
end
|
@@ -1,171 +0,0 @@
|
|
1
|
-
RSpec.describe Percy::Capybara::Client::Builds do
|
2
|
-
let(:enabled) { true }
|
3
|
-
let(:capybara_client) { Percy::Capybara::Client.new(enabled: enabled) }
|
4
|
-
let(:builds_api_url) { "https://percy.io/api/v1/builds/" }
|
5
|
-
|
6
|
-
describe '#initialize_build', type: :feature, js: true do
|
7
|
-
before(:each) { setup_sprockets(capybara_client) }
|
8
|
-
|
9
|
-
context 'percy is not enabled' do
|
10
|
-
let(:enabled) { false }
|
11
|
-
|
12
|
-
it 'returns nil if not enabled' do
|
13
|
-
expect(capybara_client.initialize_build).to be_nil
|
14
|
-
end
|
15
|
-
end
|
16
|
-
it 'initializes and returns a build' do
|
17
|
-
mock_response = {
|
18
|
-
'data' => {
|
19
|
-
'id' => '123',
|
20
|
-
'type' => 'builds',
|
21
|
-
},
|
22
|
-
}
|
23
|
-
stub_request(:post, builds_api_url)
|
24
|
-
.to_return(status: 201, body: mock_response.to_json)
|
25
|
-
expect(capybara_client.initialize_build).to eq(mock_response)
|
26
|
-
end
|
27
|
-
it 'uploads missing build resources' do
|
28
|
-
visit '/'
|
29
|
-
loader = capybara_client.initialize_loader(page: page)
|
30
|
-
mock_response = {
|
31
|
-
'data' => {
|
32
|
-
'id' => '123',
|
33
|
-
'type' => 'builds',
|
34
|
-
'relationships' => {
|
35
|
-
'self' => '/api/v1/snapshots/123',
|
36
|
-
'missing-resources' => {
|
37
|
-
'data' => [
|
38
|
-
{
|
39
|
-
'type' => 'resources',
|
40
|
-
'id' => loader.build_resources.first.sha,
|
41
|
-
},
|
42
|
-
],
|
43
|
-
},
|
44
|
-
},
|
45
|
-
},
|
46
|
-
}
|
47
|
-
# Stub create build.
|
48
|
-
build_stub = stub_request(:post, builds_api_url)
|
49
|
-
.to_return(status: 201, body: mock_response.to_json)
|
50
|
-
|
51
|
-
# Stub resource upload.
|
52
|
-
resources_stub = stub_request(:post, 'https://percy.io/api/v1/builds/123/resources/')
|
53
|
-
.to_return(status: 201, body: {success: true}.to_json)
|
54
|
-
capybara_client.initialize_build
|
55
|
-
|
56
|
-
expect(resources_stub).to have_been_requested
|
57
|
-
expect(build_stub).to have_been_requested
|
58
|
-
end
|
59
|
-
it 'safely handles connection errors when creating build' do
|
60
|
-
expect(capybara_client.client).to receive(:create_build)
|
61
|
-
.and_raise(Percy::Client::ConnectionFailed)
|
62
|
-
expect(capybara_client.initialize_build).to eq(nil)
|
63
|
-
expect(capybara_client.failed?).to eq(true)
|
64
|
-
end
|
65
|
-
it 'safely handles connection errors when uploading missing build_resources' do
|
66
|
-
visit '/'
|
67
|
-
loader = capybara_client.initialize_loader(page: page)
|
68
|
-
mock_response = {
|
69
|
-
'data' => {
|
70
|
-
'id' => '123',
|
71
|
-
'type' => 'builds',
|
72
|
-
'relationships' => {
|
73
|
-
'self' => '/api/v1/snapshots/123',
|
74
|
-
'missing-resources' => {
|
75
|
-
'data' => [
|
76
|
-
{
|
77
|
-
'type' => 'resources',
|
78
|
-
'id' => loader.build_resources.first.sha,
|
79
|
-
},
|
80
|
-
],
|
81
|
-
},
|
82
|
-
},
|
83
|
-
},
|
84
|
-
}
|
85
|
-
# Stub create build.
|
86
|
-
build_stub = stub_request(:post, builds_api_url)
|
87
|
-
.to_return(status: 201, body: mock_response.to_json)
|
88
|
-
|
89
|
-
# Stub resource upload.
|
90
|
-
expect(capybara_client.client).to receive(:upload_resource)
|
91
|
-
.and_raise(Percy::Client::ConnectionFailed)
|
92
|
-
|
93
|
-
expect(capybara_client.initialize_build).to eq(nil)
|
94
|
-
expect(capybara_client.failed?).to eq(true)
|
95
|
-
expect(build_stub).to have_been_requested
|
96
|
-
end
|
97
|
-
end
|
98
|
-
describe '#current_build' do
|
99
|
-
it 'returns nil if no build has been initialized' do
|
100
|
-
expect(capybara_client.current_build).to be_nil
|
101
|
-
end
|
102
|
-
it 'returns the current build' do
|
103
|
-
mock_double = double('build')
|
104
|
-
expect(capybara_client.client).to receive(:create_build)
|
105
|
-
.with({})
|
106
|
-
.and_return(mock_double)
|
107
|
-
.once
|
108
|
-
capybara_client.initialize_build
|
109
|
-
|
110
|
-
current_build = capybara_client.current_build
|
111
|
-
expect(current_build).to eq(mock_double)
|
112
|
-
# Verify that it memoizes the current build by calling it again:
|
113
|
-
expect(current_build).to eq(mock_double)
|
114
|
-
end
|
115
|
-
end
|
116
|
-
describe '#build_initialized?' do
|
117
|
-
it 'is false before a build is initialized and true afterward' do
|
118
|
-
expect(capybara_client.client).to receive(:create_build).and_return(double('build'))
|
119
|
-
expect(capybara_client.build_initialized?).to eq(false)
|
120
|
-
|
121
|
-
capybara_client.initialize_build
|
122
|
-
expect(capybara_client.build_initialized?).to eq(true)
|
123
|
-
end
|
124
|
-
end
|
125
|
-
describe '#finalize_current_build' do
|
126
|
-
let(:build_data) do
|
127
|
-
{'data' => {'id' => 123, 'attributes' => {'web-url' => 'http://localhost/'}}}
|
128
|
-
end
|
129
|
-
|
130
|
-
it 'finalizes the current build' do
|
131
|
-
expect(capybara_client.client).to receive(:create_build).and_return(build_data)
|
132
|
-
capybara_client.initialize_build
|
133
|
-
|
134
|
-
expect(capybara_client.client).to receive(:finalize_build).with(123)
|
135
|
-
capybara_client.finalize_current_build
|
136
|
-
end
|
137
|
-
it 'raises an error if no current build exists' do
|
138
|
-
expect do
|
139
|
-
capybara_client.finalize_current_build
|
140
|
-
end.to raise_error(Percy::Capybara::Client::BuildNotInitializedError)
|
141
|
-
end
|
142
|
-
it 'safely handles connection errors' do
|
143
|
-
expect(capybara_client.client).to receive(:create_build).and_return(build_data)
|
144
|
-
capybara_client.initialize_build
|
145
|
-
|
146
|
-
expect(capybara_client.client).to receive(:finalize_build)
|
147
|
-
.and_raise(Percy::Client::ConnectionFailed)
|
148
|
-
expect(capybara_client.finalize_current_build).to eq(nil)
|
149
|
-
expect(capybara_client.failed?).to eq(true)
|
150
|
-
end
|
151
|
-
end
|
152
|
-
describe '#_upload_missing_build_resources', type: :feature, js: true do
|
153
|
-
before(:each) { setup_sprockets(capybara_client) }
|
154
|
-
|
155
|
-
it 'returns 0 if there are no missing build resources to upload' do
|
156
|
-
mock_response = {
|
157
|
-
'data' => {
|
158
|
-
'id' => '123',
|
159
|
-
'type' => 'builds',
|
160
|
-
},
|
161
|
-
}
|
162
|
-
stub_request(:post, builds_api_url)
|
163
|
-
.to_return(status: 201, body: mock_response.to_json)
|
164
|
-
capybara_client.initialize_build
|
165
|
-
|
166
|
-
loader = capybara_client.initialize_loader
|
167
|
-
result = capybara_client.send(:_upload_missing_build_resources, loader.build_resources)
|
168
|
-
expect(result).to eq(0)
|
169
|
-
end
|
170
|
-
end
|
171
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4
|
-
viewBox="0 0 170 110" enable-background="new 0 0 170 110" xml:space="preserve">
|
5
|
-
<g>
|
6
|
-
<g>
|
7
|
-
<polyline fill="#1F0924" points="49.2,97.6 9.4,103.4 46,86.8 6.2,81.2 46,75.6 9.4,59 49.2,64.9 18.7,38.6 55.2,55.4 33.4,21.7
|
8
|
-
63.7,48.1 52.2,9.6 73.9,43.4 73.7,3.2 85,41.8 96.2,3.2 96.1,43.4 117.7,9.5 106.3,48.1 136.5,21.6 114.7,55.4 151.2,38.6
|
9
|
-
120.8,64.8 160.6,59 124,75.6 163.8,81.1 124,86.8 160.6,103.3 120.8,97.5 "/>
|
10
|
-
<polyline fill="#EDDDC2" points="52.8,90.2 18.5,90.3 51.4,80.7 18.5,71.2 52.8,71.3 23.9,52.8 56.8,62.6 63,55.4 48.7,24.2
|
11
|
-
71.1,50.2 66.1,16.3 80.2,47.5 85,13.5 89.8,47.5 103.9,16.3 98.9,50.2 121.3,24.2 107,55.4 113.2,62.6 146.1,52.8 117.2,71.3
|
12
|
-
151.5,71.2 118.6,80.7 151.5,90.3 117.2,90.2 "/>
|
13
|
-
</g>
|
14
|
-
<polygon fill="#EDDDC2" points="108.3,45.7 134.4,39.1 127.9,65.2 "/>
|
15
|
-
<polygon fill="#1F0924" points="114.2,48.6 128.5,45 124.9,59.3 114.2,59.3 "/>
|
16
|
-
<polygon fill="#EDDDC2" points="61.7,45.7 35.6,39.1 42.1,65.2 "/>
|
17
|
-
<polygon fill="#1F0924" points="55.8,48.6 41.5,45 45.1,59.3 55.8,59.3 "/>
|
18
|
-
<polyline fill="#B157B5" points="38.3,101.1 131.7,101.1 166.8,88.5 131.5,76 155.8,47.6 119,54.5 125.9,17.7 97.5,42 85,6.7
|
19
|
-
72.5,42 44.1,17.7 51,54.5 14.2,47.6 38.5,76 3.2,88.5 "/>
|
20
|
-
<circle fill="#EDDDC2" cx="61.4" cy="78.7" r="12.1"/>
|
21
|
-
<circle fill="#1F0924" cx="61.4" cy="78.7" r="9.5"/>
|
22
|
-
<circle fill="#EDDDC2" cx="58.2" cy="75.5" r="4.2"/>
|
23
|
-
<circle fill="#EDDDC2" cx="108.6" cy="78.7" r="12.1"/>
|
24
|
-
<circle fill="#1F0924" cx="108.6" cy="78.7" r="9.5"/>
|
25
|
-
<circle fill="#EDDDC2" cx="105.3" cy="75.5" r="4.2"/>
|
26
|
-
<path fill="#EDDDC2" d="M62.9,97.6c0-12.2,9.9-22.1,22.1-22.1s22.1,9.9,22.1,22.1S62.9,109.8,62.9,97.6z"/>
|
27
|
-
<path fill="#1F0924" d="M89.8,96.5c-2,0-3.7-1-4.8-2.5c-1,1.5-2.8,2.5-4.8,2.5c-3.2,0-5.8-2.6-5.8-5.8c0-0.6,0.4-1,1-1s1,0.4,1,1
|
28
|
-
c0,2.1,1.7,3.8,3.8,3.8s3.8-1.7,3.8-3.8h2c0,2.1,1.7,3.8,3.8,3.8s3.8-1.7,3.8-3.8c0-0.6,0.4-1,1-1s1,0.4,1,1
|
29
|
-
C95.5,93.9,93,96.5,89.8,96.5z"/>
|
30
|
-
<path fill="#1F0924" d="M92.8,83.6c0,4.3-3.5,7.8-7.8,7.8s-7.8-3.5-7.8-7.8C77.2,79.3,92.8,79.3,92.8,83.6z"/>
|
31
|
-
<path fill="#EDDDC2" d="M47,101.3c0-4,3.2-7.3,7.3-7.3s7.3,3.2,7.3,7.3S47,105.3,47,101.3z"/>
|
32
|
-
<path fill="#EDDDC2" d="M108.4,101.3c0-4,3.2-7.3,7.3-7.3c4,0,7.3,3.2,7.3,7.3S108.4,105.3,108.4,101.3z"/>
|
33
|
-
</g>
|
34
|
-
</svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<html><head></head><body>Hello World!</body></html>
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4
|
-
viewBox="0 0 170 110" enable-background="new 0 0 170 110" xml:space="preserve">
|
5
|
-
<g>
|
6
|
-
<g>
|
7
|
-
<polyline fill="#1F0924" points="49.2,97.6 9.4,103.4 46,86.8 6.2,81.2 46,75.6 9.4,59 49.2,64.9 18.7,38.6 55.2,55.4 33.4,21.7
|
8
|
-
63.7,48.1 52.2,9.6 73.9,43.4 73.7,3.2 85,41.8 96.2,3.2 96.1,43.4 117.7,9.5 106.3,48.1 136.5,21.6 114.7,55.4 151.2,38.6
|
9
|
-
120.8,64.8 160.6,59 124,75.6 163.8,81.1 124,86.8 160.6,103.3 120.8,97.5 "/>
|
10
|
-
<polyline fill="#EDDDC2" points="52.8,90.2 18.5,90.3 51.4,80.7 18.5,71.2 52.8,71.3 23.9,52.8 56.8,62.6 63,55.4 48.7,24.2
|
11
|
-
71.1,50.2 66.1,16.3 80.2,47.5 85,13.5 89.8,47.5 103.9,16.3 98.9,50.2 121.3,24.2 107,55.4 113.2,62.6 146.1,52.8 117.2,71.3
|
12
|
-
151.5,71.2 118.6,80.7 151.5,90.3 117.2,90.2 "/>
|
13
|
-
</g>
|
14
|
-
<polygon fill="#EDDDC2" points="108.3,45.7 134.4,39.1 127.9,65.2 "/>
|
15
|
-
<polygon fill="#1F0924" points="114.2,48.6 128.5,45 124.9,59.3 114.2,59.3 "/>
|
16
|
-
<polygon fill="#EDDDC2" points="61.7,45.7 35.6,39.1 42.1,65.2 "/>
|
17
|
-
<polygon fill="#1F0924" points="55.8,48.6 41.5,45 45.1,59.3 55.8,59.3 "/>
|
18
|
-
<polyline fill="#B157B5" points="38.3,101.1 131.7,101.1 166.8,88.5 131.5,76 155.8,47.6 119,54.5 125.9,17.7 97.5,42 85,6.7
|
19
|
-
72.5,42 44.1,17.7 51,54.5 14.2,47.6 38.5,76 3.2,88.5 "/>
|
20
|
-
<circle fill="#EDDDC2" cx="61.4" cy="78.7" r="12.1"/>
|
21
|
-
<circle fill="#1F0924" cx="61.4" cy="78.7" r="9.5"/>
|
22
|
-
<circle fill="#EDDDC2" cx="58.2" cy="75.5" r="4.2"/>
|
23
|
-
<circle fill="#EDDDC2" cx="108.6" cy="78.7" r="12.1"/>
|
24
|
-
<circle fill="#1F0924" cx="108.6" cy="78.7" r="9.5"/>
|
25
|
-
<circle fill="#EDDDC2" cx="105.3" cy="75.5" r="4.2"/>
|
26
|
-
<path fill="#EDDDC2" d="M62.9,97.6c0-12.2,9.9-22.1,22.1-22.1s22.1,9.9,22.1,22.1S62.9,109.8,62.9,97.6z"/>
|
27
|
-
<path fill="#1F0924" d="M89.8,96.5c-2,0-3.7-1-4.8-2.5c-1,1.5-2.8,2.5-4.8,2.5c-3.2,0-5.8-2.6-5.8-5.8c0-0.6,0.4-1,1-1s1,0.4,1,1
|
28
|
-
c0,2.1,1.7,3.8,3.8,3.8s3.8-1.7,3.8-3.8h2c0,2.1,1.7,3.8,3.8,3.8s3.8-1.7,3.8-3.8c0-0.6,0.4-1,1-1s1,0.4,1,1
|
29
|
-
C95.5,93.9,93,96.5,89.8,96.5z"/>
|
30
|
-
<path fill="#1F0924" d="M92.8,83.6c0,4.3-3.5,7.8-7.8,7.8s-7.8-3.5-7.8-7.8C77.2,79.3,92.8,79.3,92.8,83.6z"/>
|
31
|
-
<path fill="#EDDDC2" d="M47,101.3c0-4,3.2-7.3,7.3-7.3s7.3,3.2,7.3,7.3S47,105.3,47,101.3z"/>
|
32
|
-
<path fill="#EDDDC2" d="M108.4,101.3c0-4,3.2-7.3,7.3-7.3c4,0,7.3,3.2,7.3,7.3S108.4,105.3,108.4,101.3z"/>
|
33
|
-
</g>
|
34
|
-
</svg>
|
data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/assets/percy-frontend.svg
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4
|
-
viewBox="0 0 170 110" enable-background="new 0 0 170 110" xml:space="preserve">
|
5
|
-
<g>
|
6
|
-
<g>
|
7
|
-
<polyline fill="#1F0924" points="49.2,97.6 9.4,103.4 46,86.8 6.2,81.2 46,75.6 9.4,59 49.2,64.9 18.7,38.6 55.2,55.4 33.4,21.7
|
8
|
-
63.7,48.1 52.2,9.6 73.9,43.4 73.7,3.2 85,41.8 96.2,3.2 96.1,43.4 117.7,9.5 106.3,48.1 136.5,21.6 114.7,55.4 151.2,38.6
|
9
|
-
120.8,64.8 160.6,59 124,75.6 163.8,81.1 124,86.8 160.6,103.3 120.8,97.5 "/>
|
10
|
-
<polyline fill="#EDDDC2" points="52.8,90.2 18.5,90.3 51.4,80.7 18.5,71.2 52.8,71.3 23.9,52.8 56.8,62.6 63,55.4 48.7,24.2
|
11
|
-
71.1,50.2 66.1,16.3 80.2,47.5 85,13.5 89.8,47.5 103.9,16.3 98.9,50.2 121.3,24.2 107,55.4 113.2,62.6 146.1,52.8 117.2,71.3
|
12
|
-
151.5,71.2 118.6,80.7 151.5,90.3 117.2,90.2 "/>
|
13
|
-
</g>
|
14
|
-
<polygon fill="#EDDDC2" points="108.3,45.7 134.4,39.1 127.9,65.2 "/>
|
15
|
-
<polygon fill="#1F0924" points="114.2,48.6 128.5,45 124.9,59.3 114.2,59.3 "/>
|
16
|
-
<polygon fill="#EDDDC2" points="61.7,45.7 35.6,39.1 42.1,65.2 "/>
|
17
|
-
<polygon fill="#1F0924" points="55.8,48.6 41.5,45 45.1,59.3 55.8,59.3 "/>
|
18
|
-
<polyline fill="#B157B5" points="38.3,101.1 131.7,101.1 166.8,88.5 131.5,76 155.8,47.6 119,54.5 125.9,17.7 97.5,42 85,6.7
|
19
|
-
72.5,42 44.1,17.7 51,54.5 14.2,47.6 38.5,76 3.2,88.5 "/>
|
20
|
-
<circle fill="#EDDDC2" cx="61.4" cy="78.7" r="12.1"/>
|
21
|
-
<circle fill="#1F0924" cx="61.4" cy="78.7" r="9.5"/>
|
22
|
-
<circle fill="#EDDDC2" cx="58.2" cy="75.5" r="4.2"/>
|
23
|
-
<circle fill="#EDDDC2" cx="108.6" cy="78.7" r="12.1"/>
|
24
|
-
<circle fill="#1F0924" cx="108.6" cy="78.7" r="9.5"/>
|
25
|
-
<circle fill="#EDDDC2" cx="105.3" cy="75.5" r="4.2"/>
|
26
|
-
<path fill="#EDDDC2" d="M62.9,97.6c0-12.2,9.9-22.1,22.1-22.1s22.1,9.9,22.1,22.1S62.9,109.8,62.9,97.6z"/>
|
27
|
-
<path fill="#1F0924" d="M89.8,96.5c-2,0-3.7-1-4.8-2.5c-1,1.5-2.8,2.5-4.8,2.5c-3.2,0-5.8-2.6-5.8-5.8c0-0.6,0.4-1,1-1s1,0.4,1,1
|
28
|
-
c0,2.1,1.7,3.8,3.8,3.8s3.8-1.7,3.8-3.8h2c0,2.1,1.7,3.8,3.8,3.8s3.8-1.7,3.8-3.8c0-0.6,0.4-1,1-1s1,0.4,1,1
|
29
|
-
C95.5,93.9,93,96.5,89.8,96.5z"/>
|
30
|
-
<path fill="#1F0924" d="M92.8,83.6c0,4.3-3.5,7.8-7.8,7.8s-7.8-3.5-7.8-7.8C77.2,79.3,92.8,79.3,92.8,83.6z"/>
|
31
|
-
<path fill="#EDDDC2" d="M47,101.3c0-4,3.2-7.3,7.3-7.3s7.3,3.2,7.3,7.3S47,105.3,47,101.3z"/>
|
32
|
-
<path fill="#EDDDC2" d="M108.4,101.3c0-4,3.2-7.3,7.3-7.3c4,0,7.3,3.2,7.3,7.3S108.4,105.3,108.4,101.3z"/>
|
33
|
-
</g>
|
34
|
-
</svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<html><head></head><body>Hello World!</body></html>
|
data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/percy-frontend-public.svg
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4
|
-
viewBox="0 0 170 110" enable-background="new 0 0 170 110" xml:space="preserve">
|
5
|
-
<g>
|
6
|
-
<g>
|
7
|
-
<polyline fill="#1F0924" points="49.2,97.6 9.4,103.4 46,86.8 6.2,81.2 46,75.6 9.4,59 49.2,64.9 18.7,38.6 55.2,55.4 33.4,21.7
|
8
|
-
63.7,48.1 52.2,9.6 73.9,43.4 73.7,3.2 85,41.8 96.2,3.2 96.1,43.4 117.7,9.5 106.3,48.1 136.5,21.6 114.7,55.4 151.2,38.6
|
9
|
-
120.8,64.8 160.6,59 124,75.6 163.8,81.1 124,86.8 160.6,103.3 120.8,97.5 "/>
|
10
|
-
<polyline fill="#EDDDC2" points="52.8,90.2 18.5,90.3 51.4,80.7 18.5,71.2 52.8,71.3 23.9,52.8 56.8,62.6 63,55.4 48.7,24.2
|
11
|
-
71.1,50.2 66.1,16.3 80.2,47.5 85,13.5 89.8,47.5 103.9,16.3 98.9,50.2 121.3,24.2 107,55.4 113.2,62.6 146.1,52.8 117.2,71.3
|
12
|
-
151.5,71.2 118.6,80.7 151.5,90.3 117.2,90.2 "/>
|
13
|
-
</g>
|
14
|
-
<polygon fill="#EDDDC2" points="108.3,45.7 134.4,39.1 127.9,65.2 "/>
|
15
|
-
<polygon fill="#1F0924" points="114.2,48.6 128.5,45 124.9,59.3 114.2,59.3 "/>
|
16
|
-
<polygon fill="#EDDDC2" points="61.7,45.7 35.6,39.1 42.1,65.2 "/>
|
17
|
-
<polygon fill="#1F0924" points="55.8,48.6 41.5,45 45.1,59.3 55.8,59.3 "/>
|
18
|
-
<polyline fill="#B157B5" points="38.3,101.1 131.7,101.1 166.8,88.5 131.5,76 155.8,47.6 119,54.5 125.9,17.7 97.5,42 85,6.7
|
19
|
-
72.5,42 44.1,17.7 51,54.5 14.2,47.6 38.5,76 3.2,88.5 "/>
|
20
|
-
<circle fill="#EDDDC2" cx="61.4" cy="78.7" r="12.1"/>
|
21
|
-
<circle fill="#1F0924" cx="61.4" cy="78.7" r="9.5"/>
|
22
|
-
<circle fill="#EDDDC2" cx="58.2" cy="75.5" r="4.2"/>
|
23
|
-
<circle fill="#EDDDC2" cx="108.6" cy="78.7" r="12.1"/>
|
24
|
-
<circle fill="#1F0924" cx="108.6" cy="78.7" r="9.5"/>
|
25
|
-
<circle fill="#EDDDC2" cx="105.3" cy="75.5" r="4.2"/>
|
26
|
-
<path fill="#EDDDC2" d="M62.9,97.6c0-12.2,9.9-22.1,22.1-22.1s22.1,9.9,22.1,22.1S62.9,109.8,62.9,97.6z"/>
|
27
|
-
<path fill="#1F0924" d="M89.8,96.5c-2,0-3.7-1-4.8-2.5c-1,1.5-2.8,2.5-4.8,2.5c-3.2,0-5.8-2.6-5.8-5.8c0-0.6,0.4-1,1-1s1,0.4,1,1
|
28
|
-
c0,2.1,1.7,3.8,3.8,3.8s3.8-1.7,3.8-3.8h2c0,2.1,1.7,3.8,3.8,3.8s3.8-1.7,3.8-3.8c0-0.6,0.4-1,1-1s1,0.4,1,1
|
29
|
-
C95.5,93.9,93,96.5,89.8,96.5z"/>
|
30
|
-
<path fill="#1F0924" d="M92.8,83.6c0,4.3-3.5,7.8-7.8,7.8s-7.8-3.5-7.8-7.8C77.2,79.3,92.8,79.3,92.8,83.6z"/>
|
31
|
-
<path fill="#EDDDC2" d="M47,101.3c0-4,3.2-7.3,7.3-7.3s7.3,3.2,7.3,7.3S47,105.3,47,101.3z"/>
|
32
|
-
<path fill="#EDDDC2" d="M108.4,101.3c0-4,3.2-7.3,7.3-7.3c4,0,7.3,3.2,7.3,7.3S108.4,105.3,108.4,101.3z"/>
|
33
|
-
</g>
|
34
|
-
</svg>
|
Binary file
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4
|
-
viewBox="0 0 170 110" enable-background="new 0 0 170 110" xml:space="preserve">
|
5
|
-
<g>
|
6
|
-
<g>
|
7
|
-
<polyline fill="#1F0924" points="49.2,97.6 9.4,103.4 46,86.8 6.2,81.2 46,75.6 9.4,59 49.2,64.9 18.7,38.6 55.2,55.4 33.4,21.7
|
8
|
-
63.7,48.1 52.2,9.6 73.9,43.4 73.7,3.2 85,41.8 96.2,3.2 96.1,43.4 117.7,9.5 106.3,48.1 136.5,21.6 114.7,55.4 151.2,38.6
|
9
|
-
120.8,64.8 160.6,59 124,75.6 163.8,81.1 124,86.8 160.6,103.3 120.8,97.5 "/>
|
10
|
-
<polyline fill="#EDDDC2" points="52.8,90.2 18.5,90.3 51.4,80.7 18.5,71.2 52.8,71.3 23.9,52.8 56.8,62.6 63,55.4 48.7,24.2
|
11
|
-
71.1,50.2 66.1,16.3 80.2,47.5 85,13.5 89.8,47.5 103.9,16.3 98.9,50.2 121.3,24.2 107,55.4 113.2,62.6 146.1,52.8 117.2,71.3
|
12
|
-
151.5,71.2 118.6,80.7 151.5,90.3 117.2,90.2 "/>
|
13
|
-
</g>
|
14
|
-
<polygon fill="#EDDDC2" points="108.3,45.7 134.4,39.1 127.9,65.2 "/>
|
15
|
-
<polygon fill="#1F0924" points="114.2,48.6 128.5,45 124.9,59.3 114.2,59.3 "/>
|
16
|
-
<polygon fill="#EDDDC2" points="61.7,45.7 35.6,39.1 42.1,65.2 "/>
|
17
|
-
<polygon fill="#1F0924" points="55.8,48.6 41.5,45 45.1,59.3 55.8,59.3 "/>
|
18
|
-
<polyline fill="#B157B5" points="38.3,101.1 131.7,101.1 166.8,88.5 131.5,76 155.8,47.6 119,54.5 125.9,17.7 97.5,42 85,6.7
|
19
|
-
72.5,42 44.1,17.7 51,54.5 14.2,47.6 38.5,76 3.2,88.5 "/>
|
20
|
-
<circle fill="#EDDDC2" cx="61.4" cy="78.7" r="12.1"/>
|
21
|
-
<circle fill="#1F0924" cx="61.4" cy="78.7" r="9.5"/>
|
22
|
-
<circle fill="#EDDDC2" cx="58.2" cy="75.5" r="4.2"/>
|
23
|
-
<circle fill="#EDDDC2" cx="108.6" cy="78.7" r="12.1"/>
|
24
|
-
<circle fill="#1F0924" cx="108.6" cy="78.7" r="9.5"/>
|
25
|
-
<circle fill="#EDDDC2" cx="105.3" cy="75.5" r="4.2"/>
|
26
|
-
<path fill="#EDDDC2" d="M62.9,97.6c0-12.2,9.9-22.1,22.1-22.1s22.1,9.9,22.1,22.1S62.9,109.8,62.9,97.6z"/>
|
27
|
-
<path fill="#1F0924" d="M89.8,96.5c-2,0-3.7-1-4.8-2.5c-1,1.5-2.8,2.5-4.8,2.5c-3.2,0-5.8-2.6-5.8-5.8c0-0.6,0.4-1,1-1s1,0.4,1,1
|
28
|
-
c0,2.1,1.7,3.8,3.8,3.8s3.8-1.7,3.8-3.8h2c0,2.1,1.7,3.8,3.8,3.8s3.8-1.7,3.8-3.8c0-0.6,0.4-1,1-1s1,0.4,1,1
|
29
|
-
C95.5,93.9,93,96.5,89.8,96.5z"/>
|
30
|
-
<path fill="#1F0924" d="M92.8,83.6c0,4.3-3.5,7.8-7.8,7.8s-7.8-3.5-7.8-7.8C77.2,79.3,92.8,79.3,92.8,83.6z"/>
|
31
|
-
<path fill="#EDDDC2" d="M47,101.3c0-4,3.2-7.3,7.3-7.3s7.3,3.2,7.3,7.3S47,105.3,47,101.3z"/>
|
32
|
-
<path fill="#EDDDC2" d="M108.4,101.3c0-4,3.2-7.3,7.3-7.3c4,0,7.3,3.2,7.3,7.3S108.4,105.3,108.4,101.3z"/>
|
33
|
-
</g>
|
34
|
-
</svg>
|