cypress-on-rails 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +3 -0
- data/CHANGELOG.md +15 -0
- data/README.md +9 -3
- data/lib/cypress_on_rails/version.rb +1 -1
- data/lib/generators/cypress_on_rails/install_generator.rb +2 -2
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/cypress_api.spec.js +3 -3
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6bf2c478221a73bfd04c79925bfbda32188e6bad7bc95669df6dd5c0080a5431
|
4
|
+
data.tar.gz: d7c0a2b7db03f4410b0fd2bccadc557b94cbbafa84f1a583eebe8614bbe7b114
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8accebdf65474c35fe2a26c7aed606d5a3d1da221024eb7569e12b5b0fb6802ac8063586aa34ce3564e969cbfea7bbcbd0c360e329b863f7f2dbaddc4d79fd3a
|
7
|
+
data.tar.gz: 4bc6725bb7d1b3b9e1b5c7d698b399113191661623a21f95a58829ac0d825128767e4f565876ffcc7f6e55c77250595adfa9a109d01ba9ffae40b07933b82297
|
data/.travis.yml
CHANGED
@@ -26,6 +26,9 @@ before_install:
|
|
26
26
|
- sudo apt-get -qq update
|
27
27
|
- sudo apt-get install -y build-essential patch ruby-dev zlib1g-dev liblzma-dev libxml2-dev
|
28
28
|
- sudo apt-get install -y xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
|
29
|
+
- travis_retry nvm install 14.13.1
|
30
|
+
- node -v
|
31
|
+
- nvm alias default 14.13.1
|
29
32
|
|
30
33
|
script:
|
31
34
|
- bundle exec rake
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [1.8.1]
|
2
|
+
[Compare]: https://github.com/shakacode/cypress-on-rails/compare/v1.8.0...v1.8.1
|
3
|
+
|
4
|
+
### Fixed
|
5
|
+
* remove "--silent" option when adding cypress [PR 76](https://github.com/shakacode/cypress-on-rails/pull/76)
|
6
|
+
* update cypress examples to use "preserve" instead of "whitelist" [PR 75](https://github.com/shakacode/cypress-on-rails/pull/75) by [alvincrespo](https://github.com/alvincrespo)
|
7
|
+
|
1
8
|
## [1.8.0]
|
2
9
|
[Compare]: https://github.com/shakacode/cypress-on-rails/compare/v1.7.0...v1.8.0
|
3
10
|
|
@@ -122,6 +129,14 @@
|
|
122
129
|
## 0.1.2 (2017-10-31)
|
123
130
|
* First release.
|
124
131
|
|
132
|
+
[1.8.0]: https://github.com/shakacode/cypress-on-rails/compare/v1.7.0...v1.8.0
|
133
|
+
[1.7.0]: https://github.com/shakacode/cypress-on-rails/compare/v1.6.0...v1.7.0
|
134
|
+
[1.6.0]: https://github.com/shakacode/cypress-on-rails/compare/v1.5.1...v1.6.0
|
135
|
+
[1.5.1]: https://github.com/shakacode/cypress-on-rails/compare/v1.5.0...v1.5.1
|
136
|
+
[1.5.0]: https://github.com/shakacode/cypress-on-rails/compare/v1.4.2...v1.5.0
|
137
|
+
[1.4.2]: https://github.com/shakacode/cypress-on-rails/compare/v1.4.1...v1.4.2
|
138
|
+
[1.4.1]: https://github.com/shakacode/cypress-on-rails/compare/v1.4.0...v1.4.1
|
139
|
+
[1.4.0]: https://github.com/shakacode/cypress-on-rails/compare/v1.3.0...v1.4.0
|
125
140
|
[1.3.0]: https://github.com/shakacode/cypress-on-rails/compare/v1.2.1...v1.3.0
|
126
141
|
[1.2.1]: https://github.com/shakacode/cypress-on-rails/compare/v1.2.0...v1.2.1
|
127
142
|
[1.2.0]: https://github.com/shakacode/cypress-on-rails/compare/v1.1.1...v1.2.0
|
data/README.md
CHANGED
@@ -24,7 +24,9 @@ Has examples of setting up state with:
|
|
24
24
|
* scenarios
|
25
25
|
* custom commands
|
26
26
|
|
27
|
-
|
27
|
+
## Resources
|
28
|
+
* [Video of getting started with this gem](https://grant-ps.blog/2018/08/10/getting-started-with-cypress-io-and-ruby-on-rails/)
|
29
|
+
* [Article: Introduction to Cypress on Rails](https://www.shakacode.com/blog/introduction-to-cypress-on-rails/)
|
28
30
|
|
29
31
|
## Getting started
|
30
32
|
|
@@ -47,6 +49,9 @@ bin/rails g cypress_on_rails:install --cypress_folder=test/cypress
|
|
47
49
|
# if you want to install cypress with npm
|
48
50
|
bin/rails g cypress_on_rails:install --install_cypress_with=npm
|
49
51
|
|
52
|
+
# if you already have cypress installed globally
|
53
|
+
bin/rails g cypress_on_rails:install --install_cypress_with=skip
|
54
|
+
|
50
55
|
# to update the generated files run
|
51
56
|
bin/rails g cypress_on_rails:update
|
52
57
|
```
|
@@ -102,7 +107,8 @@ describe('My First Test', function() {
|
|
102
107
|
// This calls to the backend to prepare the application state
|
103
108
|
cy.appFactories([
|
104
109
|
['create_list', 'post', 10],
|
105
|
-
['create', 'post', {title: 'Hello World'} ]
|
110
|
+
['create', 'post', {title: 'Hello World'} ],
|
111
|
+
['create', 'post', 'with_comments', {title: 'Factory_bot Traits here'} ] // use traits
|
106
112
|
])
|
107
113
|
|
108
114
|
// Visit the application under test
|
@@ -249,7 +255,7 @@ beforeEach(() => {
|
|
249
255
|
|
250
256
|
## Contributing
|
251
257
|
|
252
|
-
1. Fork it ( https://github.com/
|
258
|
+
1. Fork it ( https://github.com/shakacode/cypress-on-rails/fork )
|
253
259
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
254
260
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
255
261
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -12,9 +12,9 @@ module CypressOnRails
|
|
12
12
|
install_dir = "#{Dir.pwd}/#{directories.join('/')}"
|
13
13
|
command = nil
|
14
14
|
if options.install_cypress_with == 'yarn'
|
15
|
-
command = "yarn --cwd=#{install_dir} add cypress --dev
|
15
|
+
command = "yarn --cwd=#{install_dir} add cypress --dev"
|
16
16
|
elsif options.install_cypress_with == 'npm'
|
17
|
-
command = "cd #{install_dir}; npm install cypress --save-dev
|
17
|
+
command = "cd #{install_dir}; npm install cypress --save-dev"
|
18
18
|
end
|
19
19
|
if command
|
20
20
|
say command
|
data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/cypress_api.spec.js
CHANGED
@@ -65,7 +65,7 @@ context('Cypress.Cookies', () => {
|
|
65
65
|
// now any cookie with the name 'session_id' will
|
66
66
|
// not be cleared before each new test runs
|
67
67
|
Cypress.Cookies.defaults({
|
68
|
-
|
68
|
+
preserve: 'session_id',
|
69
69
|
})
|
70
70
|
})
|
71
71
|
})
|
@@ -84,8 +84,8 @@ context('Cypress.Server', () => {
|
|
84
84
|
Cypress.Server.defaults({
|
85
85
|
delay: 0,
|
86
86
|
force404: false,
|
87
|
-
|
88
|
-
// handle custom logic for
|
87
|
+
preserve (xhr) {
|
88
|
+
// handle custom logic for preserving
|
89
89
|
},
|
90
90
|
})
|
91
91
|
})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cypress-on-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- miceportal team
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -323,8 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
323
323
|
- !ruby/object:Gem::Version
|
324
324
|
version: '0'
|
325
325
|
requirements: []
|
326
|
-
|
327
|
-
rubygems_version: 2.6.14.4
|
326
|
+
rubygems_version: 3.2.8
|
328
327
|
signing_key:
|
329
328
|
specification_version: 4
|
330
329
|
summary: Integrates cypress with rails or rack applications
|