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

Fix RegistrationTest, account for case with terms feature on #609

Closed
wants to merge 1 commit into from

Conversation

drehimself
Copy link

If you turn on the Features::termsAndPrivacyPolicy() feature in Jetstream, the RegistrationTest doesn't account for this case and will fail. Fixed by passing through the terms field if the feature is on.

@ArnaudLier
Copy link
Contributor

Ses #595

@driesvints
Copy link
Member

Hey @drehimself. The test suite is meant to mimic an app in its current working state. It doesn't makes sense to adopt an configurable state in the test suite since you're app will always either have this enabled or disabled. You own this file so feel free to adjust it if you turn on the terms feature.

@driesvints driesvints closed this Jan 8, 2021
@Illizian
Copy link

Illizian commented Jan 26, 2021

@driesvints

Hey @drehimself. The test suite is meant to mimic an app in its current working state. It doesn't makes sense to adopt an configurable state in the test suite since you're app will always either have this enabled or disabled. You own this file so feel free to adjust it if you turn on the terms feature.

Could you clarify what you mean by this? There already exists a range of tests that are toggled by Feature Flags! (See. test_api_token_permissions_can_be_updated, test_email_verification_screen_can_be_rendered), I'm glad I spotted this issue before adding my own PR but it'd be good to know so as to avoid wasted effort in the future.

@driesvints
Copy link
Member

@Illizian we started accepting the PRs with feature flags recently because we got tired of having to explain over and over and closing PRs.

@Illizian
Copy link

Illizian commented Jan 26, 2021 via email

@driesvints
Copy link
Member

These still don't make any sense. Your app will either be in one state or the other. Never in an ability to toggle between states. Just delete/add what you need or don't need.

@Illizian
Copy link

Illizian commented Jan 26, 2021 via email

@driesvints
Copy link
Member

@Illizian it's a scaffold tool that mostly scaffolds your app and provides a few internal classes to handle those parts out of the box. But all of the UI is modifiable after it's scaffolded.

@Illizian
Copy link

Illizian commented Jan 26, 2021 via email

@driesvints
Copy link
Member

Yeah, we can't really stop that from happening I guess :-/

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.

4 participants