Skip to content
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

feat: add new address #300

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

vanpham-sw
Copy link
Contributor

@vanpham-sw vanpham-sw commented Feb 4, 2025

Platform PR: shopware/shopware#6589

@vanpham-sw vanpham-sw marked this pull request as draft February 4, 2025 07:06
@vanpham-sw vanpham-sw force-pushed the next-40295/country-not-eligible-delivery-ats branch from 78537bd to 87304c6 Compare February 4, 2025 07:08
@@ -100,7 +100,7 @@ export class TestDataService {
*
* @private
*/
private highPriorityEntities = ['order', 'product', 'landing_page', 'shipping_method', 'sales_channel_domain', 'sales_channel_currency', 'sales_channel_country', 'customer'];
private highPriorityEntities = ['order', 'product', 'landing_page', 'shipping_method', 'sales_channel_domain', 'sales_channel_currency', 'sales_channel_country', 'customer', 'customer_address'];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having an issue cleaning up country data in after hook(409 conflict error), despite having added customer_address here.

Copy link
Contributor

@yusufttur yusufttur Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow the address data is still in use when you try to delete it.

@vanpham-sw vanpham-sw marked this pull request as ready for review February 4, 2025 07:44
@vanpham-sw vanpham-sw requested a review from a team February 4, 2025 07:44
const task = (address: Address) => {
return async function AddNewAddress() {

await ShopCustomer.goesTo(StorefrontAccountAddresses.url());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put that line (goesTo) into the test so that It is more transparent where you create the address.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and we save execution time because the fixture ShopCustomer is large and takes much more time to generate compared to a simple page object.

@vanpham-sw vanpham-sw force-pushed the next-40295/country-not-eligible-delivery-ats branch from 66f07a3 to 4688f07 Compare February 5, 2025 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants