Skip to content

Commit

Permalink
fix: events test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tguntenaar committed Dec 11, 2024
1 parent 40f3b81 commit 5aacb6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion playwright-tests/tests/events/proposals.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,14 +691,17 @@ test.describe("Wallet is connected", () => {
test("should filter proposals by author", async ({ page }) => {
test.setTimeout(60000);
const accountId = "yarotska.near";
const profileName = "yarotska";
await page.getByRole("button", { name: "Author" }).click();
await page.getByRole("list").getByText(accountId).click();
await expect(
page.getByRole("button", { name: `Author : ${accountId}` })
).toBeVisible();
const loader = page.getByRole("img", { name: "loader" });
expect(loader).toBeHidden({ timeout: 10000 });
await expect(page.getByText(`By ${accountId} ・`).first()).toBeVisible();
await expect(
page.getByText(`By ${profileName ?? accountId} ・`).first()
).toBeVisible();
});

test("should filter proposals by search text", async ({ page }) => {
Expand Down

0 comments on commit 5aacb6c

Please sign in to comment.