Skip to content

FTR: fix testSubjects.missingOrFail#42290

Merged
dmlemeshko merged 3 commits intoelastic:masterfrom
dmlemeshko:ftr/fix-missingOrFail-function
Jul 30, 2019
Merged

FTR: fix testSubjects.missingOrFail#42290
dmlemeshko merged 3 commits intoelastic:masterfrom
dmlemeshko:ftr/fix-missingOrFail-function

Conversation

@dmlemeshko
Copy link
Copy Markdown
Contributor

@dmlemeshko dmlemeshko commented Jul 30, 2019

Summary

Fixes #42226

There is an issue with testSubjects.missingOrFail function using testSubjects.exists logic:
exists returns the result as soon as the element is found & ignoring timeout for missingOrFail

It means that missingOrFail('#my_id', 1000) or missingOrFail('#my_id', 20000) will both fail if element still be present right when function is called (1st second)

It was working fine for the case when element immediately goes away from DOM, but won't work if it sits in DOM for a while and then be gone.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@dmlemeshko dmlemeshko changed the title FTR: fix missingOrFail FTR: fix testSubjects.missingOrFail Jul 30, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@dmlemeshko dmlemeshko requested a review from spalger July 30, 2019 21:54
Copy link
Copy Markdown
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@dmlemeshko dmlemeshko marked this pull request as ready for review July 30, 2019 22:16
@dmlemeshko dmlemeshko added the release_note:skip Skip the PR/issue when compiling release notes label Jul 30, 2019
@dmlemeshko dmlemeshko merged commit 7d61cac into elastic:master Jul 30, 2019
dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request Jul 31, 2019
* [services/test_subject] fix missingOrFail

* [services/test_subjects] allowHidden option for missingOrFail

* [page_objects/dashboard_page] wait for euiTable loaded, increase timeout for loading page check
dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request Jul 31, 2019
* [services/test_subject] fix missingOrFail

* [services/test_subjects] allowHidden option for missingOrFail

* [page_objects/dashboard_page] wait for euiTable loaded, increase timeout for loading page check
dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request Jul 31, 2019
* [services/test_subject] fix missingOrFail

* [services/test_subjects] allowHidden option for missingOrFail

* [page_objects/dashboard_page] wait for euiTable loaded, increase timeout for loading page check
dmlemeshko added a commit that referenced this pull request Jul 31, 2019
* [services/test_subject] fix missingOrFail

* [services/test_subjects] allowHidden option for missingOrFail

* [page_objects/dashboard_page] wait for euiTable loaded, increase timeout for loading page check
dmlemeshko added a commit that referenced this pull request Jul 31, 2019
* [services/test_subject] fix missingOrFail

* [services/test_subjects] allowHidden option for missingOrFail

* [page_objects/dashboard_page] wait for euiTable loaded, increase timeout for loading page check
dmlemeshko added a commit that referenced this pull request Jul 31, 2019
* [services/test_subject] fix missingOrFail

* [services/test_subjects] allowHidden option for missingOrFail

* [page_objects/dashboard_page] wait for euiTable loaded, increase timeout for loading page check
@dmlemeshko
Copy link
Copy Markdown
Contributor Author

Backported:
7.x/7.4 0e315ab
7.3.1 13c1591
7.2.2 d118d7e

jloleysens added a commit to jloleysens/kibana that referenced this pull request Jul 31, 2019
…-or-edit-existing-rollup-job

* 'master' of github.com:elastic/kibana: (114 commits)
  [ML] Fixing empty index pattern list (elastic#42299)
  [Markdown] Shim new platform - cleanup plugin (elastic#41760)
  [Code] Enable hierarchicalDocumentSymbolSupport for java language server (elastic#42233)
  Add New Platform mocks for data plugin (elastic#42261)
  Http server route handler implementation (elastic#41894)
  [SR] Allow custom index pattern to be used instead of selectable list when choosing indices to restore (elastic#41534)
  [Code] distributed Code abstraction (elastic#41374)
  [SIEM] Sets page titles to the current page you are on  (elastic#42157)
  Saved Objects export API stable type order (elastic#42310)
  cancellation of interpreter execution (elastic#40238)
  [SIEM] Fixes a crash when Machine Learning influencers is an undefined value (elastic#42198)
  Changed the job to work with a dedicated index (elastic#42297)
  FTR: fix testSubjects.missingOrFail (elastic#42290)
  Increase retry timeout to prevent flaky tests (elastic#42291)
  Spaces - make space a hidden saved object type (elastic#41688)
  Allow applications to register feature privileges which are excluded from the base privileges (elastic#41300)
  Disable flaky log column reorder test (elastic#42285)
  Fixing add element in element reducer (elastic#42276)
  Fix infinite loop (elastic#42228)
  [Maps][File upload] Remove geojson deep clone logic, handle on maps side (elastic#41835)
  ...
@dmlemeshko dmlemeshko deleted the ftr/fix-missingOrFail-function branch January 31, 2022 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants