refactor: tests arrange and teardown sections#104
Merged
Andrew-Orlov merged 16 commits intodevfrom Jan 27, 2026
Merged
Conversation
- Updated the Auth class to perform browser-based login instead of setting local storage directly. - Enhanced the test_e2e_merge_carts to utilize the new authentication method and clear user carts appropriately. - Adjusted user ID handling to ensure correct cart operations for both registered and anonymous users.
- Updated the pickup location modal component to handle visibility checks and ensure proper filtering based on user input. - Refactored tests to replace button clicks with keyboard interactions for better reliability. - Enhanced assertions in tests to validate the presence of keywords in pickup locations. - Cleaned up unnecessary waits and improved overall test structure for clarity.
- Added functionality to convert 'expires_in' to 'expires_at' in ISO format. - Implemented a method to extract user ID from the JWT access token. - Updated the authentication flow to set localStorage values before page navigation, improving the login process.
…t operations - Added wait for network idle state in multiple test cases to ensure proper loading of pickup locations. - Updated cart operations to use clear_cart for better clarity and consistency. - Enhanced assertions to validate pickup points count after applying and resetting filters. - Improved test structure for better reliability and maintainability.
…ti_organization tests - Added wait for network idle state in multiple test cases to ensure proper loading of pages before interactions. - Refactored authentication flow to streamline user sign-in process across various tests.
…nd organization registration tests
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.