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

[Query Testing] TESTID-234: Query editor display #9267

Open
LDrago27 opened this issue Jan 24, 2025 · 1 comment
Open

[Query Testing] TESTID-234: Query editor display #9267

LDrago27 opened this issue Jan 24, 2025 · 1 comment
Labels
discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative enhancement New feature or request

Comments

@LDrago27
Copy link
Collaborator

Objective

What are we testing

What to test

Permutations to consider (only if they apply):

Data type:

  • Index Patterns
  • Indexes
  • S3 Connections
  • Cloudwatch
  • Security Lake

Language:

  • DQL
  • Lucene
  • PPL
  • SQL

Test Suite 1: Query Info Button

Dataset Steps Expected Results Notes
Index Pattern 1. Click query info button.
2. Click specific query info URL.
- DQL info link should route to DQL documentation.
- Lucene info link should route to Lucene documentation.
- OpenSearch SQL info link should route to SQL documentation.
- PPL info link should route to PPL documentation.
Index Same steps as Index Pattern, but select an index instead. Same expected results as Index Pattern.

Test Suite 2: Collapse and Expand Query Editor

Dataset Steps Expected Results Notes
Index Pattern 1. Open Discover and choose SQL/DQL.
2. Click the query expand/collapse button (next to query info button).
3. Refresh the page.
4. Switch to another language.
- Default state of the query editor is expanded.
- Can collapse if clicking the expand/collapse button.
- Can expand if clicking the expand/collapse button.
- Refreshing the page will maintain the expand/collapse state.
- Switching from SQL to PPL or from PPL to SQL will maintain the expand/collapse state.
Index Same steps as Index Pattern, but select an index instead. Same expected results as Index Pattern.

Pre-requisites

What do we need to make sure the test can be written?

Steps to setting up the scenario:

  1. Have at least 1 existing workspace with index patterns.
  2. Have one workspace without index patterns.

Known Issues

List of known issues to reference that could impact the results of this test case.

@LDrago27 LDrago27 added enhancement New feature or request discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative labels Jan 24, 2025
@ananzh
Copy link
Member

ananzh commented Jan 24, 2025

  • Info button
info-button.mp4
  • Collapse/Expand query editor
query-collapse.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants