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

Removes journalist UI modal test xfail. #4987

Merged

Conversation

zenmonkeykstop
Copy link
Contributor

@zenmonkeykstop zenmonkeykstop commented Nov 11, 2019

Status

Ready for review

Description of Changes

Fixes #4978

Adds a function to set TBB security level explicitly, uses it to switch TBB to correct state for journalist functional tests.

Change required because TBB 9.0.1 is being started with Javascript disabled. Rather than getting into managing individual preferences related to browser functionality, it makes sense to simulate user behaviour by toggling the security slider pref to get TBB 9.0.1 into the correct state. (This would also be useful for testing security warnings on the source interface, or any other featurest that rely on specific TBB security levels.)

Testing

  • Does CI pass, including test_journalist_interface_ui_with_modal?

Deployment

Testing-only.

Checklist

Copy link
Contributor

@emkll emkll left a comment

Choose a reason for hiding this comment

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

Would it make sense here to provide a bit more details as to why this particular change was needed to resolve the test?

Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

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

looks great! two suggestions for maintainability inline

@zenmonkeykstop zenmonkeykstop force-pushed the 4978-love-me-some-modals branch from 118a95b to 680dd63 Compare November 13, 2019 21:25
@redshiftzero redshiftzero merged commit ef93d1f into freedomofpress:develop Nov 14, 2019
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.

remove xfail on test_journalist_interface_ui_with_modal
3 participants