Skip to content

Fix accessibility issues and Cypress test rate limiting#978

Open
ashwinisukale wants to merge 12 commits into
mainfrom
bracco-accessibility-fixes
Open

Fix accessibility issues and Cypress test rate limiting#978
ashwinisukale wants to merge 12 commits into
mainfrom
bracco-accessibility-fixes

Conversation

@ashwinisukale

@ashwinisukale ashwinisukale commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Fixes the failing "Cypress Testing / cypress-test" CI job and resolves accessibility issues in several components and templates.

Root Cause of CI Failure

The Cypress tests were failing with 403 "rate limited" responses from the /token API endpoint in before all hooks. Without cacheAcrossSpecs: true, each spec file independently calls cy.login() which POSTs to /token. With 10+ spec files making token requests for the same users, the API rate limit was exceeded for the later specs.

Changes Made

Cypress Test Fixes

  • cypress/support/commands.js: Enabled cacheAcrossSpecs: true so sessions are reused across all spec files for the same username, reducing token requests from ~6 per user to 1.
  • cypress/e2e/organization_admin/repositories.test.ts: Added null guard for cookie in after() hook to prevent secondary TypeError when login fails.
  • cypress/e2e/organization_admin/settings.test.ts: Added null guard for cookie in after() hook.
  • cypress/e2e/staff_admin/contact.test.ts: Added null guard for cookie in after() hook.

Accessibility Fixes

  • app/components/cc-license.hbs: Improved accessibility markup.
  • app/components/doi-list.hbs: Fixed aria-label on "clear link check status filter" link (was incorrectly saying "Filter DOIs by..." for the clear action).
  • app/components/model-search.hbs: Accessibility improvements.
  • app/components/organization-list.hbs: Accessibility improvements.
  • app/components/provider-list.hbs: Accessibility improvements.
  • app/components/repository-list.hbs: Accessibility improvements.
  • app/styles/local.css: Style updates supporting accessibility.
  • app/templates/contacts/index.hbs: Fixed aria-label on "clear role filter" link (removed role title from the clear action label).
  • app/templates/prefixes/index.hbs: Accessibility improvements.
  • app/templates/providers/show/contacts/index.hbs: Accessibility improvements.
  • app/templates/providers/show/prefixes/index.hbs: Accessibility improvements.
  • vendor/datacite-styles/doi/globals/_colors.scss: Color contrast fix.

@ashwinisukale ashwinisukale requested a review from jrhoads June 19, 2026 11:38
@ashwinisukale

ashwinisukale commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

@jrhoads Since this PR changes several colors and hover states to improve accessibility, the UI may not look exactly the same as before. Please run Bracco locally and do a visual review of the affected pages before deploying to production to ensure the updated styling looks good and there are no unintended regressions.

Copilot AI changed the title Fixed accessibility issues Fix accessibility issues and Cypress test rate limiting Jun 22, 2026
Copilot AI deployed to vercel-bracco-preview June 29, 2026 17:28 Active
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