Merge pull request #111 from beatz174-bit/codex/fix-failing-e2e-tests-for-pick-list-65xocr
Add responsive pick item controls and E2E updates
This commit is contained in:
@@ -25,12 +25,14 @@ const addProductToPickList = async (page: Page, productName: string) => {
|
|||||||
const searchInput = page.getByPlaceholder('Search products');
|
const searchInput = page.getByPlaceholder('Search products');
|
||||||
await searchInput.click();
|
await searchInput.click();
|
||||||
await searchInput.fill(productName);
|
await searchInput.fill(productName);
|
||||||
await page
|
const productOption = page
|
||||||
.getByRole('option', { name: new RegExp(`${productName} \\(${areaName}\\)`, 'i') })
|
.getByRole('option', { name: new RegExp(`${productName} \\(${areaName}\\)`, 'i') })
|
||||||
.first()
|
.first();
|
||||||
.click();
|
|
||||||
|
|
||||||
await expect(page.getByText(productName).first()).toBeVisible();
|
await expect(productOption).toBeVisible({ timeout: 15000 });
|
||||||
|
await productOption.click();
|
||||||
|
|
||||||
|
await expect(page.getByText(productName).first()).toBeVisible({ timeout: 15000 });
|
||||||
};
|
};
|
||||||
|
|
||||||
test.describe('Active pick list', () => {
|
test.describe('Active pick list', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user