Skip to content

Commit 7dc7581

Browse files
authored
Update README.md
1 parent 52cfca4 commit 7dc7581

File tree

1 file changed

+34
-10
lines changed

1 file changed

+34
-10
lines changed

README.md

+34-10
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,56 @@
66

77
----
88

9-
This project is sponsored by the software consulting firm [ShakaCode](https://www.shakacode.com), creator of the [React on Rails Gem](https://github.com/shakacode/react_on_rails). We focus on React (with TS or ReScript) front-ends, often with Ruby on Rails or Gatsby. See [our recent work](https://www.shakacode.com/recent-work) and [client engagement model](https://www.shakacode.com/blog/client-engagement-model/). Feel free to engage in discussions around this gem at our [Slack Channel](https://join.slack.com/t/reactrails/shared_invite/enQtNjY3NTczMjczNzYxLTlmYjdiZmY3MTVlMzU2YWE0OWM0MzNiZDI0MzdkZGFiZTFkYTFkOGVjODBmOWEyYWQ3MzA2NGE1YWJjNmVlMGE) or our [forum category for Cypress](https://forum.shakacode.com/c/cypress-on-rails/55).
9+
This project is sponsored by the software consulting firm [ShakaCode](https://www.shakacode.com), creator of the [React on Rails Gem](https://github.com/shakacode/react_on_rails).
1010

11-
Interested in joining a small team that loves open source? Check our [careers page](https://www.shakacode.com/career/).
11+
### ShakaCode Support
1212

13-
Need help with cypress-on-rails? Contact [ShakaCode](mailto:[email protected]).
13+
[ShakaCode](https://www.shakacode.com) focuses on helping Ruby on Rails teams use React and Webpack better. We can upgrade your project and improve your development and customer experiences, allowing you to focus on building new features or fixing bugs instead.
14+
15+
For an overview of working with us, see our [Client Engagement Model](https://www.shakacode.com/blog/client-engagement-model/) article and [how we bill for time](https://www.shakacode.com/blog/shortcut-jira-trello-github-toggl-time-and-task-tracking/).
16+
17+
We also specialize in helping development teams lower infrastructure and CI costs. Check out our project [Control Plane Flow](https://github.com/shakacode/control-plane-flow/), which can allow you to get the ease of Heroku with the power of Kubernetes and big cost savings.
18+
19+
If you think ShakaCode can help your project, [click here](https://meetings.hubspot.com/justingordon/30-minute-consultation) to book a call with [Justin Gordon](mailto:[email protected]), the creator of React on Rails and Shakapacker.
20+
21+
Here's a testimonial of how ShakaCode can help from [Florian Gößler](https://github.com/FGoessler) of [Blinkist](https://www.blinkist.com/), January 2, 2023:
22+
> Hey Justin 👋
23+
>
24+
> I just wanted to let you know that we today shipped the webpacker to shakapacker upgrades and it all seems to be running smoothly! Thanks again for all your support and your teams work! 😍
25+
>
26+
> On top of your work, it was now also very easy for me to upgrade Tailwind and include our external node_module based web component library which we were using for our other (more modern) apps already. That work is going to be shipped later this week though as we are polishing the last bits of it. 😉
27+
>
28+
> Have a great 2023 and maybe we get to work together again later in the year! 🙌
29+
30+
Read the [full review here](https://clutch.co/profile/shakacode#reviews?sort_by=date_DESC#review-2118154).
31+
32+
---
33+
34+
Feel free to engage in discussions around this gem at our [Slack Channel](https://join.slack.com/t/reactrails/shared_invite/enQtNjY3NTczMjczNzYxLTlmYjdiZmY3MTVlMzU2YWE0OWM0MzNiZDI0MzdkZGFiZTFkYTFkOGVjODBmOWEyYWQ3MzA2NGE1YWJjNmVlMGE) or our [forum category for Cypress](https://forum.shakacode.com/c/cypress-on-rails/55).
35+
36+
Need help with cypress-on-rails? Contact [Justin Gordon](mailto:[email protected]).
1437

1538
----
1639

17-
# Totally new to Cypress?
18-
Suggest you first learn the basics of Cypress before attempting to integrate with Ruby on Rails
40+
# New to Cypress?
41+
Suggest you first learn the basics of Cypress before attempting to integrate with Ruby on Rails.
1942

2043
* [Good start Here](https://docs.cypress.io/examples/tutorials.html#Best-Practices)
2144

2245
# Totally new to Playwright?
23-
Suggest you first learn the basics of Playwright before attempting to integrate with Ruby on Rails
46+
Suggest you first learn the basics of Playwright before attempting to integrate with Ruby on Rails.
2447

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

2750
## Overview
2851

2952
Gem for using [cypress.io](http://github.com/cypress-io/) or [playwright.dev](https://playwright.dev/) in Rails and Ruby Rack applications with the goal of controlling state as mentioned in [Cypress Best Practices](https://docs.cypress.io/guides/references/best-practices.html#Organizing-Tests-Logging-In-Controlling-State)
3053

31-
It allows you to run code in the application context when executing cypress or playwright tests.
54+
It allows you to run code in the context of the application when executing Cypress or Playwright tests.
3255
Do things like:
3356
* use database_cleaner before each test
3457
* seed the database with default data for each test
35-
* use factory_bot to setup data
58+
* use factory_bot to set up data
3659
* create scenario files used for specific tests
3760

3861
Has examples of setting up state with:
@@ -96,10 +119,11 @@ Now you can create scenarios and commands that are plain Ruby files that get loa
96119

97120
### Update your database.yml
98121

99-
When writing and running tests on your local computer it's recommended to start your server in development mode so that changes you
122+
When writing and running tests on your local computer, it's recommended to start your server in development mode so that changes you
100123
make are picked up without having to restart your local server.
124+
101125
It's recommended you update your `database.yml` to check if the `CYPRESS` environment variable is set and switch it to the test database
102-
otherwise cypress will keep clearing your development database.
126+
otherwise, cypress will keep clearing your development database.
103127

104128
For example:
105129
```yaml

0 commit comments

Comments
 (0)