Skip to content

Commit

Permalink
[8.11] [Synthetics] Add test id attributes to synthetics retest eleme…
Browse files Browse the repository at this point in the history
…nts (#168888) (#168920)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[Synthetics] Add test id attributes to synthetics retest elements
(#168888)](#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":"[email protected]"},"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 <[email protected]>
  • Loading branch information
kibanamachine and justinkambic authored Oct 16, 2023
1 parent b1ff7f6 commit 4f9b52d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))}
Expand Down

0 comments on commit 4f9b52d

Please sign in to comment.