Skip to content

Commit

Permalink
updating inlinedashboar and mediaco portal test (#382)
Browse files Browse the repository at this point in the history
Co-authored-by: mohas22 <[email protected]>
  • Loading branch information
samhere06 and mohas22 authored Aug 22, 2024
1 parent e4b31d4 commit 17b6d05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ test.describe('E2E test', () => {
await currentMonthSelector.locator(`text="${day.getDate().toString()}"`).click();
await currentMonthSelector.locator(`text="${nextDay.getDate().toString()}"`).click();

const complexTable = page.locator('div[id="list-view"] >> nth=0');

await expect(await complexTable.locator(`td:has-text("${day.getDate().toString().padStart(2, '0')}")`)).toBeVisible();
const dateCol = await table.locator('td >> nth=2');
await expect(dateCol.getByText(`${new Date().getDate().toString().padStart(2, '0')}`)).toBeVisible();

await page.locator('a:has-text("Clear All")').click();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ test.describe('E2E test', () => {
const attachmentID = await page.locator('div[id="attachment-ID"]').textContent();
await page.setInputFiles(`#${attachmentID}`, filePath);

await page.waitForTimeout(5000);
await expect(page.locator('CircularProgress')).not.toBeVisible();
await page.waitForTimeout(5000);

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

const todo = page.locator('h6:has-text("Manager Discount")');
await expect(todo).toBeVisible();

await page.waitForTimeout(5000);
const attachmentCount = await page.locator('div[id="attachments-count"]').textContent();
await expect(Number(attachmentCount)).toBeGreaterThan(0);
}, 10000);
Expand Down

0 comments on commit 17b6d05

Please sign in to comment.