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

Reproduces bug #12835 #12841

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Conversation

filipefurtad0
Copy link
Contributor

@filipefurtad0 filipefurtad0 commented Sep 4, 2024

What? Why?

Regression specs for #12835.

This is done both in a system and in a unit spec. I'm not 100% sure about the unit spec. I'm not very proficient at these yet.

The specs are not optimized. I think there could be some things to improve, like setting the distributor and supplier test cases as shared examples, and visiting the report page straight on, without clicking around (this is meant for the system spec, of course).

Still, the main goal here is to reproduce the S2 bug #12835, and this is achieved, and is perhaps helpful to for the dev picking this up.

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 Sep 4, 2024
@filipefurtad0 filipefurtad0 added the technical changes only These pull requests do not contain user facing changes and are grouped in release notes label Sep 4, 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 work, thanks for this!

Comment on lines 442 to 443
rows = find("table.report__table").all("thead tr")
table = rows.map { |r| r.all("th").map { |c| c.text.strip } }
Copy link
Member

Choose a reason for hiding this comment

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

This will be in a helper method on your other PR. We can rebase on that branch to include it, but for now I'll focus on the actual bug...

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.

Well done!

@mkllnk mkllnk merged commit f2163a4 into openfoodfoundation:master Sep 5, 2024
53 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