mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `8.14`: - [[EDR Workflows][E2E] Unskip artifacts FTR (#182787)](https://github.com/elastic/kibana/pull/182787) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Konrad Szwarc","email":"konrad.szwarc@elastic.co"},"sourceCommit":{"committedDate":"2024-05-08T12:17:10Z","message":"[EDR Workflows][E2E] Unskip artifacts FTR (#182787)\n\ncloses https://github.com/elastic/kibana/issues/180493\r\n\r\nI've noticed locally that the modal where we input the blocklist entries\r\ncan sometimes get rerendered without any apparent reason. So, I've added\r\na retry mechanism that, in case the input's value is not present,\r\nattempts to fill it out again.\r\n\r\nFailure example:\r\n\r\nhttps://buildkite.com/elastic/kibana-on-merge/builds/43629#018ed329-76ee-4512-aef6-5583b2cf830e\r\n\r\n\r\nFlaky test runner:\r\nx25 -\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5871\r\nx75 -\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5873","sha":"db48aa03b45e25151705df61d556ff3f8e30351d","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend Workflows","v8.14.0","v8.15.0"],"title":"[EDR Workflows][E2E] Unskip artifacts FTR","number":182787,"url":"https://github.com/elastic/kibana/pull/182787","mergeCommit":{"message":"[EDR Workflows][E2E] Unskip artifacts FTR (#182787)\n\ncloses https://github.com/elastic/kibana/issues/180493\r\n\r\nI've noticed locally that the modal where we input the blocklist entries\r\ncan sometimes get rerendered without any apparent reason. So, I've added\r\na retry mechanism that, in case the input's value is not present,\r\nattempts to fill it out again.\r\n\r\nFailure example:\r\n\r\nhttps://buildkite.com/elastic/kibana-on-merge/builds/43629#018ed329-76ee-4512-aef6-5583b2cf830e\r\n\r\n\r\nFlaky test runner:\r\nx25 -\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5871\r\nx75 -\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5873","sha":"db48aa03b45e25151705df61d556ff3f8e30351d"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/182787","number":182787,"mergeCommit":{"message":"[EDR Workflows][E2E] Unskip artifacts FTR (#182787)\n\ncloses https://github.com/elastic/kibana/issues/180493\r\n\r\nI've noticed locally that the modal where we input the blocklist entries\r\ncan sometimes get rerendered without any apparent reason. So, I've added\r\na retry mechanism that, in case the input's value is not present,\r\nattempts to fill it out again.\r\n\r\nFailure example:\r\n\r\nhttps://buildkite.com/elastic/kibana-on-merge/builds/43629#018ed329-76ee-4512-aef6-5583b2cf830e\r\n\r\n\r\nFlaky test runner:\r\nx25 -\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5871\r\nx75 -\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5873","sha":"db48aa03b45e25151705df61d556ff3f8e30351d"}}]}] BACKPORT--> Co-authored-by: Konrad Szwarc <konrad.szwarc@elastic.co>
This commit is contained in:
parent
9e1d156c72
commit
be231d6339
1 changed files with 8 additions and 5 deletions
|
@ -54,7 +54,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
|
||||
describe('For each artifact list under management', function () {
|
||||
// It's flaky only in Serverless
|
||||
targetTags(this, ['@ess', '@skipInServerless']);
|
||||
targetTags(this, ['@ess', '@serverless']);
|
||||
|
||||
this.timeout(60_000 * 5);
|
||||
let indexedData: IndexedHostsAndAlertsResponse;
|
||||
|
@ -155,10 +155,13 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
} else if (formAction.type === 'click') {
|
||||
await testSubjects.click(formAction.selector);
|
||||
} else if (formAction.type === 'input') {
|
||||
await testSubjects.setValue(
|
||||
formAction.selector,
|
||||
(formAction.value || '') + (suffix ? suffix : '')
|
||||
);
|
||||
const newValue = (formAction.value || '') + (suffix ? suffix : '');
|
||||
await testSubjects.setValue(formAction.selector, newValue);
|
||||
await testSubjects.getAttribute(formAction.selector, 'value').then((value) => {
|
||||
if (value !== newValue) {
|
||||
return testSubjects.setValue(formAction.selector, newValue);
|
||||
}
|
||||
});
|
||||
} else if (formAction.type === 'clear') {
|
||||
await (
|
||||
await (await testSubjects.find(formAction.selector)).findByCssSelector('button')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue