Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Fix: translations spec clashed with a product named by the imports spec

Claude29c45b032f32
diff --git a/packages/dashboard/e2e/products-translations.spec.ts b/packages/dashboard/e2e/products-translations.spec.ts
index 6b1623d5d2..4cc7942ce4 100644
--- a/packages/dashboard/e2e/products-translations.spec.ts
+++ b/packages/dashboard/e2e/products-translations.spec.ts
@@ -123,7 +123,7 @@ test.describe('product translations', () => {
'Höhenverstellbarer Standventilator mit 40cm Rotordurchmesser',
)
- await gotoIndex(page, TRANSLATIONS_PATH(creds.store_id), /import/i)
+ await gotoIndex(page, TRANSLATIONS_PATH(creds.store_id), /^import$/i)
await coverageSearch(page).fill(name)
await page.getByRole('button', { name }).click()
@@ -141,7 +141,7 @@ test.describe('product translations', () => {
await createProduct(page, creds.store_id, name)
const productUrl = page.url()
- await gotoIndex(page, TRANSLATIONS_PATH(creds.store_id), /import/i)
+ await gotoIndex(page, TRANSLATIONS_PATH(creds.store_id), /^import$/i)
await coverageSearch(page).fill(name)
await expect(page.getByRole('row', { name: new RegExp(name) })).toBeVisible({ timeout: 15_000 })
@@ -151,7 +151,7 @@ test.describe('product translations', () => {
await page.getByRole('button', { name: /^save product$/i }).click()
await expect(page.getByText(/product saved/i)).toBeVisible({ timeout: 15_000 })
- await gotoIndex(page, TRANSLATIONS_PATH(creds.store_id), /import/i)
+ await gotoIndex(page, TRANSLATIONS_PATH(creds.store_id), /^import$/i)
await coverageSearch(page).fill(renamed)
await expect(page.getByRole('row', { name: new RegExp(renamed) })).toBeVisible({
timeout: 15_000,
@@ -164,7 +164,7 @@ test.describe('product translations', () => {
const name = `E2E Coverage ${suffix}`
await createProduct(page, creds.store_id, name)
- await gotoIndex(page, TRANSLATIONS_PATH(creds.store_id), /import/i)
+ await gotoIndex(page, TRANSLATIONS_PATH(creds.store_id), /^import$/i)
await coverageSearch(page).fill(name)
const row = page.getByRole('row', { name: new RegExp(name) })
await expect(row).toBeVisible({ timeout: 15_000 })
diff --git a/packages/dashboard/e2e/seller-catalog.spec.ts b/packages/dashboard/e2e/seller-catalog.spec.ts
index 34128dd57a..0d5883f0f5 100644
--- a/packages/dashboard/e2e/seller-catalog.spec.ts
+++ b/packages/dashboard/e2e/seller-catalog.spec.ts
@@ -1,7 +1,6 @@
import { expect, test } from '@playwright/test'
import { invitationAcceptancePath, login, SELLER_PANEL } from './helpers'
-
/**
* Creates a seller, invites someone, and accepts on the panel — returning the
* signed-in seller page. The invitation flow has its own spec; this is the
diff --git a/packages/dashboard/e2e/seller-delivery-methods.spec.ts b/packages/dashboard/e2e/seller-delivery-methods.spec.ts
index c23ed45512..fcbd378b64 100644
--- a/packages/dashboard/e2e/seller-delivery-methods.spec.ts
+++ b/packages/dashboard/e2e/seller-delivery-methods.spec.ts
@@ -1,7 +1,6 @@
import { expect, test } from '@playwright/test'
import { invitationAcceptancePath, login, SELLER_PANEL } from './helpers'
-
/**
* Creates a seller, invites someone, and accepts on the panel — returning the
* signed-in seller page. The invitation flow has its own spec; this is the
diff --git a/packages/dashboard/e2e/seller-package-types.spec.ts b/packages/dashboard/e2e/seller-package-types.spec.ts
index 30971aa194..93bf84b00e 100644
--- a/packages/dashboard/e2e/seller-package-types.spec.ts
+++ b/packages/dashboard/e2e/seller-package-types.spec.ts
@@ -1,7 +1,6 @@
import { expect, test } from '@playwright/test'
import { invitationAcceptancePath, login, SELLER_PANEL } from './helpers'
-
/**
* Creates a seller, invites someone, and accepts on the panel — returning the
* signed-in seller page. The invitation flow has its own spec; this is the