Skip to content

Commit

Permalink
Migrate to new percy dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbergja committed Nov 22, 2023
1 parent 00f04be commit 394ce03
Show file tree
Hide file tree
Showing 5 changed files with 678 additions and 2,031 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ group :test do
gem "capybara", ">= 2.15"
gem "capybara-screenshot"
gem "factory_bot_rails", "~> 4.8", require: false
gem "percy-capybara", "~> 4.0.0"
gem "percy-capybara", "~> 5.0.0"
gem "rails-controller-testing"
gem "rspec_junit_formatter"
gem "selenium-webdriver"
Expand Down
5 changes: 3 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ GEM
parallel (1.22.1)
parser (3.1.3.0)
ast (~> 2.4.1)
percy-capybara (4.0.2)
percy-capybara (5.0.0)
capybara (>= 3)
pg (1.3.5)
pry (0.12.2)
coderay (~> 1.1.0)
Expand Down Expand Up @@ -438,7 +439,7 @@ DEPENDENCIES
net-ldap
omniauth-cas
omniauth-rails_csrf_protection (~> 0.1)
percy-capybara (~> 4.0.0)
percy-capybara (~> 5.0.0)
pg
pry
pry-byebug
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.23.4",
"@babel/preset-env": "^7.23.3",
"@percy/agent": "^0.19.1",
"@happy-dom/jest-environment": "^12.10.3",
"@percy/cli": "^1.27.4",
"@vue/test-utils": "^1.0.0-beta.25",
"babel-core": "^7.0.0-bridge",
"babel-plugin-dynamic-import-node": "^2.3.3",
Expand All @@ -27,8 +28,7 @@
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^5.1.0",
"jest": "^28.1.2",
"@happy-dom/jest-environment": "^12.10.3",
"jest": "^29.7.0",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-preset-env": "^9.3.0",
"sass": "^1.69.5",
Expand Down Expand Up @@ -61,5 +61,8 @@
"setupFilesAfterEnv": [
"./app/javascript/test/setup.js"
]
},
"resolutions": {
"jackspeak": "2.1.1"
}
}
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
require "devise"
require Rails.root.join("spec", "support", "capybara_selenium.rb")
require Rails.root.join("spec", "support", "mailer.rb")
require "percy"
require "percy/capybara"
require "capybara/rspec"

# Requires supporting ruby files with custom matchers and macros, etc, in
Expand Down
Loading

0 comments on commit 394ce03

Please sign in to comment.