Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test: chart rendering with connect null values enabled testcase#8899

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@ktx-akshay
Copy link
Collaborator

No description provided.

greptile-apps[bot] reacted with thumbs up emoji
@ktx-akshayktx-akshayforce-pushed theenable-connect-nulls-config-for-visualization branch from591ce81 to14138bdCompareOctober 28, 2025 08:51
@github-actions
Copy link
Contributor

Failed to generate code suggestions for PR

@testdino-playwright-reporter

⚠️ Test Run Unstable


Author:ktx-akshay | Branch:enable-connect-nulls-config-for-visualization | Commit:14138bd

Testdino Test Results

StatusTotalPassedFailedSkippedFlakyPass RateDuration
All tests passed366342019593%4m 41s

View Detailed Results

@ktx-akshayktx-akshayforce-pushed theenable-connect-nulls-config-for-visualization branch from14138bd to6488e0bCompareOctober 28, 2025 10:25
@testdino-playwright-reporter

⚠️ Test Run Unstable


Author:ktx-akshay | Branch:enable-connect-nulls-config-for-visualization | Commit:6488e0b

Testdino Test Results

StatusTotalPassedFailedSkippedFlakyPass RateDuration
All tests passed366343019494%4m 39s

View Detailed Results

@ktx-akshayktx-akshay marked this pull request as ready for reviewOctober 28, 2025 10:49
@github-actions
Copy link
Contributor

Failed to generate code suggestions for PR

Copy link
Contributor

@greptile-appsgreptile-appsbot left a comment

Choose a reason for hiding this comment

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

Greptile Overview

Greptile Summary

This PR adds test coverage for the "connect null values" toggle functionality in dashboard visualization config. The test verifies that the toggle defaults totrue when visualizing histogram queries with HAVING clauses.

Key Changes:

  • Added page object methods (getConnectNullValuesState() andverifyConnectNullValuesToggle()) todashboard-panel-configs.js following existing patterns for toggle state verification
  • Added new test case to verify default state of connect null values toggle with histogram queries containing HAVING clauses
  • New SQL query constanthistogramQueryWithHaving added for testing this specific scenario

Quality Notes:

  • Implementation follows existing codebase patterns (mirroringverifyQuickModeToggle approach)
  • Test includes dual assertions (custom verification method + Playwright expect) for robustness
  • UseswaitForTimeout(1000) which is acceptable for waiting on UI panel visibility in this context

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk - adds test coverage without modifying production code
  • The PR only adds test code following established patterns in the codebase. The page object methods mirror existing toggle verification methods (likeverifyQuickModeToggle), ensuring consistency. The test case is straightforward and well-structured with clear steps. No production code changes means zero risk of runtime issues.
  • No files require special attention

Important Files Changed

File Analysis

FilenameScoreOverview
tests/ui-testing/pages/dashboardPages/dashboard-panel-configs.js5/5Adds page object methodsgetConnectNullValuesState() andverifyConnectNullValuesToggle() following existing patterns for toggle verification
tests/ui-testing/playwright-tests/dashboards/visualize.spec.js5/5Adds test case verifying connect null values toggle defaults to true for histogram queries with HAVING clause

Sequence Diagram

sequenceDiagram    participant Test as Test Suite    participant PM as PageManager    participant Visualise as LogsVisualise    participant PanelConfig as DashboardPanelConfigs    participant UI as Dashboard UI        Test->>PM: Create PageManager instance    Test->>Visualise: openLogs()    Test->>Visualise: fillLogsQueryEditor(histogramQueryWithHaving)    Test->>Visualise: setRelative("6", "w")    Test->>Visualise: logsApplyQueryButton()    Test->>Visualise: openVisualiseTab()    Visualise->>UI: Switch to visualization tab    Test->>Visualise: verifyChartRenders(page)    Visualise-->>Test: Chart renders successfully        Test->>PanelConfig: Create DashboardPanelConfigs instance    Test->>PanelConfig: openConfigPanel()    PanelConfig->>UI: Click config sidebar    UI-->>PanelConfig: Config panel visible        Test->>Test: waitForTimeout(1000)    Test->>PanelConfig: verifyConnectNullValuesToggle(true)    PanelConfig->>PanelConfig: getConnectNullValuesState()    PanelConfig->>UI: waitFor connectNullValuesToggle visible    PanelConfig->>UI: getAttribute("aria-checked")    alt aria-checked is null        PanelConfig->>UI: getAttribute("aria-pressed")    end    UI-->>PanelConfig: Return "true"    PanelConfig->>PanelConfig: Validate expected vs actual state    PanelConfig-->>Test: Return toggle state (true)        Test->>Test: expect(connectNullState).toBe(true)    Test->>UI: Locate connect null toggle    Test->>UI: expect toHaveAttribute("aria-checked", "true")
Loading

2 files reviewed, no comments

Edit Code Review Agent Settings |Greptile

@ktx-akshayktx-akshay merged commit8f495b5 intomainOct 28, 2025
33 checks passed
@ktx-akshayktx-akshay deleted the enable-connect-nulls-config-for-visualization branchOctober 28, 2025 11:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ktx-kirtanktx-kirtanktx-kirtan approved these changes

+1 more reviewer

@greptile-appsgreptile-apps[bot]greptile-apps[bot] left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ktx-akshay@ktx-kirtan

[8]ページ先頭

©2009-2025 Movatter.jp