-
Notifications
You must be signed in to change notification settings - Fork 715
test: add _timestamp test with qm #8204
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
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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 testing functionality for timestamp field interactions in the OpenObserve logs interface. The changes extend the existing test automation framework with two key components:
Test Infrastructure Enhancement (logsPage.js):
The LogsPage class gains new testing capabilities through the addition of a timestampFieldTable selector that targets the log search index list fields table. Five new methods are introduced following the established Page Object Model pattern:
clickTimestampField()- Interacts with the_timestampfield in the tableclickSchemaButton()andclickInfoSchemaButton()- Navigate between schema viewsclickClearButton()- Triggers clearing operationsexpectTimestampFieldVisible()- Provides assertion capabilities for timestamp field visibility
Test Implementation (logsquickmode.spec.js):
A new test case "should be able to click on _timestamp qm" validates the complete workflow of timestamp field interaction in quick mode. The test orchestrates a sequence of UI actions: clicking the timestamp field, navigating through schema and infoschema views, performing clear operations, and ultimately asserting that the timestamp field remains visible throughout these operations.
This enhancement fits into OpenObserve's broader UI testing strategy by providing reusable, maintainable test components that can validate critical timestamp functionality across different user workflows. The implementation follows existing patterns in the codebase, using Playwright's locator and action APIs consistently with other test utilities.
Confidence score: 5/5
- This PR is extremely safe to merge with minimal risk as it only adds test code without touching production functionality
- Score reflects the addition of well-structured test code that follows established patterns and doesn't modify any production logic
- No files require special attention as the changes are isolated to test infrastructure and follow existing conventions
1 file reviewed, no comments
PR Type
Tests
Description
Add timestamp field UI test
Extend Logs page selectors and actions
Validate schema/infoschema navigation
Ensure timestamp visibility after clear
Diagram Walkthrough
File Walkthrough
logsPage.js
Add timestamp and schema-related UI helperstests/ui-testing/pages/logsPages/logsPage.js
timestampFieldTablelogsquickmode.spec.js
Add UI test for _timestamp quick mode flowtests/ui-testing/playwright-tests/Logs/logsquickmode.spec.js