mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ftr/services/pipelineEditor] use retry.waitFor() (#43704)
* [ftr/services/pipelineEditor] use retry.waitFor() * run x-pack-firefoxSmoke 40 times
This commit is contained in:
parent
732b7c9061
commit
69755e0d2f
2 changed files with 50 additions and 44 deletions
70
.ci/jobs.yml
70
.ci/jobs.yml
|
@ -1,34 +1,44 @@
|
|||
JOB:
|
||||
- kibana-intake
|
||||
- x-pack-intake
|
||||
- kibana-firefoxSmoke
|
||||
- kibana-ciGroup1
|
||||
- kibana-ciGroup2
|
||||
- kibana-ciGroup3
|
||||
- kibana-ciGroup4
|
||||
- kibana-ciGroup5
|
||||
- kibana-ciGroup6
|
||||
- kibana-ciGroup7
|
||||
- kibana-ciGroup8
|
||||
- kibana-ciGroup9
|
||||
- kibana-ciGroup10
|
||||
- kibana-ciGroup11
|
||||
- kibana-ciGroup12
|
||||
- kibana-visualRegression
|
||||
|
||||
# make sure all x-pack-ciGroups are listed in test/scripts/jenkins_xpack_ci_group.sh
|
||||
- x-pack-firefoxSmoke
|
||||
- x-pack-ciGroup1
|
||||
- x-pack-ciGroup2
|
||||
- x-pack-ciGroup3
|
||||
- x-pack-ciGroup4
|
||||
- x-pack-ciGroup5
|
||||
- x-pack-ciGroup6
|
||||
- x-pack-ciGroup7
|
||||
- x-pack-ciGroup8
|
||||
- x-pack-ciGroup9
|
||||
- x-pack-ciGroup10
|
||||
- x-pack-visualRegression
|
||||
- x-pack-firefoxSmoke-0
|
||||
- x-pack-firefoxSmoke-1
|
||||
- x-pack-firefoxSmoke-2
|
||||
- x-pack-firefoxSmoke-3
|
||||
- x-pack-firefoxSmoke-4
|
||||
- x-pack-firefoxSmoke-5
|
||||
- x-pack-firefoxSmoke-6
|
||||
- x-pack-firefoxSmoke-7
|
||||
- x-pack-firefoxSmoke-8
|
||||
- x-pack-firefoxSmoke-9
|
||||
- x-pack-firefoxSmoke-10
|
||||
- x-pack-firefoxSmoke-11
|
||||
- x-pack-firefoxSmoke-12
|
||||
- x-pack-firefoxSmoke-13
|
||||
- x-pack-firefoxSmoke-14
|
||||
- x-pack-firefoxSmoke-15
|
||||
- x-pack-firefoxSmoke-16
|
||||
- x-pack-firefoxSmoke-17
|
||||
- x-pack-firefoxSmoke-18
|
||||
- x-pack-firefoxSmoke-19
|
||||
- x-pack-firefoxSmoke-20
|
||||
- x-pack-firefoxSmoke-21
|
||||
- x-pack-firefoxSmoke-22
|
||||
- x-pack-firefoxSmoke-23
|
||||
- x-pack-firefoxSmoke-24
|
||||
- x-pack-firefoxSmoke-25
|
||||
- x-pack-firefoxSmoke-26
|
||||
- x-pack-firefoxSmoke-27
|
||||
- x-pack-firefoxSmoke-28
|
||||
- x-pack-firefoxSmoke-29
|
||||
- x-pack-firefoxSmoke-30
|
||||
- x-pack-firefoxSmoke-31
|
||||
- x-pack-firefoxSmoke-32
|
||||
- x-pack-firefoxSmoke-33
|
||||
- x-pack-firefoxSmoke-34
|
||||
- x-pack-firefoxSmoke-35
|
||||
- x-pack-firefoxSmoke-36
|
||||
- x-pack-firefoxSmoke-37
|
||||
- x-pack-firefoxSmoke-38
|
||||
- x-pack-firefoxSmoke-39
|
||||
|
||||
# `~` is yaml for `null`
|
||||
exclude: ~
|
||||
|
|
|
@ -8,6 +8,7 @@ import expect from '@kbn/expect';
|
|||
import { props as propsAsync } from 'bluebird';
|
||||
|
||||
export function PipelineEditorProvider({ getService }) {
|
||||
const retry = getService('retry');
|
||||
const aceEditor = getService('aceEditor');
|
||||
const testSubjects = getService('testSubjects');
|
||||
|
||||
|
@ -29,7 +30,6 @@ export function PipelineEditorProvider({ getService }) {
|
|||
const SUBJ_BTN_CANCEL = 'pipelineEdit btnCancel';
|
||||
const SUBJ_BTN_DELETE = 'pipelineEdit btnDeletePipeline';
|
||||
const SUBJ_LNK_BREADCRUMB_MANAGEMENT = 'breadcrumbs lnkBreadcrumb0';
|
||||
const SUBJ_CONFIRM_MODAL_TEXT = 'confirmModalBodyText';
|
||||
|
||||
const DEFAULT_INPUT_VALUES = {
|
||||
id: '',
|
||||
|
@ -91,9 +91,9 @@ export function PipelineEditorProvider({ getService }) {
|
|||
* @return {Promise<undefined>}
|
||||
*/
|
||||
async assertExists() {
|
||||
if (!(await testSubjects.exists(SUBJ_CONTAINER))) {
|
||||
throw new Error('Expected to find the pipeline editor');
|
||||
}
|
||||
await retry.waitFor('pipeline editor visible', async () => (
|
||||
await testSubjects.exists(SUBJ_CONTAINER)
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -103,9 +103,9 @@ export function PipelineEditorProvider({ getService }) {
|
|||
* @return {Promise<undefined>}
|
||||
*/
|
||||
async assertEditorId(id) {
|
||||
if (!(await testSubjects.exists(getContainerSubjForId(id)))) {
|
||||
throw new Error(`Expected editor id to be "${id}"`);
|
||||
}
|
||||
await retry.waitFor(`editor id to be "${id}"`, async () => (
|
||||
await testSubjects.exists(getContainerSubjForId(id))
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -141,13 +141,9 @@ export function PipelineEditorProvider({ getService }) {
|
|||
}
|
||||
|
||||
async assertNoDeleteButton() {
|
||||
if (await testSubjects.exists(SUBJ_BTN_DELETE)) {
|
||||
throw new Error('Expected there to be no delete button');
|
||||
}
|
||||
}
|
||||
|
||||
assertUnsavedChangesModal() {
|
||||
return testSubjects.exists(SUBJ_CONFIRM_MODAL_TEXT);
|
||||
await retry.waitFor(`delete button to be hidden`, async () => (
|
||||
!await testSubjects.exists(SUBJ_BTN_DELETE)
|
||||
));
|
||||
}
|
||||
}();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue