Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • N ncbi
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 270
    • Issues 270
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ncbi
  • ncbi
  • Issues
  • #1169

Closed
Open
Created Apr 11, 2022 by Giannis Kopanas@John.kopanasMaintainer

Adding data Test ID to components

This is a continuation of the work we have started here : !845 (merged).

The goal of this issue is to add data-test-ids attribute to components which helps integration tests.

Taking into account what wil help the QA team most. we need to be focus first on adding data-test-ids to buttons, checkboxes, Input text, Radios.

is better we add a default value that can be autogenerated from a string that all components have for the most cases, that could the name or id prop for example. In that way we dont have to touch all the places that a component is being called but just to the component itself as a default value, of course anywhere that a seperate data-test-ids prop is essential we can just added as a second way to add a data-test-ids different from the default value.

In order to autogenerate an automatic data-test-ids is we can use snakeCase of lodash function. which cleans the string from special characters and has a specific way of creating the string.

Assignee
Assign to
Time tracking