CenterForOpenScience / osf-selenium-tests

End-to-end tests for the OSF.
3 stars 18 forks source link

[ENG-5139] Added navbar tests to collections and projects details pages #262

Closed Ramyapatil712 closed 8 months ago

Ramyapatil712 commented 9 months ago

Purpose

Update our selenium test to add new navbar tests to collections discover page and project details page

Product team requested to add these tests to verify search, donate and support link on project details page and collections discover page.

Summary of Changes

For Collections-

For Project Details page

Updated test_navbar.py- Added new tests navbars.py- Added locator for my_projects link

Reviewer's Actions

git fetch <remote> pull/262/head:feature/add-navbartests-to-collections-project

Run this test using pytest tests/test_navbar.py::TestCollectionsNavbarLoggedIn -sv pytest tests/test_navbar.py::TestCollectionsNavbarLoggedOut -sv pytest tests/test_navbar.py::TestProjectsNavbarLoggedIn -sv

Testing Changes Moving Forward

N/A

Ticket

https://openscience.atlassian.net/browse/ENG-5139

Ramyapatil712 commented 9 months ago

@felliott , @jh27539 and @cslzchen Done all the changes suggested and used black for formatting. Please review the changes