mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Cases] Fix flaky tests of severity in list_view
(#162137)
## Summary Fixes #160622 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Flaky test runner https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2660
This commit is contained in:
parent
2e27e81ba8
commit
2796107353
2 changed files with 7 additions and 3 deletions
|
@ -192,7 +192,10 @@ export function CasesTableServiceProvider(
|
|||
|
||||
const row = rows[index];
|
||||
await row.click();
|
||||
await find.existsByCssSelector('[data-test-subj*="case-action-popover-"');
|
||||
await retry.waitFor(
|
||||
'popover-action-exists',
|
||||
async () => await find.existsByCssSelector('[data-test-subj*="case-action-popover-"')
|
||||
);
|
||||
},
|
||||
|
||||
async openAssigneesPopover() {
|
||||
|
@ -223,6 +226,7 @@ export function CasesTableServiceProvider(
|
|||
|
||||
await testSubjects.existOrFail(`cases-bulk-action-status-${status}`);
|
||||
await testSubjects.click(`cases-bulk-action-status-${status}`);
|
||||
await header.waitUntilLoadingHasFinished();
|
||||
},
|
||||
|
||||
async changeSeverity(severity: CaseSeverity, index: number) {
|
||||
|
@ -240,6 +244,7 @@ export function CasesTableServiceProvider(
|
|||
|
||||
await testSubjects.existOrFail(`cases-bulk-action-severity-${severity}`);
|
||||
await testSubjects.click(`cases-bulk-action-severity-${severity}`);
|
||||
await header.waitUntilLoadingHasFinished();
|
||||
},
|
||||
|
||||
async bulkChangeStatusCases(status: CaseStatuses) {
|
||||
|
|
|
@ -602,8 +602,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
|
|||
});
|
||||
});
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/160622
|
||||
describe.skip('Severity', () => {
|
||||
describe('Severity', () => {
|
||||
before(async () => {
|
||||
await cases.api.createNthRandomCases(1);
|
||||
await header.waitUntilLoadingHasFinished();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue