Closed Ramyapatil712 closed 8 months ago
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.
For Collections-
For Project Details page
Updated test_navbar.py- Added new tests navbars.py- Added locator for my_projects link
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
pytest tests/test_navbar.py::TestCollectionsNavbarLoggedIn -sv
pytest tests/test_navbar.py::TestCollectionsNavbarLoggedOut -sv
pytest tests/test_navbar.py::TestProjectsNavbarLoggedIn -sv
N/A
https://openscience.atlassian.net/browse/ENG-5139
@felliott , @jh27539 and @cslzchen Done all the changes suggested and used black for formatting. Please review the changes
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