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

MNT Fix unit test #485

Merged

Conversation

emteknetnz
Copy link
Member

Issue https://github.com/silverstripeltd/product-issues/issues/676

Unit test was testing things wrong before and only passed due basically due to luck i.e. simpletest was a bit strange

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

This just tests the filter functionality itself. The only reason the old tests passed at all is because they accidentally submitted the form using the "print" button, which gave a filtered result.
That is not what this test should be doing.

A separate behat test will be needed to validate the front-end experience, but that's not in scope for this card.

@GuySartorelli GuySartorelli merged commit 14679ee into silverstripe:5.0 Feb 15, 2023
@GuySartorelli GuySartorelli deleted the pulls/5.0/broken-builds branch February 15, 2023 21:29
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.

2 participants