Skip to content

Commit

Permalink
fixed prettier error
Browse files Browse the repository at this point in the history
  • Loading branch information
JieunSon96 committed Dec 13, 2023
1 parent 928d4d4 commit a1cb547
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/e2e/tests/comments.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ for (const user of userRoles) {
const modalConfirmButton = page.getByLabel('Yes, delete');
await modalConfirmButton.waitFor({ state: 'visible' });
await modalConfirmButton.click();

// Submit the form and confirm submission
const submitButton = page.getByLabel('Submit Button');
await submitButton.waitFor({ state: 'visible' });
Expand Down
29 changes: 25 additions & 4 deletions src/e2e/tests/modules/piaFill/basicPiaFill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,39 +41,60 @@ export async function basicPiaFill(page: Page, uuid: string) {
// .nth(2)
// .waitFor({ state: 'visible' });
// await page.locator('#initiativeDescription div').nth(2).click();
// await page
// .locator('#initiativeDescription div')
// .nth(2)
// .fill(
// 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec magna sem, pharetra ac dolor et, elementum pellentesque nisi.',
// );
await page
//.locator('#initiativeDescription div')
.locator('.rt-content').first()
//.nth(2)
.fill(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec magna sem, pharetra ac dolor et, elementum pellentesque nisi.',
);
}

async function fillInitiativeScopeDetails() {
await page
// await page
// .locator('#initiativeScope div')
// .nth(2)
// .waitFor({ state: 'visible' });
// await page.locator('#initiativeScope div').nth(2).click();
// await page
// .locator('#initiativeScope div')
// .nth(2)
// .locator('#initiativeScope > .rt-container > .rt-content')
// .fill(
// 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec magna sem, pharetra ac dolor et, elementum pellentesque nisi.',
// );
await page
.locator('#initiativeScope > .rt-container > .rt-content')
.fill(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec magna sem, pharetra ac dolor et, elementum pellentesque nisi.',
);
}

async function fillDataElementsInvolvedDetails() {
await page
// await page
// .locator('#dataElementsInvolved div')
// .nth(2)
// .waitFor({ state: 'visible' });
// await page.locator('#dataElementsInvolved div').nth(2).click();
// await page
// .locator('#dataElementsInvolved div')
// .nth(2)
// .locator('#dataElementsInvolved > .rt-container > .rt-content')
// .fill(
// 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec magna sem, pharetra ac dolor et, elementum pellentesque nisi.',
// );
await page
.locator('#dataElementsInvolved div')
.nth(2)
.waitFor({ state: 'visible' });
await page.locator('#dataElementsInvolved div').nth(2).click();
await page
.locator('#dataElementsInvolved div')
.nth(2)
.locator('#dataElementsInvolved > .rt-container > .rt-content')
.fill(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec magna sem, pharetra ac dolor et, elementum pellentesque nisi.',
Expand Down

0 comments on commit a1cb547

Please sign in to comment.