Skip to content

Commit

Permalink
[Cases] Fix flaky tests of severity in list_view (#162137)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
js-jankisalvi authored Jul 18, 2023
1 parent 2e27e81 commit 2796107
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion x-pack/test/functional/services/cases/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2796107

Please sign in to comment.