Skip to content

Commit 3bb1ee4

Browse files
fix: bookmark icon should be visible for unauthenticated user in article test suite (#1157)
1 parent 91c4627 commit 3bb1ee4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

e2e/articles.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test.describe("Unauthenticated Articles Page", () => {
1616
);
1717
});
1818

19-
test("Should not show bookmark article icon", async ({ page }) => {
19+
test("Should show bookmark article icon", async ({ page }) => {
2020
await page.goto("http://localhost:3000/articles");
2121

2222
await expect(
@@ -25,7 +25,7 @@ test.describe("Unauthenticated Articles Page", () => {
2525

2626
await expect(
2727
page.locator("article").first().getByLabel("Bookmark this post"),
28-
).toBeHidden();
28+
).toBeVisible();
2929
});
3030
test("Should load more articles when scrolling to the end of the page", async ({
3131
page,
@@ -164,6 +164,7 @@ test.describe("Authenticated Articles Page", () => {
164164

165165
await expect(page.getByRole("button", { name: "Next" })).toBeVisible();
166166
await page.getByRole("button", { name: "Next" }).click();
167+
167168
await expect(
168169
page.getByRole("button", { name: "Publish now" }),
169170
).toBeVisible();

0 commit comments

Comments
 (0)