-
Notifications
You must be signed in to change notification settings - Fork 7
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
Finalize initial set of User Accounts tests #39
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can this branch using the functest/accounts
branch on cadasta-platform
I'm getting selenium.common.exceptions.TimeoutException
for the following tests:
::TestLogin::test_user_can_login_by_email
::TestUpdating::test_user_can_change_password
::TestUpdating::test_user_cannot_change_password_without_current_password
::TestUpdating::test_correct_user_info_is_shown
::TestUpdating::test_user_cannot_update_profile_without_password
::TestUpdating::test_user_can_update_username
::TestUpdating::test_user_can_update_full_name
::TestUpdating::test_user_can_update_preferred_language
::TestUpdating::test_user_can_update_preferred_measurement_system
::TestUpdating::test_user_avatar
Anything I'm missing?
I can only guess but I think the user account fixture is missing in your VM DB. Can you temporarily change the requirements/dev.txt file so that the cadasta-test repository points to the |
That's what I did. |
OK. Can you uninstall and then reinstall the cadasta-test package? I just pushed a commit a while ago to the cadasta-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I reprovisioned a VM using cadasta-test/accounts
and loaded the fixtures. The tests are now passing.
We definitely we documentation about how to run the functional tests locally because it's not exactly a smooth and straightforward process.
OK. I will take time to update the documentation next week. |
Proposed changes in this pull request
This PR adds automated functional tests for most User Accounts test cases as described in the Functional Test Cases spreadsheet.
upload
marker. Test cases that perform file upload cannot be performed on BrowserStack using our own supplied files. (See BrowserStack's docs.) The plan is to run this test with the local ChromeDriver on the Travis VM instead of using BrowserStack and the pytest marker allows us to target this test.functest_
for easier identification in the database. Furthermore, temporary or throwaway user account usernames (such as those created by the user account creation tests) are prefixed with the prefixfunctest_tmp_
. After running the test suite, deleting these temporary user accounts should result in the database only containing the original test fixtures.When should this PR be merged
Before Sprint 21 QA day. (So that we don't manually test these cases anymore.)
Risks
No risks foreseen. This PR should only affect QA and not the actual platform function.
Follow-up actions
Approve and merge the corresponding PR on the cadasta-platform repo. As much as possible, this should be done right after this PR is merged.
Checklist (for reviewing)
General
migration
label if a new migration is added.Functionality
Code
Tests
Security
Documentation