Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Wait for the seeded channel before saving in the publishing spec
Damian Legawiecfe8ba467914e
diff --git a/packages/dashboard/e2e/products-publishing.spec.ts b/packages/dashboard/e2e/products-publishing.spec.tsindex 3cdab37944..b46729349f 100644--- a/packages/dashboard/e2e/products-publishing.spec.ts+++ b/packages/dashboard/e2e/products-publishing.spec.ts@@ -118,6 +118,11 @@ test.describe('product publishing', () => {// computes from published_at (it short-circuits to "not_available"// while the product is Draft).await createMinimalProduct(page, creds.store_id, productName)+ // Wait for the default channel to be seeded before saving. The Publishing+ // card seeds it once the channels query resolves, so clicking Create+ // first saves a product listed on no channel — and the assertions below+ // would then be waiting for a row that was never persisted.+ await expect(publishingCard(page).getByText(/online store/i)).toBeVisible({ timeout: 15_000 })await page.getByRole('button', { name: /^create product$/i }).click()await expect(page).toHaveURL(new RegExp(`/${creds.store_id}/products/prod_[^/]+$`), {timeout: 30_000,