-
Notifications
You must be signed in to change notification settings - Fork 715
test: Stabilize Dashboard Tests for Deployed Environment #9437
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
Conversation
|
Failed to generate code suggestions for PR |
8606e85 to
27b5abf
Compare
32d2018 to
5ca8814
Compare
|
Failed to generate code suggestions for PR |
Greptile OverviewGreptile SummaryThis PR improves test stability for dashboard tests in deployed environments by refining element locators and adding wait strategies. Key Changes:
Issues Found:
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Test as Test Spec
participant PM as PageManager
participant DC as DashboardCreate
participant CTS as ChartTypeSelector
participant Page as Playwright Page
Test->>PM: Initialize PageManager(page)
Test->>PM: menuItem("dashboards-item")
Test->>Page: waitForDashboardPage()
opt HTML Chart Test Only
Test->>DC: waitForDashboardUIStable()
DC->>Page: Wait for search input visible
DC->>Page: Wait for import button visible
DC-->>Test: UI Stable
end
Test->>DC: createDashboard(name)
DC->>Page: Wait for "New Dashboard" button
DC->>Page: Click dashboard create button
DC->>Page: Fill dashboard name
DC->>Page: Click submit
DC-->>Test: Dashboard created
opt HTML Chart Test Only
Test->>Page: waitForTimeout(5000)
end
Test->>DC: addPanel()
Test->>CTS: selectChartType()
alt Multi Y-Axis Chart
Test->>CTS: searchAndAddField(fieldName, target)
CTS->>Page: Fill search input
CTS->>Page: locator().filter({hasText}).first()
Note over CTS,Page: Improved locator strategy
CTS->>Page: Click add button
Test->>Page: Click query inspector
Test->>Page: getByRole("cell").nth(1)
Note over Test,Page: Changed from .first() to .nth(1)
else HTML Chart
Test->>Page: Fill HTML editor with snippet
Test->>Page: Verify rendered content
end
Test->>PM: savePanel()
Test->>PM: backToDashboardList()
Test->>Test: deleteDashboard()
|
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.
3 files reviewed, 3 comments
tests/ui-testing/playwright-tests/dashboards/dashboard-html-chart.spec.js
Outdated
Show resolved
Hide resolved
tests/ui-testing/playwright-tests/dashboards/dashboard-html-chart.spec.js
Show resolved
Hide resolved
tests/ui-testing/playwright-tests/dashboards/dashboard-multi-y-axis.spec.js
Show resolved
Hide resolved
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
…d filtering