Skip to content

delete data-cy attributes from build #2367

@oliver-sanders

Description

@oliver-sanders

Remove the functional impact of data-cy attributes by stripping them from production code.

The e2e tests have made aggressive use of data-cy attributes, e.g, the table view gives every single task a data-cy attribute set to the task name. The impact of these attrs is a bit of string templating and an extra HTML prop, should be miniscule, irrelevant, especially compared to the stuff Vuetify jams in the DoM.

But when large numbers of elements are involved, there is the potential for the impacts to add up. These attrs should have absolutely no impact on the production code anyway, so it would be nice if we could strip them out.

Looks like there are some solutions for doing exactly this, whether there is a simple option that works for Vue, however, is another matter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions