Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Oct 8, 2024
1 parent 12b3de1 commit f572a89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ const CssContainer = styled.div`
font-size:14px;
p {
span {
white-space: normal;
}
white-space: normal;
}
blockquote {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.describe("Wallet is connected", () => {
await expect(aboutHeaderLink).toBeVisible();
await aboutHeaderLink.click();
await expect(
page.frameLocator("iframe").getByRole("heading", { name: "Introduction" })
page.getByRole("heading", { name: "Introduction" })
).toBeVisible();

const proposalsHeaderLink = await page.getByRole("link", {
Expand Down
9 changes: 3 additions & 6 deletions playwright-tests/tests/proposal/comment.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,8 @@ test.describe("Don't ask again enabled", () => {
submittedTransactionJsonObject.data["petersalomonsen.near"].post.comment
);
expect(submittedComment.text).toEqual(commentText);
let commentElement = await page
.frameLocator("#theorinear121684809")
.locator("#content");
let commentElement = await page.locator("#theorinear121684809 div").nth(4);

await expect(commentElement).toBeVisible({ timeout: 30_000 });
await expect(commentElement).toContainText(
"Typically, funds are disbursed within 10 business days, but the timeline can vary depending on the project's complexity and paperwork. Your DevDAO Moderator will keep you updated.",
Expand All @@ -271,9 +270,7 @@ test.describe("Don't ask again enabled", () => {

await page.reload();

commentElement = await page
.frameLocator("#theorinear121684809")
.locator("#content");
commentElement = await page.locator("#theorinear121684809 div").nth(4);
await expect(commentElement).toBeVisible({ timeout: 30_000 });
await expect(commentElement).toContainText(
"Typically, funds are disbursed within 10 business days, but the timeline can vary depending on the project's complexity and paperwork. Your DevDAO Moderator will keep you updated.",
Expand Down

0 comments on commit f572a89

Please sign in to comment.