Skip to content

Commit c4d3e72

Browse files
authored
Merge pull request #404 from pegasystems/mod/tor/playwright
updated inlinedashboard
2 parents 2a7a2f1 + 5aa020e commit c4d3e72

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

tests/e2e/DigV2/LandingPages/InlineDashboard.spec.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,26 @@ test.describe('E2E test', () => {
4949
await expect(inlineDashboardTitle).toBeVisible();
5050

5151
/** Testing Complex Fields list presence */
52-
const complexFieldsList = page.locator('span:has-text("Complex Fields - List")');
52+
const complexFieldsList = page.locator('h3:has-text("Complex Fields - List")');
5353
await expect(complexFieldsList).toBeVisible();
5454

5555
/** Testing My Work List presence */
56-
const myworkList = page.locator('span:has-text("My Work List")');
56+
const myworkList = page.locator('h3:has-text("My Work List")');
5757
await expect(myworkList).toBeVisible();
5858

5959
await expect(page.getByRole('button', { name: ' Case ID ' })).toBeVisible();
6060

6161
const table = await page.locator('table[id="list-view"] >> nth=0');
6262
const numOfRows = await table.locator('tbody >> tr').count();
6363

64-
const responsePromise = page.waitForResponse('**/data_views/D_ComplexFieldsList');
6564
/* Testing the filters */
6665
const filters = await page.locator('div[id="filters"]');
6766
const caseIdInput = filters.getByLabel('Case ID');
6867
await caseIdInput.click();
6968
await caseIdInput.pressSequentially(caseID, { delay: 100 });
7069

71-
await responsePromise;
70+
const pagination = page.locator('mat-paginator[id="pagination"]');
71+
await expect(pagination.getByText('1 – 1 of 1')).toBeVisible();
7272

7373
await expect(table.locator(`td >> text=${caseID}`)).toBeVisible();
7474
await expect(table.locator('td >> text="Complex Fields"')).toBeVisible();
@@ -89,13 +89,8 @@ test.describe('E2E test', () => {
8989
const dateCol = await table.locator('td >> nth=2');
9090
await expect(dateCol.getByText(`${new Date().getDate()}`)).toBeVisible();
9191

92-
const pagination = page.locator('mat-paginator[id="pagination"]');
93-
await expect(pagination.getByText('1 – 1 of 1')).toBeVisible();
94-
9592
await filters.locator('button:has-text("Clear All")').click();
9693

97-
await responsePromise;
98-
9994
await expect(await caseIdInput.inputValue()).toEqual('');
10095
await expect(await dateFilterInput.inputValue()).toEqual('');
10196

0 commit comments

Comments
 (0)