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

[BUU] Prepares specs for enabling admin_style_v3 by default #12652

Conversation

filipefurtad0
Copy link
Contributor

@filipefurtad0 filipefurtad0 commented Jul 9, 2024

This is already covered on the v3 version of the spec, under ./spec/system/admin/products_v3/products_spec.rb:452

What? Why?

Addresses the bullet points:

  • spec/system/admin/products_spec.rb:283
  • spec/system/admin/subscriptions/smoke_tests_spec.rb:240
  • improves specs as per review comments

What should we test?

  • green build

Release notes

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

@filipefurtad0 filipefurtad0 self-assigned this Jul 9, 2024
@filipefurtad0 filipefurtad0 added the user facing changes Thes pull requests affect the user experience label Jul 9, 2024
@filipefurtad0 filipefurtad0 force-pushed the activate_admin_style_v3_for_dev_test_and_new_servers branch 3 times, most recently from 0352cbd to 5c03cfa Compare July 9, 2024 16:54
@filipefurtad0 filipefurtad0 added the technical changes only These pull requests do not contain user facing changes and are grouped in release notes label Jul 9, 2024
@filipefurtad0 filipefurtad0 removed the user facing changes Thes pull requests affect the user experience label Jul 9, 2024
Copy link
Member

@dacook dacook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for moving on this one quickly! I have an idea to simplify the code:

spec/system/admin/subscriptions/smoke_tests_spec.rb Outdated Show resolved Hide resolved
@filipefurtad0 filipefurtad0 force-pushed the activate_admin_style_v3_for_dev_test_and_new_servers branch from 67ff67d to 48c501f Compare July 10, 2024 14:24
@filipefurtad0
Copy link
Contributor Author

filipefurtad0 commented Jul 10, 2024

I think to fully address issue #12627 we'd need to include a migration (something like this?) - draft here, to enable admin_style_v3 by default. But I don't think we're there just yet - we're looking at the 16th of July - so maybe this PR is ready for review for now.

We'd also need to fix the TODO's on import_spec. I have a question on one of them, raised here.

Edit: there is this bit which can still be improved; I'm referencing it here, so we don't lose track.

@filipefurtad0 filipefurtad0 changed the title [BUU] Activates admin_style_v3 for dev, test and new servers [BUU] Prepares specs for enabling admin_style_v3 by default Jul 10, 2024
Copy link
Member

@dacook dacook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvements, well done!

spec/system/admin/order_cycles/list_spec.rb Outdated Show resolved Hide resolved
filipefurtad0 and others added 7 commits July 11, 2024 10:58
This is already covered on the v3 version of the spec, under ./spec/system/admin/products_v3/products_spec.rb:452
Enables admin_style_v3 for smoke_tests_spec
So that the warning does not need to be dismissed - which is not what we wish to test here
Improves the specs so we don't need to recurr to overlapping elements clicks, and removes the respective helper
@dacook dacook force-pushed the activate_admin_style_v3_for_dev_test_and_new_servers branch from 4890e9e to c86f7f9 Compare July 11, 2024 01:00
@dacook
Copy link
Member

dacook commented Jul 11, 2024

Rebased on master (git kindly resolved conflicts automatically for me 🤩 )

Applying: Simplifies specs, by replacing selector declaration with click_button
Using index info to reconstruct a base tree...
A	spec/system/admin/products_v3/products_spec.rb
Falling back to patching base and 3-way merge...
Auto-merging spec/system/admin/products_v3/actions_spec.rb

Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great teamwork! The failing specs seem unrelated.

@mkllnk mkllnk merged commit aec9a96 into openfoodfoundation:master Jul 11, 2024
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical changes only These pull requests do not contain user facing changes and are grouped in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants