Skip to content

Commit ab4a498

Browse files
authored
PER_5831: Update dependencies and selenium test (#6)
* chore: update dependencies and tests for latest selenium & percy * chore(ci): update workflow actions and runtime versions * empty commit
1 parent 6ec0a8c commit ab4a498

File tree

7 files changed

+324
-333
lines changed

7 files changed

+324
-333
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
7+
- uses: actions/checkout@v4
88
- uses: ruby/setup-ruby@v1
99
with:
10-
ruby-version: 2.6
10+
ruby-version: 3.4
1111
bundler-cache: true
12-
- uses: actions/cache@v3
12+
- uses: actions/cache@v4
1313
with:
1414
path: "./vendor/bundle"
15-
key: v1/${{ runner.os }}/ruby-2.6/${{ hashFiles('**/Gemfile.lock') }}
16-
restore-keys: v1/${{ runner.os }}/ruby-2.6/
17-
- uses: actions/setup-node@v1
15+
key: v1/${{ runner.os }}/ruby-3.4/${{ hashFiles('**/Gemfile.lock') }}
16+
restore-keys: v1/${{ runner.os }}/ruby-3.4/
17+
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 18
20-
- uses: actions/cache@v3
19+
node-version: 20
20+
- uses: actions/cache@v4
2121
with:
2222
path: ~/.npm
23-
key: v1/${{ runner.os }}/node-18/${{ hashFiles('**/package-lock.lock') }}
24-
restore-keys: v1/${{ runner.os }}/node-18/
23+
key: v1/${{ runner.os }}/node-20/${{ hashFiles('**/package-lock.json') }}
24+
restore-keys: v1/${{ runner.os }}/node-20/
2525
- run: make test
2626
env:
2727
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ source "https://rubygems.org"
55
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
66

77
# gem "rails"
8-
gem 'selenium-webdriver', '~> 4.0.0.beta3'
8+
gem 'selenium-webdriver', '~> 4.36.0'
99
gem 'percy-selenium', '~> 1.1.1'
10+
gem 'webrick'
11+
gem 'base64'

Gemfile.lock

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
childprocess (4.0.0)
4+
base64 (0.3.0)
5+
json (2.13.2)
6+
logger (1.7.0)
57
percy-selenium (1.1.1)
68
selenium-webdriver (>= 4.0.0.beta1)
7-
rexml (3.2.5)
8-
rubyzip (2.3.0)
9-
selenium-webdriver (4.0.0.beta3)
10-
childprocess (>= 0.5, < 5.0)
11-
rexml (~> 3.2)
12-
rubyzip (>= 1.2.2)
9+
prism (1.4.0)
10+
rexml (3.4.4)
11+
rubyzip (3.1.1)
12+
selenium-webdriver (4.36.0)
13+
base64 (~> 0.2)
14+
json (<= 2.13.2)
15+
logger (~> 1.4)
16+
prism (~> 1.0, < 1.5)
17+
rexml (~> 3.2, >= 3.2.5)
18+
rubyzip (>= 1.2.2, < 4.0)
1319
websocket (~> 1.0)
14-
websocket (1.2.9)
20+
webrick (1.9.1)
21+
websocket (1.2.11)
1522

1623
PLATFORMS
24+
arm64-darwin-24
1725
ruby
1826

1927
DEPENDENCIES
28+
base64
2029
percy-selenium (~> 1.1.1)
21-
selenium-webdriver (~> 4.0.0.beta3)
30+
selenium-webdriver (~> 4.36.0)
31+
webrick
2232

2333
BUNDLED WITH
24-
1.17.2
34+
2.7.1

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
Example app showing integration of [Percy](https://percy.io/) visual testing
66
into Ruby Selenium tests.
77

8+
## Versions used in this branch
9+
10+
- selenium-webdriver: 4.36.0
11+
- percy-selenium: 1.1.1
12+
- @percy/cli: 1.31.2
13+
- todomvc-app-css: 2.4.3
14+
815
Based on the [TodoMVC](https://github.com/tastejs/todomvc) [VanillaJS](https://github.com/tastejs/todomvc/tree/master/examples/vanillajs)
916
app, forked at commit [4e301c7014093505dcf6678c8f97a5e8dee2d250](https://github.com/tastejs/todomvc/tree/4e301c7014093505dcf6678c8f97a5e8dee2d250).
1017

0 commit comments

Comments
 (0)