Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Test IDs for Outcomes components #3027

Open
kneerose opened this issue Feb 19, 2025 · 0 comments
Open

Missing Test IDs for Outcomes components #3027

kneerose opened this issue Feb 19, 2025 · 0 comments

Comments

@kneerose
Copy link
Contributor

kneerose commented Feb 19, 2025

Context & versions

  • Some Several components lack proper test IDs, impeding effective testing and automation

Missing test IDs

1. Outcomes Page

  • Search Input -> data-testid="search-input"
  • Filter button -> data-testid="filters-button"
  • Sort Button -> data-testid= "sort-button"
  • FilterType
    • Info -> data-testid = "info-checkbox"
    • Treasury Withdrawals -> data-testid= "treasury-withdrawals-checkbox"
    • similarly add testid for other remaining filters
    • Note: use one format, here seperate space with "-" and lowercase content
  • SortType
    • Soon to expire -> data-testid="soon-to-expire-radio"
    • Newest first -> data-testid="newest-first-radio"
    • Oldest first -> data-testid="oldest-first-radio"
    • Highest amount of yes votes -> data-testid="highest-amount-of-yes-vote-radio"
    • clear -> data-testid="clear-button"

2. Outcomes Card

  • card -> data-testid = "${governance-action-id}-outcome-card"
  • title -> data-testid="governance-action-card-title"
  • governance action type -> data-testid= "governance-action-type"
  • governance action id -> data-testid="${governance-action-id}-id"
  • copy button -> data-testid=copy-button
  • view-details -> data-testid="${governance-action-id}-view-details"
  • status -> data-testid="${governance-action-id}-status"
  • submitted date-> data-testid="${governance-action-id}-submitted-date"
  • expires date -> data-testid="$governance-action-id}-expires-date"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: To do
Development

No branches or pull requests

2 participants