Skip to content

Commit 2dff300

Browse files
committed
chore: release 0.5.0
1 parent 61fb6fa commit 2dff300

14 files changed

Lines changed: 640 additions & 17 deletions
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v10
14+
with:
15+
days-before-issue-stale: 30
16+
days-before-issue-close: 14
17+
stale-issue-label: "stale"
18+
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
19+
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
20+
days-before-pr-stale: -1
21+
days-before-pr-close: -1
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/label_issues.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Label issues
2+
on:
3+
issues:
4+
types:
5+
- reopened
6+
- opened
7+
jobs:
8+
label_issues:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
steps:
13+
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
14+
env:
15+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
GH_REPO: ${{ github.repository }}
17+
NUMBER: ${{ github.event.issue.number }}
18+
LABELS: triage

Appraisals

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ end
1313
appraise "rails-8.0" do
1414
gem "rails", "~> 8.0.0"
1515
end
16+
17+
appraise "rails-8.1" do
18+
gem "rails", "~> 8.1.0"
19+
end

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.5.0] - 2026-02-09
11+
12+
### Added
13+
14+
- Minitest integration now includes auto-waiting assertions: `assert_text`, `refute_text`, `assert_selector`, `refute_selector`, `assert_current_path`, `refute_current_path`
15+
- `E2E::Minitest::TestCase` now automatically quits the browser session after the test suite finishes
16+
1017
## [0.4.2] - 2026-02-07
1118

1219
### Fixed

README.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ class UserLoginTest < E2E::Minitest::TestCase
107107
fill_in "Password", with: "password"
108108
click_button "Sign In"
109109
110-
assert_includes page.body, "Welcome, User!"
110+
assert_text "Welcome, User!"
111+
assert_current_path "/dashboard"
111112
end
112113
end
113114
```
@@ -122,6 +123,8 @@ Set the `HEADLESS` environment variable to `false`:
122123

123124
```bash
124125
HEADLESS=false bundle exec rspec spec/e2e
126+
# or for minitest
127+
HEADLESS=false ruby test/e2e/login_test.rb
125128
```
126129

127130
### Pausing for Debugging
@@ -142,7 +145,7 @@ Alternatively, you can just use `sleep(10)` if you want the browser to stay open
142145

143146
### Automatic Screenshots
144147

145-
If a test fails in RSpec, a screenshot is automatically saved to `tmp/screenshots/` for quick investigation.
148+
If a test fails, a screenshot is automatically saved to `tmp/screenshots/` for quick investigation.
146149

147150
### API Reference
148151

@@ -175,7 +178,7 @@ all("li") # Returns Array<E2E::Element>
175178
find("button", text: "Save") # Filter by text
176179
```
177180

178-
#### Assertions & Matchers
181+
#### RSpec Matchers
179182

180183
All text and path matchers **automatically wait** for the expected condition to be met (up to `wait_timeout` seconds), making your tests resilient to page transitions and async rendering.
181184

@@ -207,6 +210,26 @@ expect(find("button")).to be_disabled
207210
expect(find("input")).to be_enabled
208211
```
209212

213+
#### Minitest Assertions
214+
215+
These assertions mimic the behavior of RSpec matchers, including **auto-waiting**.
216+
217+
```ruby
218+
# Check for content (auto-waiting)
219+
assert_text "Welcome"
220+
refute_text "Error"
221+
assert_text /welcome/i
222+
223+
# Check for specific elements (auto-waiting)
224+
assert_selector ".user-profile"
225+
refute_selector "#loading-spinner"
226+
227+
# Check current path (auto-waiting)
228+
assert_current_path "/dashboard"
229+
assert_current_path /\/users\/\d+/
230+
refute_current_path "/login"
231+
```
232+
210233
#### Assertions & Data
211234

212235
```ruby

gemfiles/rails_7.0.gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
e2e (0.4.2)
4+
e2e (0.5.0)
55
playwright-ruby-client (>= 1.40.0)
66
rack
77
rackup
@@ -335,7 +335,7 @@ CHECKSUMS
335335
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
336336
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
337337
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
338-
e2e (0.4.2)
338+
e2e (0.5.0)
339339
erb (6.0.1) sha256=28ecdd99c5472aebd5674d6061e3c6b0a45c049578b071e5a52c2a7f13c197e5
340340
erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
341341
globalid (1.3.0) sha256=05c639ad6eb4594522a0b07983022f04aa7254626ab69445a0e493aa3786ff11

gemfiles/rails_7.1.gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
e2e (0.4.2)
4+
e2e (0.5.0)
55
playwright-ruby-client (>= 1.40.0)
66
rack
77
rackup
@@ -349,7 +349,7 @@ CHECKSUMS
349349
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
350350
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
351351
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
352-
e2e (0.4.2)
352+
e2e (0.5.0)
353353
erb (6.0.1) sha256=28ecdd99c5472aebd5674d6061e3c6b0a45c049578b071e5a52c2a7f13c197e5
354354
erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
355355
globalid (1.3.0) sha256=05c639ad6eb4594522a0b07983022f04aa7254626ab69445a0e493aa3786ff11

gemfiles/rails_7.2.gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
e2e (0.4.2)
4+
e2e (0.5.0)
55
playwright-ruby-client (>= 1.40.0)
66
rack
77
rackup
@@ -343,7 +343,7 @@ CHECKSUMS
343343
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
344344
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
345345
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
346-
e2e (0.4.2)
346+
e2e (0.5.0)
347347
erb (6.0.1) sha256=28ecdd99c5472aebd5674d6061e3c6b0a45c049578b071e5a52c2a7f13c197e5
348348
erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
349349
globalid (1.3.0) sha256=05c639ad6eb4594522a0b07983022f04aa7254626ab69445a0e493aa3786ff11

gemfiles/rails_8.0.gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
e2e (0.4.2)
4+
e2e (0.5.0)
55
playwright-ruby-client (>= 1.40.0)
66
rack
77
rackup
@@ -339,7 +339,7 @@ CHECKSUMS
339339
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
340340
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
341341
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
342-
e2e (0.4.2)
342+
e2e (0.5.0)
343343
erb (6.0.1) sha256=28ecdd99c5472aebd5674d6061e3c6b0a45c049578b071e5a52c2a7f13c197e5
344344
erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
345345
globalid (1.3.0) sha256=05c639ad6eb4594522a0b07983022f04aa7254626ab69445a0e493aa3786ff11

gemfiles/rails_8.1.gemfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "irb"
6+
gem "rake", "~> 13.0"
7+
gem "rspec", "~> 3.0"
8+
gem "appraisal"
9+
gem "lefthook"
10+
gem "standard"
11+
gem "rubocop-rspec"
12+
gem "rubocop-performance"
13+
gem "rails", "~> 8.1.0"
14+
15+
gemspec path: "../"

0 commit comments

Comments
 (0)