-
Notifications
You must be signed in to change notification settings - Fork 715
test: dashboard max query range limit #6813
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
80b9c93 to
c2425b2
Compare
e0ff378 to
230ad8e
Compare
651be45 to
4850684
Compare
dafd257 to
586e496
Compare
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.
Greptile Summary
This PR adds comprehensive UI test coverage for the dashboard max query range limit functionality. The changes include:
-
New Test File:
maxquery.spec.jsis added to validate that dashboards properly display warning messages when query time ranges exceed stream-configured limits (e.g., warning appears for 6-week queries when stream limit is 4 days, and disappears when reduced to 2 hours). -
Page Object Pattern Enhancement: A new
StreamSettingsPageclass is created to encapsulate stream configuration UI interactions, following established testing patterns in the codebase. This provides reusable methods for updating stream max query range settings. -
Management Page Extension: The
ManagementPageclass gains streaming control methods (checkStreaming()andensureStreamingDisabled()) to ensure consistent test environment setup by managing the streaming feature state. -
CI Integration: The new test is integrated into the GitHub Actions Playwright workflow under the Dashboards-Core test suite, with YAML formatting standardized across all test configurations.
The implementation follows the existing test architecture using PageManager for UI interactions and includes proper test lifecycle management with setup/teardown procedures. The functionality being tested appears to be a performance safeguard that prevents users from executing resource-intensive queries that exceed configured time limits.
Confidence score: 3/5
- This PR has moderate risk due to test implementation quality issues that could affect reliability
- Score reflects concerns about hardcoded timeouts, duplicate code, debugging artifacts, and potential test flakiness from timing dependencies
- Pay close attention to
maxquery.spec.jsfor code quality improvements andmanagementPage.jsfor timeout handling
4 files reviewed, 5 comments
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
38511d7 to
b33be23
Compare
…wait timeouts and improve locator usage
…ate test case status
…pdate test case status
…ecks for streaming toggle
…Base and remove unnecessary wait timeouts
… and removing redundant wait timeouts
… WebSocket toggle logic with improved logging
… with enhanced logging and streamlined methods
d424afc to
2a243c9
Compare
PR Type
Tests, Enhancement
Description
Add dashboard max query range UI test
Introduce StreamSettingsPage page object
Enhance ManagementPage with streaming toggles
Include maxquery test in CI workflow
Diagram Walkthrough
File Walkthrough
streams.js
New StreamSettingsPage for stream max query updatestests/ui-testing/pages/dashboardPages/streams.js
managementPage.js
ManagementPage refactor and streaming toggle helperstests/ui-testing/pages/generalPages/managementPage.js
maxquery.spec.js
Playwright spec for dashboard max query warningtests/ui-testing/playwright-tests/dashboards/maxquery.spec.js
playwright.yml
CI includes max query dashboard test.github/workflows/playwright.yml