Improve test coverage and quality#9
Merged
Conversation
- Introduced `smart_wait_spec.rb` to test various wait conditions including visibility, enabled state, text presence, and custom conditions. - Implemented tests for `ConditionalWait` methods ensuring correct behavior for `wait_until`, `wait_while`, and `wait_for_stable_condition`. - Created `visual_spec.rb` to validate visual testing functionalities, including baseline creation, screenshot capturing, and visual comparison. - Added `wait_spec.rb` to verify the behavior of the Wait class, including custom timeout and interval settings. - Established a `spec_helper.rb` for shared test configurations and mock setups. - Ensured all tests are isolated and clean up after execution to maintain test integrity.
- Added frozen string literal to spec_helper.rb and visual_spec.rb for performance. - Updated example_status_persistence_file_path to use single quotes for consistency. - Simplified RSpec before and after hooks in spec_helper.rb. - Enhanced visual_spec.rb with improved mock setups and streamlined tests. - Refactored wait_spec.rb to improve clarity and coverage of the wait functionality. - Added logging for wait start and end events in the wait functionality. - Improved handling of exceptions in wait conditions and added integration scenarios for element finding and state changes.
- Introduced a new spec file for Appom::Section with tests for initialization, parent page retrieval, element definitions, nested sections, and inheritance. - Enhanced SmartWait tests to cover custom conditions, element visibility, attribute checks, and stability conditions. - Implemented factory methods for SmartWait with tests for clickable, text matching, and count conditions. - Re-enabled SimpleCov for coverage tracking with a minimum coverage threshold of 80%.
…lement container specs
…ctionality - Enhanced `element_state_spec.rb` with additional tests covering edge cases, observer functionality, and error handling for element state tracking. - Introduced new `screenshot_spec.rb` to test the screenshot management features, including capturing screenshots, handling failures, and comparing images. - Implemented tests for various screenshot formats, auto-timestamping, and cleanup of old screenshots. - Added validation for supported formats and ensured graceful handling of exceptions during screenshot operations.
- Added `simplecov-cobertura` gem for CI/Codecov integration in Gemfile. - Updated README.md to improve project presentation and highlight key features. - Created a new examples directory with practical use cases for Appom. - Introduced a Basic Login example demonstrating fundamental concepts. - Enhanced spec_helper.rb for better coverage reporting and configuration.
…unnecessary RuboCop disables and consolidating method stubs in specs
… update RuboCop metrics and enhance test coverage for edge cases and error handling
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.