Skip to content

Why does this gem create cypress examples? #48

@vfonic

Description

@vfonic

I've noticed that, after I run bin/rails g cypress_on_rails:install, I got a lot of cypress-only examples (not related to cypress-on-rails gem).

At first I thought these were somehow related to added functionality of cypress-on-rails and spent some time trying to find out what's added. But it turns out that that's not the case. As far as I can tell, these are just examples of how to use cypress API.

If that's the case, I'd suggest focusing on keeping the cypress-on-rails-specific examples, which would make it easier for user (developer) to get the hang of cypress-of-rails added functionality.
Cypress-only examples could be suggested to be added to the main cypress repo. Or you could simply have a link in README to where these examples are already located.

This is the commit that originally added these examples:
fc84511

Maybe it made sense back then, but now I'd remove it and simplify the gem by also being able to remove --no-install-cypress-examples.

I think with v2.0.0 around the corner, this would be a perfect time to remove it.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions