Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ If migrating from the `cypress-rails` gem:
```ruby
# Remove
gem 'cypress-rails'

# Add
gem 'cypress-on-rails', '~> 1.0'
```
Expand Down
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,28 @@ Consider first learning the basics of Playwright before attempting to integrate

* [Good start Here](https://playwright.dev/docs/writing-tests)

## Quick Start

```bash
# 1. Add to Gemfile
gem 'cypress-on-rails', '~> 1.0'

# 2. Install and generate
bundle install
bin/rails g cypress_on_rails:install

# 3. Run tests (new rake tasks!)
bin/rails cypress:open # Open Cypress UI
bin/rails cypress:run # Run headless
```

For Playwright:
```bash
bin/rails g cypress_on_rails:install --framework playwright
bin/rails playwright:open # Open Playwright UI
bin/rails playwright:run # Run headless
```

## Overview

Gem for using [cypress.io](http://github.com/cypress-io/) or [playwright.dev](https://playwright.dev/) in Rails and Ruby Rack applications to control state as mentioned in [Cypress Best Practices](https://docs.cypress.io/guides/references/best-practices.html#Organizing-Tests-Logging-In-Controlling-State).
Expand All @@ -64,7 +86,16 @@ Has examples of setting up state with:
* scenarios
* custom commands

## Resources
## Documentation

### πŸ“š Essential Guides
* **[Best Practices Guide](docs/BEST_PRACTICES.md)** - Recommended patterns and practices
* **[Troubleshooting Guide](docs/TROUBLESHOOTING.md)** - Solutions to common issues
* **[Playwright Guide](docs/PLAYWRIGHT_GUIDE.md)** - Complete Playwright documentation
* **[VCR Integration Guide](docs/VCR_GUIDE.md)** - HTTP recording and mocking
* **[DX Improvements](docs/DX_IMPROVEMENTS.md)** - Recent improvements based on user feedback

### πŸŽ₯ Resources
* [Video of getting started with this gem](https://grant-ps.blog/2018/08/10/getting-started-with-cypress-io-and-ruby-on-rails/)
* [Article: Introduction to Cypress on Rails](https://www.shakacode.com/blog/introduction-to-cypress-on-rails/)

Expand Down
Loading
Loading