Skip to content

Commit

Permalink
Fixed DataRef playwright test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishal committed Dec 18, 2024
1 parent 3094a5a commit 9720222
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,20 +216,20 @@ test.describe('E2E test', () => {
let selectProducts = page.locator('div[role="combobox"]');
await selectProducts.click();
await page.locator('li:has-text("Mobile")').click();
await page.locator('li:has-text("Telivision")').click();
await page.locator('li:has-text("Television")').click();
await expect(selectProducts).toBeVisible();

await page.locator('button:has-text("Next")').click();

assignment = page.locator('div[id="Assignment"]');

await expect(assignment.locator('td >> text="Mobile"')).toBeVisible();
await expect(assignment.locator('td >> text="Telivision"')).toBeVisible();
await expect(assignment.locator('td >> text="Television"')).toBeVisible();

await page.locator('button:has-text("Previous")').click();

await expect(selectProducts.locator('div[role="button"]:has-text("Mobile")')).toBeVisible();
await expect(selectProducts.locator('div[role="button"]:has-text("Telivision")')).toBeVisible();
await expect(selectProducts.locator('div[role="button"]:has-text("Television")')).toBeVisible();

let deleteProduct = await selectProducts.locator('div[role="button"]:has-text("Mobile")');
await deleteProduct.locator('svg[focusable="false"]').click();
Expand All @@ -240,7 +240,7 @@ test.describe('E2E test', () => {

await page.locator('button:has-text("Previous")').click();

deleteProduct = await selectProducts.locator('div[role="button"]:has-text("Telivision")');
deleteProduct = await selectProducts.locator('div[role="button"]:has-text("Television")');
await deleteProduct.locator('svg[focusable="false"]').click();

/** Checkbox group mode type test */
Expand Down

0 comments on commit 9720222

Please sign in to comment.