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

Homepage seeds #1009

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Homepage seeds #1009

wants to merge 8 commits into from

Conversation

camillevilla
Copy link
Collaborator

@camillevilla camillevilla commented Sep 4, 2024

JIRA issue link

N/A

Description - what does this code do?

  • Adds factories for Homepage model so that we can develop with these more quickly in local dev

Testing done - how did you test it/steps on how can another person can test it

Run the following commands in the rails console.

FactoryBot.create(:homepage)
FactoryBot.create(:homepage_with_features)
FactoryBot.create(:september_homepage)
  1. Go to /admin/homepages and confirm that three homepages were created.
  2. Preview each homepage. homepage_with_features should have created a page with generic content and gray placeholders for each image. september_homepage should have created a homepage with real innovation names, distinct copy, and distinct photos.

@camillevilla camillevilla force-pushed the homepage-seeds branch 3 times, most recently from 11ecdec to 22a70d9 Compare September 5, 2024 23:31
@camillevilla camillevilla marked this pull request as ready for review September 19, 2024 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant