Skip to content

Test Dapp Multichain: Testability improvement with data-testid #45

@ffmcgee725

Description

@ffmcgee725

Due to how we have our end to end selenium web driver API setup, if some HTML elements don't have a proper class, id or data-testid for manipulation through the API, the requirement for 'hacky' end to end test code increases.

We have noticed on a lot of these cases, when we want to fetch specific results of a call / interaction, we resort to fetching them through elements with the result-summary-{number} selector, which is not precise enough and requires extra code for parsing and filtering the actual result we want to test against

In order to avoid this, let's make sure we go through all HTML elements with selectos result-summary and add data-testids with proper naming according to the section it is in, so we can more easily test against these in the future.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions