[Synthetics] Add test id attributes to synthetics retest elements (#168888)

## Summary

Adds test IDs to some newly-added elements. This is useful to us for E2E
testing purposes. We can select other attributes/text for these
features, but it is beneficial to have the added assurance and
simplicity of using a test ID to find these elements.
This commit is contained in:
Justin Kambic 2023-10-16 03:27:11 -04:00 committed by GitHub
parent de21794287
commit 0ede530ae3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -182,7 +182,11 @@ export const TestRunsTable = ({
<StatusBadge status={parseBadgeStatus(status ?? 'skipped')} />
</EuiFlexItem>
<EuiFlexItem>
<EuiIconTip type="refresh" content={FINAL_ATTEMPT_LABEL} />
<EuiIconTip
data-test-subj="isRetestIcon"
type="refresh"
content={FINAL_ATTEMPT_LABEL}
/>
</EuiFlexItem>
</EuiFlexGroup>
);

View file

@ -61,6 +61,7 @@ export const TestRunsTableHeader = ({
<EuiFlexItem grow={false}>
<EuiSwitch
compressed
data-test-subj="toggleRetestSwitch"
label={ONLY_SHOW_RETEST}
checked={showOnlyFinalAttempts}
onChange={(e) => dispatch(showOnlyFinalAttemptsAction(e.target.checked))}