{"id":22147220,"url":"https://github.com/centerforopenscience/osf-selenium-tests","last_synced_at":"2025-07-19T22:41:22.345Z","repository":{"id":37089605,"uuid":"93676062","full_name":"CenterForOpenScience/osf-selenium-tests","owner":"CenterForOpenScience","description":"End-to-end tests for the OSF.","archived":false,"fork":false,"pushed_at":"2024-11-18T00:55:44.000Z","size":1317,"stargazers_count":3,"open_issues_count":2,"forks_count":18,"subscribers_count":17,"default_branch":"develop","last_synced_at":"2024-11-18T01:38:03.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CenterForOpenScience.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-07T20:21:09.000Z","updated_at":"2024-08-22T14:14:21.000Z","dependencies_parsed_at":"2024-11-18T01:30:19.816Z","dependency_job_id":"f85470c5-372c-4844-b38d-376570fd11d5","html_url":"https://github.com/CenterForOpenScience/osf-selenium-tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fosf-selenium-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fosf-selenium-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fosf-selenium-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fosf-selenium-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CenterForOpenScience","download_url":"https://codeload.github.com/CenterForOpenScience/osf-selenium-tests/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227642219,"owners_count":17797850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T23:14:45.304Z","updated_at":"2024-12-01T23:14:45.935Z","avatar_url":"https://github.com/CenterForOpenScience.png","language":"Python","readme":"# OSF Selenium Tests\n\nThis is the UI test automation for the OSF. It uses Selenium WebDriver and Pytest to create end-to-end OSF tests.\n\n\n![production_smoke_tests](https://github.com/cos-qa/osf-selenium-tests/actions/workflows/production_smoke_tests.yml/badge.svg)\n![nightly_core_functionality_tests](https://github.com/cos-qa/osf-selenium-tests/actions/workflows/nightly_core_functionality_tests.yml/badge.svg)\n![weekly_regression_tests](https://github.com/cos-qa/osf-selenium-tests/actions/workflows/weekly_regression_tests.yml/badge.svg)\n\n\n\n## Setting up\n\n### Prerequisites\n\n\nYou'll need the webdriver of your choice and Python3.\n\n##### Installing a webdriver:\n\nIn order for Selenium to be able to control your local browser, you will need to install [drivers](https://seleniumhq.github.io/selenium/docs/api/py/#drivers) for any browsers in which you desire to run these tests. Start with a driver such as [GekoDriver](https://github.com/mozilla/geckodriver/releases) (firefox) or [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/downloads). (Note: IE is not supported. Safari is only partially supported -- running the tests in Safari is not recommended).\n\nGo to any of the driver links above, install the applicable driver for your system, and move the executable into your *PATH*, e. g., place it in */usr/bin* or */usr/local/bin*.\n\n\n##### Installing Python3:\n\nFor MacOSX users:\n\n```bash\nbrew install python3\n```\n\nFor Ubuntu users:\n\n```bash\napt-get install python3\n\n```\n\nIt is also suggested you use a virtual environment. After completing the installation of Python3, this can be done with the following commands:\n\n```bash\npip install virtualenv\npip install virtualenvwrapper\nmkvirtualenv --python=python3 OSF-selenium-tests\n```\n\n### Installing\n\n\nNow you can install the requirements:\n\n```\npip install -r requirements.txt\n```\nAnd you should be good to go!\n\n## Running tests\n\nIn order to run the whole test suite simply use pytest:\n\n```bash\npytest\n\n```\n\nYou can run specific test classes:\n\n```bash\npytest tests/test_dashboard.py::TestDashboardPage\n\n```\n\n\nOr specific tests:\n\n```bash\npytest tests/test_dashboard.py::TestDashboardPage::test_institution_logos\n\n```\n\nYou can even run tests using custom markers. For example, here's how to run all the OSF smoke tests:\n\n```bash\npytest -m smoke_test\n\n```\nSee the [pytest documentation](https://docs.pytest.org/en/latest/usage.html) for more information on usage.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenterforopenscience%2Fosf-selenium-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcenterforopenscience%2Fosf-selenium-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenterforopenscience%2Fosf-selenium-tests/lists"}