-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TSVB add markdown tests #30642
TSVB add markdown tests #30642
Conversation
💚 Build Succeeded |
Pinging @elastic/kibana-app |
💚 Build Succeeded |
I added several more comments. Branch is ~120 commits behind master, suggesting to merge latest master. |
3a013b6
to
7bd6a29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, but need to get rid of sleep
: we are trying to remove existing ones, so lets not add new ones :)
@@ -59,6 +60,17 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }) { | |||
async enterMarkdown(markdown) { | |||
const prevRenderingCount = await PageObjects.visualize.getVisualizationRenderingCount(); | |||
const input = await find.byCssSelector('.tvbMarkdownEditor__editor textarea'); | |||
await this.clearMarkdown(); | |||
await input.type(markdown); | |||
await PageObjects.common.sleep(500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need sleep
here. waitForRenderingCount
for checking condition is doing retry
up to ~40 sec
} | ||
|
||
async getMarkdownText() { | ||
const el = await find.byCssSelector('.tvbEditorVisualization'); | ||
await PageObjects.common.sleep(300); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to replace it with any wait condition
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -94,6 +164,7 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }) { | |||
await PageObjects.header.waitUntilLoadingHasFinished(); | |||
} | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant empty line
const value = await subVars[1].getVisibleText(); | ||
return { key, value, selector }; | ||
})); | ||
log.debug(`markdown table variables is: ${variablesKeyValueSelectorMap}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
markdown variables table is
or markdown table variables are
💔 Build Failed |
💔 Build Failed |
@vitalics you need to merge the latest master to your branch. |
retest |
💔 Build Failed |
retest |
💔 Build Failed |
retest |
💔 Build Failed |
@vitalics No worries. Can you remove the teams you don't need feedback from? |
Unfourchantly I can't. Could you please remove |
💔 Build Failed |
This deprecates our own implementation of `stateFactory()`. This utility was able to manage shared state across angular and react code including persisting it to the URL using `AppState`. This PR replaces it with a simpler way using RxJs' Observables.
* [Logs UI] Add link-to router for logs (without a node) * Fixing snapshots * Update x-pack/plugins/infra/public/pages/link_to/redirect_to_logs.tsx Co-Authored-By: simianhacker <[email protected]>
* test: assets and structures routes * chore: unify the workpad update handler the 3 functions were pretty much the same already
* Update embeddables metadata to support multiple index patterns * ts lint errors * another try at ts lint errors * fix dashboard_state tests * use lodash compact to remove undefined * revert _.compact to make TS linter happy * rename simulateNewEmbeddableWithIndexPattern => simulateNewEmbeddableWithIndexPatterns
Currently, if the Cloud plugin is disabled the server will fail to start Fixes #31612 Signed-off-by: Tyler Smalley <[email protected]>
Fixes time_filter state Removed console logs Cleaned up changes Removed unused prop in time_filter Moved propTypes Fixed bug with changing columns Added comment
…ed (#31816) * [Maps] fix app crash where details panel calls getId on undefined * add jest test ensuring no errors when selectedLayer is undefined
…31799) * [APM] Avoid crashing transaction details page if trace duration is 0 * Remove snapshot
* [UA] Support previously re-indexed ML/Watcher indices Previously we were comparing the start of the indices to determine if ML/Watcher should be stopped before re-indexing. Since we are now pre-pending the index name we should compare the index names without the re-indexed portion. Signed-off-by: Tyler Smalley <[email protected]>
errno is not set for ECONNRESET https://github.com/hapijs/wreck/blob/29d8f4b5eaa12c5d44c642130cd6002c1d83ffd2/lib/index.js#L290 Closes #22225 Example: { Error: socket hang up at TLSSocket.onSocketClose (_tls_wrap.js:761:23) at TLSSocket.emit (events.js:194:15) at _handle.close (net.js:600:12) at Socket.done (_tls_wrap.js:388:7) at Object.onceWrapper (events.js:277:13) at Socket.emit (events.js:189:13) at TCP._handle.close (net.js:600:12) code: 'ECONNRESET' Signed-off-by: Tyler Smalley <[email protected]>
…ups. (#31869) * Remove duplicate license header.
add test for table checking
fix flacky for markdown table variables
💔 Build Failed |
reopened #31893 |
Summary
add new tsvb markdown tests
Summarize your PR. If it involves visual changes include a screenshot or gif.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers