mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Backport This will backport the following commits from `main` to `8.11`: - [[Cases] Fix filtering e2e flaky tests (#170383)](https://github.com/elastic/kibana/pull/170383) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Christos Nasikas","email":"christos.nasikas@elastic.co"},"sourceCommit":{"committedDate":"2023-11-02T18:01:15Z","message":"[Cases] Fix filtering e2e flaky tests (#170383)","sha":"8ced30dcdba455936cb8bdfc3a4125228ee141da","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Feature:Cases","v8.12.0","v8.11.1"],"number":170383,"url":"https://github.com/elastic/kibana/pull/170383","mergeCommit":{"message":"[Cases] Fix filtering e2e flaky tests (#170383)","sha":"8ced30dcdba455936cb8bdfc3a4125228ee141da"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/170383","number":170383,"mergeCommit":{"message":"[Cases] Fix filtering e2e flaky tests (#170383)","sha":"8ced30dcdba455936cb8bdfc3a4125228ee141da"}},{"branch":"8.11","label":"v8.11.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
This commit is contained in:
parent
d693cb4c02
commit
b67ed0352c
2 changed files with 6 additions and 7 deletions
|
@ -5,7 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import { CaseSeverityWithAll } from '@kbn/cases-plugin/common/ui';
|
||||
import { CaseSeverity, CaseStatuses } from '@kbn/cases-plugin/common/types/domain';
|
||||
import { WebElementWrapper } from '../../../../../test/functional/services/lib/web_element_wrapper';
|
||||
|
@ -85,10 +84,12 @@ export function CasesTableServiceProvider(
|
|||
},
|
||||
|
||||
async validateCasesTableHasNthRows(nrRows: number) {
|
||||
await retry.tryForTime(3000, async () => {
|
||||
await retry.waitFor(`the cases table to have ${nrRows} cases`, async () => {
|
||||
const rows = await find.allByCssSelector('[data-test-subj*="cases-table-row-"');
|
||||
expect(rows.length).equal(nrRows);
|
||||
return rows.length === nrRows;
|
||||
});
|
||||
|
||||
await header.waitUntilLoadingHasFinished();
|
||||
},
|
||||
|
||||
async waitForCasesToBeListed() {
|
||||
|
|
|
@ -279,8 +279,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
|
|||
});
|
||||
});
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/152925
|
||||
describe.skip('filtering', () => {
|
||||
describe('filtering', () => {
|
||||
const caseTitle = 'matchme';
|
||||
const caseIds: string[] = [];
|
||||
|
||||
|
@ -459,8 +458,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
|
|||
await testSubjects.existOrFail(`case-table-column-severity-${CaseSeverity.MEDIUM}`);
|
||||
});
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/152928
|
||||
describe.skip('assignees filtering', () => {
|
||||
describe('assignees filtering', () => {
|
||||
it('filters cases by the first cases all user assignee', async () => {
|
||||
await cases.casesTable.filterByAssignee('all');
|
||||
await cases.casesTable.validateCasesTableHasNthRows(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue