Skip to content

Commit

Permalink
handle that comments are not in iframe anymore
Browse files Browse the repository at this point in the history
repository name changed back to neardevhub-bos
  • Loading branch information
petersalomonsen committed Oct 12, 2024
1 parent ec72388 commit bbfb154
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 4 additions & 2 deletions playwright-tests/tests/community/community.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ test.describe("Is DevHUB platform community admin", () => {

await page
.getByTestId("-repoURL")
.fill("https://github.com/NEAR-DevHub/neardevhub-portal");
.fill("https://github.com/NEAR-DevHub/neardevhub-bos");
await pauseIfVideoRecording(page);
await page.getByTestId("-title").fill("DevHUB NEAR components");
await pauseIfVideoRecording(page);
Expand All @@ -257,7 +257,9 @@ test.describe("Is DevHUB platform community admin", () => {
await expect(
await page.getByRole("heading", { name: "Bugs" })
).toBeVisible();
await expect(await page.locator(".card-header").first()).toBeVisible({timeout: 10_000});
await expect(await page.locator(".card-header").first()).toBeVisible({
timeout: 10_000,
});
await expect(await page.locator(".card-header").count()).toBeGreaterThan(1);
await page.locator(".card-header").nth(2).scrollIntoViewIfNeeded();
await pauseIfVideoRecording(page);
Expand Down
8 changes: 2 additions & 6 deletions playwright-tests/tests/infrastructure/rfp.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,19 +491,15 @@ test.describe("Admin with don't ask again enabled", () => {
submittedTransactionJsonObject.data["petersalomonsen.near"].post.comment
);
expect(submittedComment.text).toEqual(commentText);
let commentElement = await page
.frameLocator("#petersalomonsennear129162427 iframe")
.locator("#content");
let commentElement = await page.locator("#petersalomonsennear129162427");
await expect(commentElement).toBeVisible({ timeout: 30_000 });
await expect(commentElement).toContainText(commentText, {
timeout: 30_000,
});

await page.reload();

commentElement = await page
.frameLocator("#petersalomonsennear129162427 iframe")
.locator("#content");
commentElement = await page.locator("#petersalomonsennear129162427");
await expect(commentElement).toBeVisible({ timeout: 30_000 });
await expect(commentElement).toContainText(commentText, {
timeout: 30_000,
Expand Down

0 comments on commit bbfb154

Please sign in to comment.