feat: add provider mapping admin workflow
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-09 13:28:15 -04:00
parent 4c041e069d
commit 0ffccf6617
4 changed files with 92 additions and 2 deletions
@@ -26,8 +26,13 @@ test('signs in and publishes a listing after adding an inventory image', async (
await page.getByRole('button', { name: 'Create product' }).click();
await expect(page.locator('#inventory-product option').nth(1)).toBeAttached();
const createdProductId = await page.getByLabel('Product', { exact: true }).locator('option', { hasText: productName }).getAttribute('value');
await page.getByLabel('Product', { exact: true }).selectOption(createdProductId);
const createdProductId = await page.locator('#inventory-product').locator('option', { hasText: productName }).getAttribute('value');
await page.locator('#mapping-product').selectOption(createdProductId);
await page.getByLabel('Provider ID').fill('fixture-provider');
await page.getByLabel('External identifier').fill('fixture-product-1');
await page.getByRole('button', { name: 'Save provider mapping' }).click();
await expect(page.getByRole('region', { name: 'Active provider mappings' })).toContainText('fixture-provider');
await page.locator('#inventory-product').selectOption(createdProductId);
await page.getByLabel('Condition', { exact: true }).selectOption({ index: 1 });
await page.getByRole('button', { name: 'Create copy' }).click();