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

# Backport

This will backport the following commits from `main` to `8.11`:
- [[Synthetics] Add test id attributes to synthetics retest elements
(#168888)](https://github.com/elastic/kibana/pull/168888)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Justin
Kambic","email":"jk@elastic.co"},"sourceCommit":{"committedDate":"2023-10-16T07:27:11Z","message":"[Synthetics]
Add test id attributes to synthetics retest elements (#168888)\n\n##
Summary\r\n\r\nAdds test IDs to some newly-added elements. This is
useful to us for E2E\r\ntesting purposes. We can select other
attributes/text for these\r\nfeatures, but it is beneficial to have the
added assurance and\r\nsimplicity of using a test ID to find these
elements.","sha":"0ede530ae36bdc0d87462b0028139fa187942b16","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:uptime","release_note:skip","v8.11.0","v8.12.0"],"number":168888,"url":"https://github.com/elastic/kibana/pull/168888","mergeCommit":{"message":"[Synthetics]
Add test id attributes to synthetics retest elements (#168888)\n\n##
Summary\r\n\r\nAdds test IDs to some newly-added elements. This is
useful to us for E2E\r\ntesting purposes. We can select other
attributes/text for these\r\nfeatures, but it is beneficial to have the
added assurance and\r\nsimplicity of using a test ID to find these
elements.","sha":"0ede530ae36bdc0d87462b0028139fa187942b16"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/168888","number":168888,"mergeCommit":{"message":"[Synthetics]
Add test id attributes to synthetics retest elements (#168888)\n\n##
Summary\r\n\r\nAdds test IDs to some newly-added elements. This is
useful to us for E2E\r\ntesting purposes. We can select other
attributes/text for these\r\nfeatures, but it is beneficial to have the
added assurance and\r\nsimplicity of using a test ID to find these
elements.","sha":"0ede530ae36bdc0d87462b0028139fa187942b16"}}]}]
BACKPORT-->

Co-authored-by: Justin Kambic <jk@elastic.co>
This commit is contained in:
Kibana Machine 2023-10-16 04:38:07 -04:00 committed by GitHub
parent b1ff7f6c91
commit 4f9b52df7d
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))}