Skip to content
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

Closed
wants to merge 30 commits into from
Closed

TSVB add markdown tests #30642

wants to merge 30 commits into from

Conversation

vitalics
Copy link
Contributor

Summary

add new tsvb markdown tests
Summarize your PR. If it involves visual changes include a screenshot or gif.

Checklist

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

For maintainers

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@vitalics vitalics requested a review from LeeDr February 12, 2019 09:53
@vitalics vitalics added Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Feb 12, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@dmlemeshko dmlemeshko requested review from LeeDr and removed request for LeeDr February 12, 2019 11:09
@vitalics
Copy link
Contributor Author

this tests related for #23418, #28168 and #30625

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@dmlemeshko
Copy link
Member

I added several more comments. Branch is ~120 commits behind master, suggesting to merge latest master.

Copy link
Member

@dmlemeshko dmlemeshko left a 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);
Copy link
Member

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);
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, since getting element so fast and best option is use sleep with a timeout. Actual element text is
image

and current text for same element is
image

@@ -94,6 +164,7 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }) {
await PageObjects.header.waitUntilLoadingHasFinished();
}


Copy link
Member

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}`);
Copy link
Member

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

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@dmlemeshko
Copy link
Member

@vitalics you need to merge the latest master to your branch.

@vitalics
Copy link
Contributor Author

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@vitalics
Copy link
Contributor Author

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@vitalics
Copy link
Contributor Author

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@vitalics vitalics requested review from a team as code owners February 22, 2019 12:24
@sorenlouv
Copy link
Member

@vitalics No worries. Can you remove the teams you don't need feedback from?

@vitalics
Copy link
Contributor Author

vitalics commented Feb 22, 2019

Unfourchantly I can't. Could you please remove canvas, ml-ui, security, design and apm-ui teams from reviewers

@elasticmachine
Copy link
Contributor

💔 Build Failed

walterra and others added 23 commits February 22, 2019 15:35
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]>
add test for table checking
fix flacky for markdown table variables
@elasticmachine
Copy link
Contributor

💔 Build Failed

@vitalics
Copy link
Contributor Author

reopened #31893

@vitalics vitalics closed this Feb 25, 2019
@vitalics vitalics deleted the tsvb_markdown branch February 25, 2019 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure test_ui_functional
Projects
None yet
Development

Successfully merging this pull request may close these issues.