Improving way to check if pipelines list is loaded (#32370) (#32861)

* [services/pipeline_list] wait for loadingPipelines is not displayed

* run x-pack-ciGroup2 x20 times

* Revert "run x-pack-ciGroup2 x20 times"

This reverts commit 1fb4077c2c.
This commit is contained in:
Dmitry Lemeshko 2019-03-10 12:36:52 +01:00 committed by GitHub
parent 1e416cafb1
commit 737b544418
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -95,7 +95,7 @@ class PipelineListUi extends React.Component {
this.setState({
message: (
<div>
<div data-test-subj="loadingPipelines">
<EuiLoadingSpinner size="m" />
&nbsp; <FormattedMessage
id="xpack.logstash.pipelineList.pipelinesLoadingMessage"

View file

@ -163,7 +163,8 @@ export function PipelineListProvider({ getService }) {
await retry.waitFor('pipline list visible on screen', async () => {
const container = await testSubjects.find(SUBJ_CONTAINER);
const found = await container.findAllByCssSelector('table tbody');
return found.length > 0;
const isLoading = await testSubjects.exists('loadingPipelines');
return (found.length > 0) && (isLoading === false);
});
}