add new tests#1
Open
philipp-sapronov wants to merge 49 commits into
Open
Conversation
…nglish, remove unused cart-related types, and implement order creation mutation.
…on in checkout-create-order test
…ry comments in various test files
…ucture examples for clarity.
…ate test step descriptions for clarity, and remove unnecessary comments in test files.
…ad of using admin product creation directly
…h separate add method
…ag, product, and customer creation; remove unused feature group seeding logic.
…ility of category, tag, product, customer, and review creation steps.
…simplify checkout creation process.
- Implemented the CheckoutPaymentMethodUpdate mutation in GraphQL to allow updating the payment method for a checkout. - Updated schema-client.graphql to include new types for payment methods and constraints. - Enhanced the checkout API tests to cover payment method constraints, selection, and persistence. - Added tests for verifying payment method availability, selection, and payable amount calculations when items are added or modified in the checkout. - Ensured that payment data is correctly read and updated across different operations and scenarios.
- Added installation of multiple apps during session setup in SessionFixture. - Updated checkout tests to remove redundant app installation steps, improving clarity and efficiency. - Ensured consistent client setup across various checkout tests.
- Added new GraphQL mutations for managing delivery recipients: `checkoutDeliveryRecipientsAdd`, `checkoutDeliveryRecipientsUpdate`, and `checkoutDeliveryRecipientsRemove`. - Updated schema-client.graphql to include types and inputs for delivery recipients. - Enhanced existing queries to include recipient details in checkout operations. - Updated tests to cover adding, updating, and removing delivery recipients, ensuring proper integration with the checkout process. - Refactored related tests to validate recipient data handling and ensure consistency across delivery groups.
- Introduced a new seed configuration file (`seed-config.yml`) to manage project settings. - Created a TypeScript file (`seedConfig.ts`) for writing seed configurations. - Added multiple image files to the seed data for enhanced project initialization. - Updated `package.json` and `yarn.lock` to reflect new dependencies and configurations. - Improved logging in `seed-project.ts` for better visibility during the seeding process.
- Updated `seed-config.yml` with new email, slug, and API key for project initialization. - Enhanced `seed-project.ts` to load seed data from specified directories, allowing for better organization of categories, tags, products, and review templates. - Introduced new JSON files for boxing categories, products, and tags, enriching the seed data. - Improved image upload functionality to recursively find images in the specified directory. - Updated tests to reflect changes in the seeding process, ensuring proper initialization of boxing data before main JSON data.
- Updated `seed-config.yml` with a new email, slug, and API key for project initialization. - Added new product design options in `gift-box.json` to enhance the variety of available gift box designs.
- Updated GraphQL schema to replace `CheckoutLineInput` with `CheckoutLineAddInput` and introduced `CheckoutLineReplaceInput` for better line management. - Added new mutation `checkoutLinesReplace` to facilitate replacing quantities between checkout lines. - Introduced `Variant` class and corresponding GraphQL query to fetch product variants by handle. - Updated client API fixture to include variant management. - Refactored tests to utilize the new variant queries and ensure proper functionality of checkout line operations.
- Refactored test cases in `checkout-lines-replace.spec.ts` to align with the new `CheckoutLineReplaceInput` structure, replacing `lineIdFrom` and `lineIdTo` with `lineId` and `purchasableId` for better clarity and consistency in line management.
- Updated `seed-config.yml` with a new email, slug, and API key for project initialization. - Modified `gift-box.json` to improve the product description and added a new structure for selecting gift box designs, enhancing the variety of available options.
- Updated `.gitignore` to include Yarn-related files while excluding unnecessary ones. - Enhanced `schema-admin.graphql` by adding `domain` field to `InstalledApp` type and introducing `DROPDOWN_VARIANT_COVER` to `FeatureStyleType` enum. - Modified `schema-client.graphql` to replace `lineIdFrom` and `lineIdTo` with `lineId` and `purchasableId` in `CheckoutLineReplaceInput`, improving clarity in line management. - Added `orderMutation` to the `Mutation` type for better order management. - Updated `codegen` files to reflect changes in the GraphQL schema, ensuring consistency across the application.
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.