Skip to content

Commit

Permalink
Improving way to check if pipelines list is loaded (elastic#32370)
Browse files Browse the repository at this point in the history
* [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 1fb4077.
  • Loading branch information
dmlemeshko committed Mar 10, 2019
1 parent 1e416ca commit 5c445d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/functional/services/pipeline_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand Down

0 comments on commit 5c445d1

Please sign in to comment.