Skip to content

Added file metadata tests #265

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

Merged
merged 16 commits into from
May 28, 2024
Merged

Added file metadata tests #265

merged 16 commits into from
May 28, 2024

Conversation

Ramyapatil712
Copy link
Collaborator

@Ramyapatil712 Ramyapatil712 commented Apr 2, 2024

Purpose

Add the following checks to the selenium test automation suite:

  1. First Test: Edit Metadata Tab
  • Title field
  • Description field
  • Resource Type field
  • Resource Language field
  1. Second test: Download
  • Download Metadata Button

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

@cslzchen cslzchen requested review from cslzchen and removed request for felliott May 14, 2024 17:17
Copy link
Collaborator

@cslzchen cslzchen left a 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. 🎆

@jh27539 jh27539 merged commit 268bd72 into develop May 28, 2024
3 of 4 checks passed
@jh27539 jh27539 deleted the feature/test_metadata branch May 28, 2024 20:36
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.

3 participants