percy-selenium 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8f68750e4ecba2e810753f97e39f038a2e798201e326e5b01b2dbcb71abdcf4
4
- data.tar.gz: 3d152a595681acfb6849a48f2aaa0f74583f70f11c2e5ddbce5591c32b9c4c20
3
+ metadata.gz: 945ce201dd584f7572e5c0072267e979ed2babcad71ddd39bdf3b26d30d37b96
4
+ data.tar.gz: 23afec0288668a630ce79c2d89e6fff6433f56fcb06caf822eed7094f8b8546a
5
5
  SHA512:
6
- metadata.gz: 88c54fc694e3b02508bd1f8b3812543dd3eabc7b1fbad6a85a5b7fb3b3dc014f1bbdee89c799088b9c175719df586d926875d0678d659b3f31404c05fc7092a0
7
- data.tar.gz: ddfd1237e437efe2fd5f8789983374a0793180e3aa4a751633122c20883c80fc38291459540e66e75167f89de6ee4f3d73c9fdaed6c517874ad56b9c2e9d28e5
6
+ metadata.gz: 4253c8396bd175129d82819aee0b975a4de3d5e0060bcc1c6d5449d93de64387513b1397f1570596e7455dee7ec6d2d15d7c8614c5dba44081327e5096e874c5
7
+ data.tar.gz: b567e1065b7b971a79da4f18d0e6cd1327129fcde8a0dce5b12299054fe9cd404af19d4643372320226010af7d28780114911b8e7c891b49dad1277868a2dd2a
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us fix the issue
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+ ---
8
+ <!--
9
+ ## Reach out to Percy support instead?
10
+
11
+ If you’re having issues that _aren’t SDK bugs_, it would be best for you to
12
+ reach out to support instead: support@percy.io or
13
+ https://www.browserstack.com/contact#technical-support
14
+ -->
15
+
16
+ ## The problem
17
+
18
+ Briefly describe the issue you are experiencing (or the feature you want to see
19
+ added to Percy). Tell us what you were trying to do and what happened
20
+ instead. Remember, this is _not_ a place to ask questions. For that, go to
21
+ https://github.com/percy/cli/discussions/new
22
+
23
+ ## Environment
24
+
25
+ - Node version:
26
+ - `@percy/cli` version:
27
+ - Version of Percy SDK you’re using:
28
+ - If needed, a build or snapshot ID:
29
+ - OS version:
30
+ - Type of shell command-line [interface]:
31
+
32
+ ## Details
33
+
34
+ If necessary, describe the problem you have been experiencing in more detail.
35
+
36
+ ## Debug logs
37
+
38
+ If you are reporting a bug, _always_ include logs! Run a Percy build with
39
+ `--verbose` to get the full debug logs. You can also set an environment var
40
+ `PERCY_LOGLEVEL=debug` to get debug logs. For example, `percy exec --verbose --
41
+ [test command]`. Please include the full complete test output.
42
+
43
+ ## Code to reproduce issue
44
+
45
+ Given the nature of testing/environment bugs, it’s best to try and isolate the
46
+ issue in a reproducible repo. This will make it much easier for us to diagnose
47
+ and fix.
@@ -3,28 +3,26 @@ tag-template: 'v$RESOLVED_VERSION'
3
3
  categories:
4
4
  - title: '💥 Breaking Changes'
5
5
  labels:
6
- - breaking
6
+ - 💥 breaking
7
7
  - title: '✨ Enhancements'
8
8
  labels:
9
- - feature
10
- - enhancement
9
+ - ✨ enhancement
11
10
  - title: '🐛 Bug Fixes'
12
11
  labels:
13
- - fix
14
- - bugfix
15
- - bug
16
- - title: '🏗 Maintenance'
12
+ - 🐛 bug
13
+ - title: '🏗 Maintenance'
17
14
  labels:
18
- - chore
19
- - dependencies
15
+ - 🧹 maintenance
16
+ - title: '⬆️⬇️ Dependency Updates'
17
+ labels:
18
+ - ⬆️⬇️ dependencies
20
19
  change-title-escapes: '\<*_&#@'
21
20
  version-resolver:
22
21
  major:
23
22
  labels:
24
- - breaking
23
+ - 💥 breaking
25
24
  minor:
26
25
  labels:
27
- - feature
28
- - enhancement
26
+ - ✨ enhancement
29
27
  default: patch
30
28
  template: '$CHANGES'
@@ -0,0 +1,30 @@
1
+ name: 'Close stale issues and PRs'
2
+ on:
3
+ schedule:
4
+ - cron: '0 19 * * 2'
5
+
6
+ jobs:
7
+ stale:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/stale@v4
11
+ with:
12
+ stale-issue-message: >-
13
+ This issue is stale because it has been open for more than 14 days with no activity.
14
+ Remove stale label or comment or this will be closed in 14 days.
15
+ stale-pr-message: >-
16
+ This PR is stale because it has been open for more than 14 days with no activity.
17
+ Remove stale label or comment or this will be closed in 14 days.
18
+ close-issue-message: >-
19
+ This issue was closed because it has been stalled for 28 days with no activity.
20
+ close-pr-message: >-
21
+ This PR was closed because it has been stalled for 28 days with no activity.
22
+ days-before-issue-stale: 14
23
+ days-before-pr-stale: 14
24
+ # close 14 days _after_ initial warning
25
+ days-before-issue-close: 14
26
+ days-before-pr-close: 14
27
+ exempt-pr-labels: '❄️ on ice'
28
+ exempt-issue-labels: '🐛 bug,❄️ on ice,✨ enhancement'
29
+ exempt-all-assignees: true
30
+ stale-pr-label: '🍞 stale'
data/README.md CHANGED
@@ -61,9 +61,4 @@ $ percy exec -- [ruby test command]
61
61
 
62
62
  - `driver` (**required**) - A selenium-webdriver driver instance
63
63
  - `name` (**required**) - The snapshot name; must be unique to each snapshot
64
- - `options` - Additional snapshot options (overrides any project options)
65
- - `widths` - An array of widths to take screenshots at
66
- - `min_height` - The minimum viewport height to take screenshots at
67
- - `percy_css` - Percy specific CSS only applied in Percy's rendering environment
68
- - `request_headers` - Headers that should be used during asset discovery
69
- - `enable_javascript` - Enable JavaScript in Percy's rendering environment
64
+ - `options` - [See per-snapshot configuration options](https://docs.percy.io/docs/cli-configuration#per-snapshot-configuration)
data/lib/percy.rb CHANGED
@@ -25,7 +25,8 @@ module Percy
25
25
  url: driver.current_url,
26
26
  dom_snapshot: dom_snapshot,
27
27
  client_info: CLIENT_INFO,
28
- environment_info: ENV_INFO,)
28
+ environment_info: ENV_INFO,
29
+ **options,)
29
30
 
30
31
  unless response.body.to_json['success']
31
32
  raise StandardError, data['error']
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Percy
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
@@ -89,7 +89,7 @@ RSpec.describe Percy, type: :feature do
89
89
  .to_return(status: 200, body: '{"success": "true" }', headers: {})
90
90
 
91
91
  visit 'index.html'
92
- Percy.snapshot(page, 'Name')
92
+ Percy.snapshot(page, 'Name', widths: [944])
93
93
 
94
94
  expect(WebMock).to have_requested(:post, "#{Percy::PERCY_SERVER_ADDRESS}/percy/snapshot")
95
95
  .with(
@@ -100,6 +100,7 @@ RSpec.describe Percy, type: :feature do
100
100
  "<html><head><title>I am a page</title></head><body>Snapshot me\n</body></html>",
101
101
  client_info: "percy-selenium-ruby/#{Percy::VERSION}",
102
102
  environment_info: "selenium/#{Selenium::WebDriver::VERSION} ruby/#{RUBY_VERSION}",
103
+ widths: [944],
103
104
  }.to_json,
104
105
  ).once
105
106
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percy-selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-28 00:00:00.000000000 Z
11
+ date: 2021-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -101,11 +101,13 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
104
105
  - ".github/dependabot.yml"
105
106
  - ".github/release-drafter.yml"
106
107
  - ".github/workflows/changelog.yml"
107
108
  - ".github/workflows/lint.yml"
108
109
  - ".github/workflows/release.yml"
110
+ - ".github/workflows/stale.yml"
109
111
  - ".github/workflows/test.yml"
110
112
  - ".gitignore"
111
113
  - ".rspec"