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
Added file metadata tests #265
base: develop
Are you sure you want to change the base?
Conversation
…ct and registration
This reverts commit ed8cfc6.
…egistration tests from smoke
registration_metadata_page.scroll_into_view( | ||
registration_metadata_page.delete_funder_button.element | ||
) | ||
registration_metadata_page.delete_funder_button.click() |
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.
Selenium expected condition element_to_be_clickable
will be helpful here
project_metadata_page.scroll_into_view( | ||
project_metadata_page.delete_funder_button.element | ||
) | ||
project_metadata_page.delete_funder_button.click() |
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.
use a element_to_be_clickable
…under_info method
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.
LGTM after you respond to Josh's two comments. Mine are purely style suggestions. 🎆
Purpose
Add the following checks to the selenium test automation suite:
Summary of Changes
Added new test_metadata.py - 6 new tests added to verify title, description, resource type and resource language changes, cancel changes funtionality and download functionality
Updated project.py - added new FilesMetadataPage class , and ProjectMetadataPage class
Updated registries.py - updated RegistrationMetadataPage class
Updated osf_api.py — Added 2 new methods get_fake_file_guid and get_existing_file_data
Updated utils.py - Added 3 new methods verify_file_download, latest_download_file and get_guid_from_url
Reviewer's Actions
git fetch <remote> pull/265/head:feature/test_metadata
Run this test using
pytest tests/test_metadata.py -s -v
Testing Changes Moving Forward
N/A
Ticket
https://openscience.atlassian.net/browse/ENG-4276
https://openscience.atlassian.net/browse/ENG-4277