Serverless Common UI - Management Data View Management edit field field preview should show preview for fields in _source
Error message
Error: retry.tryForTime reached timeout 5000 ms
Error: Expected previewText to eql [css], but got: [png]
at Assertion.assert (expect.js:100:11)
at Assertion.eql (expect.js:244:8)
at settings_page.ts:1073:30
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at runAttempt (retry_for_success.ts:30:15)
at retryForSuccess (retry_for_success.ts:99:21)
at RetryService.tryForTime (retry.ts:38:12)
at SettingsPageObject.changeAndValidateFieldFormat (settings_page.ts:1071:5)
at Context. (_edit_field.ts:33:9)
at Object.apply (wrap_function.js:74:16)
at onFailure (retry_for_success.ts:18:9)
at retryForSuccess (retry_for_success.ts:85:7)
at RetryService.tryForTime (retry.ts:38:12)
at SettingsPageObject.changeAndValidateFieldFormat (settings_page.ts:1071:5)
at Context. (_edit_field.ts:33:9)
at Object.apply (wrap_function.js:74:16)
Screenshot
Test 2
Serverless Common UI - Management Data View Management edit field field preview should show preview for fields not in _source
I think ElementNotInteractableError: element not interactable is a red herring, and the second failure only occurs because after the first failure, the flyout is left open. so the element we are attempting to click is obscured by it and we get the “not interactable” error.
the issue causing the first failure Expected previewText to eql [css], but got: [png] looks to be that the flyout occasionally opens to a document other than the one we’re expecting. I see AVo_PUMjeg4e7W9DbxTE in the screenshot, but we’re expecting AVo_PUMjeg4e7W9DbxTD (“D” vs “E” at the end of the ID). I’m unsure why this would be other than possibly something in ingestion occasionally causes a different doc to be returned by default?
I believe it’s unrelated to what we’re actually testing though, so one option would be to manually set the Document ID field to AVo_PUMjeg4e7W9DbxTD before checking the value to ensure we’re looking at the right doc.
Summary
2 Tests failing once so far, on mki.
Config
x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group1.ts
Test 1
Serverless Common UI - Management Data View Management edit field field preview should show preview for fields in _source
Error message
Screenshot
Test 2
Serverless Common UI - Management Data View Management edit field field preview should show preview for fields not in _source
Error message
Screenshot
Developer Notes
from @davismcphee