Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9b3ed03
require 2fa
searls Mar 20, 2023
8dd954f
Supports Cypress v10 or later
S-H-GAMELINKS Jun 5, 2023
4e9cd12
Add assets precompile
S-H-GAMELINKS Jun 5, 2023
5f97d9f
Add NODE_OPTIONS=--openssl-legacy-provider options
S-H-GAMELINKS Jun 5, 2023
42c772e
Add RAILS_ENV=test
S-H-GAMELINKS Jun 5, 2023
c376925
Warn and skip when Cypress config already exist
S-H-GAMELINKS Jun 5, 2023
ea4319e
Format Cypress default config
S-H-GAMELINKS Jun 5, 2023
1d015a5
Merge pull request #156 from S-H-GAMELINKS/support/cypress-v10or-later
searls Jun 5, 2023
1008105
tweaks
searls Jun 5, 2023
ad8f862
0.6.0
searls Jun 5, 2023
8ea684d
Fix deprecation warning for clear_active_connections! call
mhoofman Jul 11, 2023
56217ee
Merge pull request #157 from mhoofman/fix-clear-active-connections-de…
searls Jul 12, 2023
bb1bf9b
0.6.1
searls Jul 12, 2023
b38b131
Configure new environment variable to allow specification of external…
dmanliclic715 Feb 8, 2024
31e51bd
Add documentation for CYPRESS_DIR env var to readme and include CYPRE…
dmanliclic715 Feb 8, 2024
3a4a99d
Address PR feedback
dmanliclic715 Feb 8, 2024
ae2a607
Update env var to have CYPRESS_RAILS prefix and set default of CYPRES…
dmanliclic715 Feb 12, 2024
6090721
Merge pull request #159 from Home-Chef-Tech/add-cypress-dir-environme…
searls Feb 13, 2024
626bf70
0.7.0
searls Feb 13, 2024
ef84fa0
update stuff
searls Feb 13, 2024
402af0e
update versions
searls Feb 13, 2024
37a9579
Compatibility with Rack 3.1
krzysztofjablonski Aug 2, 2024
7074329
Bump rack version to 3.1
rosston Sep 6, 2024
ba5ba30
Merge pull request #163 from krzysztofjablonski/patch-1
rosston Sep 6, 2024
348c6ed
Bump actions/checkout version
rosston Sep 6, 2024
86c7cbd
Bump version to 0.7.1
rosston Sep 6, 2024
1727089
Merge testdouble/main into envato/configuration-via-ruby-and-env-file
orien Aug 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:

strategy:
matrix:
ruby-version: ['2.7', '3.0']
ruby-version: ['3.0', '3.3']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# CHANGELOG

## 0.7.1
* Add Rack 3.1 support [#163](https://github.com/testdouble/cypress-rails/pull/163)

## 0.7.0
git
* Add a `CYPRESS_RAILS_CYPRESS_DIR` option for cases where
the cypress tests live outside the CYPRESS_RAILS_DIR [#159](https://github.com/testdouble/cypress-rails/pull/159)

## 0.6.1

* Fix a deprecation warning in Rails
[#157](https://github.com/testdouble/cypress-rails/pull/157)

## 0.6.0

* Update initializer task to generate valid Cypress v10+ configurations
[#156](https://github.com/testdouble/cypress-rails/pull/156)

## 0.5.5

* Add Puma 6 support
Expand Down
167 changes: 107 additions & 60 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,96 +1,143 @@
PATH
remote: .
specs:
cypress-rails (0.5.5)
cypress-rails (0.7.1)
puma (>= 3.8.0)
railties (>= 5.2.0)

GEM
remote: https://rubygems.org/
specs:
actionpack (7.0.4)
actionview (= 7.0.4)
activesupport (= 7.0.4)
rack (~> 2.0, >= 2.2.0)
actionpack (7.1.3)
actionview (= 7.1.3)
activesupport (= 7.1.3)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actionview (7.0.4)
activesupport (= 7.0.4)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actionview (7.1.3)
activesupport (= 7.1.3)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activesupport (7.0.4)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activesupport (7.1.3)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.6)
builder (3.2.4)
concurrent-ruby (1.1.10)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
crass (1.0.6)
erubi (1.11.0)
i18n (1.12.0)
drb (2.2.0)
ruby2_keywords
erubi (1.12.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
loofah (2.19.0)
io-console (0.7.2)
irb (1.13.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.1)
language_server-protocol (3.17.0.3)
lint_roller (1.1.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
method_source (1.0.0)
mini_portile2 (2.8.0)
minitest (5.15.0)
nio4r (2.5.8)
nokogiri (1.13.8)
mini_portile2 (~> 2.8.0)
nokogiri (>= 1.12.0)
minitest (5.22.2)
mutex_m (0.2.0)
nio4r (2.7.0)
nokogiri (1.16.2)
racc (~> 1.4)
parallel (1.22.1)
parser (3.1.2.0)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
puma (6.0.0)
racc
psych (5.1.2)
stringio
puma (6.4.2)
nio4r (~> 2.0)
racc (1.6.0)
rack (2.2.4)
rack-test (2.0.2)
racc (1.7.3)
rack (3.1.7)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.4.3)
loofah (~> 2.3)
railties (7.0.4)
actionpack (= 7.0.4)
activesupport (= 7.0.4)
method_source
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.1.3)
actionpack (= 7.1.3)
activesupport (= 7.1.3)
irb
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0)
zeitwerk (~> 2.5)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.4.0)
rexml (3.2.5)
rubocop (1.29.1)
rake (13.1.0)
rdoc (6.6.3.1)
psych (>= 4.0.0)
regexp_parser (2.9.0)
reline (0.5.7)
io-console (~> 0.5)
rexml (3.2.6)
rubocop (1.59.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.1.0.0)
parser (>= 3.2.2.4)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.17.0, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.18.0)
parser (>= 3.1.1.0)
rubocop-performance (1.13.3)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
ruby-progressbar (1.11.0)
standard (1.12.1)
rubocop (= 1.29.1)
rubocop-performance (= 1.13.3)
thor (1.2.1)
tzinfo (2.0.5)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-performance (1.20.2)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
standard (1.33.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.59.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.3)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.3.1)
lint_roller (~> 1.1)
rubocop-performance (~> 1.20.2)
stringio (3.1.1)
thor (1.3.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.1.0)
zeitwerk (2.6.1)
unicode-display_width (2.5.0)
webrick (1.8.1)
zeitwerk (2.6.13)

PLATFORMS
ruby
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Once installed, you'll want to run:
$ rake cypress:init
```

This will override a few configurations in your `cypress.json` configuration
This will override a few configurations in your `cypress.config.js` configuration
file.

## Usage
Expand Down Expand Up @@ -155,13 +155,14 @@ preferred environment variables project-wide using a tool like
[dotenv](https://github.com/bkeepers/dotenv).


* **CYPRESS_RAILS_DIR** (default: `Dir.pwd`) the directory of your project
* **CYPRESS_RAILS_DIR** (default: `Dir.pwd`) the directory of your Rails project
* **CYPRESS_RAILS_CYPRESS_DIR** (default: _same value as `rails_dir`_) the directory of your Cypress project
* **CYPRESS_RAILS_HOST** (default: `"127.0.0.1"`) the hostname to bind to
* **CYPRESS_RAILS_PORT** (default: _a random available port_) the port to run
the Rails test server on
* **CYPRESS_RAILS_BASE_PATH** (default: `"/"`) the base path for all Cypress's
requests to the app (e.g. via `cy.visit()`). If you've customized your
`baseUrl` setting (e.g. in `cypress.json`), you'll need to duplicate it with
`baseUrl` setting (e.g. in `cypress.config.js`), you'll need to duplicate it with
this environment variable
* **CYPRESS_RAILS_TRANSACTIONAL_SERVER** (default: `true`) when true, will start
a transaction on all database connections before launching the server. In
Expand Down
1 change: 1 addition & 0 deletions cypress-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Gem::Specification.new do |spec|
spec.summary = "Helps you write Cypress tests of your Rails app"
spec.homepage = "https://github.com/testdouble/cypress-rails"
spec.license = "MIT"
spec.metadata["rubygems_mfa_required"] = "true"

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
Expand Down
2 changes: 2 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3-shm
/db/*.sqlite3-wal

# Ignore all logfiles and tempfiles.
/log/*
Expand Down
Loading