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

Rspec conversion #3243

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft

Rspec conversion #3243

wants to merge 25 commits into from

Conversation

KludgeKML
Copy link
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 June 27, 2024 14:02 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 June 27, 2024 15:03 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 June 27, 2024 15:22 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 June 27, 2024 16:28 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 1, 2024 13:40 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 1, 2024 13:45 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 1, 2024 13:52 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 1, 2024 13:54 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 1, 2024 13:55 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 1, 2024 13:57 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 1, 2024 14:12 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 2, 2024 09:20 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 3, 2024 08:41 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 3, 2024 08:58 Inactive
- Remove autogenerated code (we want all the defaults
  anyway), and replace with the rails loading
  code (We probably don't run individual tests enough
  to justify keeping spec_helper lightweight)
- turn component_test_helper into support/component_helpers
- add component helper to view specs
- We'll update the controller tests to request tests
  and move them into the requests directory
- Remove tests for Slimmer request vars because
  those tests aren't really possible in a request test,
  we'll reintroduce them as system tests in the next
  commit.
- add slimmer and webmock requires
- update configuration to include
  GovukContentSchemaExamples for request tests.
- include examples support file, move path_for
  method into it and out of the spec file (it's
  used in multiple places)
- These tests were previously controller tests
  that worked by looking for Slimmer header
  presence. We can't do that in request tests,
  so we recast as system tests and actually provide
  the layout elements that slimmer tinkers with
  to control how search items appear on the final
  page. This isn't an ideal way to do this, because
  it requires a bit more knowledge of how slimmer
  works than you'd hope. If the layouts that are
  actually used no longer have the #global-header
  #search and form#search# elements, this test
  won't catch that they're gone. But that's a
  wider issue with slimmer/static.
- rename to remove controller name, since this
  is the same controller as the previous commit
  but a different set of features
- rename to remove controller name, since this
  is the same controller as the previous commit
  but a different set of features
- Move into a request test
- These integration tests can be made into system tests.
- We create a helper for system tests using content items and begin moving the methods in from the old test_helper as they're used.
- for the moment these tests aren't including JS, so we can drive them with rack_test.
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 3, 2024 11:20 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 3, 2024 12:19 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3243 July 3, 2024 15:04 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants