Skip to content

Commit

Permalink
embeddedData Tests fix (#208)
Browse files Browse the repository at this point in the history
Co-authored-by: manasa <manasa.mashetty@in.pega.com>
  • Loading branch information
4manasa and manasa authored Dec 14, 2023
1 parent 357845b commit 30794b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/e2e/DigV2/ComplexFields/EmbeddedData.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ test.describe("E2E test", () => {
await selectedEditMode.click();
await page.locator('mat-option > span:has-text("Editable")').click();

const PCoreVersion = await page.evaluate(() => window.PCore.getPCoreVersion());

if (!PCoreVersion.includes('8.8')) {
const editModeType = await page.locator('mat-select[data-test-id="80c1db3a7b228760228004b1a532c71e"]');
await editModeType.click();
await page.locator('mat-option > span:has-text("Table rows")').click();
}

const noRecordsMsg = page.locator('div[id="no-records"]');
await expect(noRecordsMsg.locator('text="No Records Found."')).toBeVisible();

Expand Down

0 comments on commit 30794b5

Please sign in to comment.