Skip to content

Conversation

Ramyapatil712
Copy link
Collaborator

@Ramyapatil712 Ramyapatil712 commented Apr 29, 2025

Purpose

Updated the selenium test suite to add new tests to registration metadata tests to include edit title and edit contributors tests.

Summary of Changes

Updated test_metadata.py to add edit title and edit contributors tests to RegistrationMetadata.
Updated registries.py page to include new methods for selecting item from table and selecting item from a list
Updated osf_api.py to include 2 new methods to update registration title and delete registration contributor
Updated utils.py to include new method to clean text

Reviewer's Actions

git fetch <remote> pull/282/head:feature/registration_metadata_fix

Run this test using
pytest tests/metadata.py::TestRegistrationMetadata -s -v

Testing Changes Moving Forward

Ticket

https://openscience.atlassian.net/browse/ENG-7681
https://openscience.atlassian.net/browse/ENG-7682

@Shtogryn
Copy link
Collaborator

Shtogryn commented May 1, 2025

The provided test command references tests/metadata.py, but the correct file name is test_metadata.py.
Please update the instruction to:
pytest tests/test_metadata.py::TestRegistrationMetadata -s -v


new_title = fake.sentence(nb_words=2)
new_description = fake.sentence(nb_words=4)
original_title = 'Selenium Registration for Metadata tests'
Copy link
Member

Choose a reason for hiding this comment

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

If this is the same as ln. 499, perhaps it should be a constant?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated title as constant

Copy link
Member

@felliott felliott left a comment

Choose a reason for hiding this comment

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

With the one change to add a constant, this is good to go!

@jh27539 jh27539 merged commit dcc015e into develop May 13, 2025
@jh27539 jh27539 deleted the feature/registration_metadata_fix branch May 13, 2025 20:14
@Shtogryn Shtogryn restored the feature/registration_metadata_fix branch June 10, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants