Add tests for Console's context menu and its actions #136057
Labels
Feature:Console
Dev Tools Console Feature
Feature:Dev Tools
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
test-coverage
issues & PRs for improving code test coverage
Summary
Console offers a context menu per request, which enables the user to perform a number of actions with the relevant request. Let's add functional tests to document and verify this behavior:
Content menu and its actions
Request-specific context menu
You can use this context menu to copy the request as cURL, open a documentation link for the relevant API, and auto-indent the request body.
Auto-indent
Auto-indent will format the request body so that it has indentation at each nesting level, and empty objects will be collapsed so that the opening and closing brackets are on the same line.
When auto-indented, the above becomes nicely formatted like this:
Auto-indenting again will condense the JSON so that it only occupies a single line and has no whitespace:
Subsequent auto-indents alternate between the condensed form and the nicely indented form.
Note that auto-indenting a triple-quoted string like this:
Will replace newlines with a newline character:
Auto-indenting again will return to the original triple-quoted string form.
The text was updated successfully, but these errors were encountered: