Fix flaky factory when the user's sequence name arrives to 1234#9167
Merged
Fix flaky factory when the user's sequence name arrives to 1234#9167
Conversation
This was referenced Apr 21, 2022
ahukkanen
approved these changes
Apr 22, 2022
Contributor
ahukkanen
left a comment
There was a problem hiding this comment.
LGTM!
I cannot think of a situation where the name would have to be unique. In real life we can also have people with exactly the same names.
I also checked that generate(:name) is used only for these:
- User names
- Dummy resource titles
- Nested dummy resource titles
- Coauthorable dummy resource titles
- In a migratiion spec testing the blocked user name migration
So this seems fine!
entantoencuanto
added a commit
to PopulateTools/decidim
that referenced
this pull request
Apr 27, 2022
* chore/load_comments_with_ajax: Take into account automatic translations in comments component Fix test Change comment_cell methods to use descendants recursive query Ignore hidden comments when there are not comments at the same level or lower to show Add a concern to deal with parent/child recursive resources using pure postgresql queries and use in comments Recover hide class removal on replies No need to change hide class because now it's loaded automatically from ajax Restore changes Lint JS Don't call on null selector Lint offenses Don't instantiate counter when there's no textarea Fix lint errors Add comments loading message Load empty comments list in comments cell unless single_comment? Send refresh comments request on comments component initialization Fix flaky factory when the user's sequence name arrives to 1234 (decidim#9167)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎩 What? Why?
On #9164 it was detected a flaky spec that comes from a seed related to #9090.
The culprit is the sequence name, when it arrives to 1234 and the password validation kicks in.
This PR fixes it by removing this sequence in the name.
📌 Related Issues
Testing
To test the failing, you can do it with this script: