Skip to content

Add assertions for OSFI affiliations on preprint rewiev and detail pages #284

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

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

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 jh27539 and Ramyapatil712 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
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.

2 participants