This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user