Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Update rspec_integration.md #299

Merged
merged 1 commit into from
Jul 21, 2024
Merged
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions documentation/docs/article/guides/rspec_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ require 'playwright/test'

RSpec.configure do |config|
# include web-first assertions just for feature specs.
config.include Playwright::RSpec::Matchers, type: :feature
config.include Playwright::Test::Matchers, type: :feature
end
```

If you want to use web-first assertions only for some specs, you can include `Playwright::RSpec::Matchers` in the spec file directly.
If you want to use web-first assertions only for some specs, you can include `Playwright::Test::Matchers` in the spec file directly.

```ruby title=spec/system/example_spec.rb
require 'rails_helper'
require 'playwright/test'

describe 'example' do
include Playwright::RSpec::Matchers
include Playwright::Test::Matchers

it 'should work' do
...
Expand Down
Loading