Skip to content

Conversation

jh27539
Copy link
Collaborator

@jh27539 jh27539 commented Jun 13, 2025

Purpose

Reduce API load spikes and avoid false alarms during automated Selenium test runs against production.

Summary of Changes

Add new prod_throttle fixture

Slow down the following tests:

  1. test_navbars.py
  2. test_login.py
  3. test_institutions.py
  4. test_search.py
  5. test_preprints.py::TestBrandedProviders
  6. test_registries.py::TestBrandedRegistriesPages

Reviewer's Actions

git fetch origin pull/285/head:feature/prod_throttle
Run this test on production using the smoke test marker

  • tests/test_navbars.py -sv -m smoke_test
  • tests/test_login.py -sv -m smoke_test
  • tests/test_institutions.py -sv -m smoke_test
  • tests/test_search.py -sv -m smoke_test
  • tests/test_preprints.py::TestBrandedProviders -m smoke_test
  • tests/test_registries.py::TestBrandedRegistriesPages -sv -m smoke_test

Testing Changes Moving Forward

We can make future updates as necessary with the new fixture

Ticket

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

@jh27539 jh27539 merged commit 141281b into develop Jun 20, 2025
@jh27539 jh27539 deleted the feature/prod_throttle branch June 20, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant