Skip to content

Conversation

@Shtogryn
Copy link
Collaborator

@Shtogryn Shtogryn commented May 19, 2025

Purpose

Add assertions for OSFI affiliations to the following pages:

Preprint Review Page

Preprint Detail Page

Summary of Changes

Updated :

  • test_create_preprint_from_landing.py and test_edit_preprint with new assertions
  • added new locators and methods in preprint.py

Reviewer's Actions

git fetch origin pull/284/head:pshtohryn/ENG-6198/feature/osfi-affiliations-assertions

Run this test using
pytest tests/test_preprints.py::TestPreprintWorkflow::test_create_preprint_from_landing -sv
pytest tests/test_preprints.py::TestPreprintWorkflow::test_edit_preprint -sv

Testing Changes Moving Forward

Ticket

https://openscience.atlassian.net/browse/ENG-6198
https://openscience.atlassian.net/browse/ENG-6723

@Shtogryn Shtogryn requested review from Ramyapatil712 and jh27539 May 19, 2025 23:30
affiliated_institutions_names_metadata_page
== affiliated_institutions_names_review_page
), (
f'Affiliated institutions on the Review Page do not match expected values.\n'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like we are copy/pasting this assertion multiple times in this pull request. Is it possible to make a re-usable assertion statement?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@Shtogryn Shtogryn force-pushed the pshtohryn/ENG-6198/feature/osfi-affiliations-assertions branch from 90064aa to c5b8ff2 Compare June 10, 2025 19:48
@jh27539 jh27539 merged commit 69d0c9c into develop Jun 12, 2025
@jh27539 jh27539 deleted the pshtohryn/ENG-6198/feature/osfi-affiliations-assertions branch June 12, 2025 17:26
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