Skip to content

Commit 3fda823

Browse files
committed
chore: addressing pr comments
1 parent ad97c58 commit 3fda823

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

e2e/articles.spec.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ test.describe("Unauthenticated Articles Page", () => {
6565
await page.goto("http://localhost:3000");
6666
// Waits for articles to be loaded
6767
await expect(page.getByText("Read Full Article").first()).toBeVisible();
68-
page.getByText("Read Full Article").first().click();
68+
await page.getByText("Read Full Article").first().click();
6969
await page.waitForURL(/^http:\/\/localhost:3000\/articles\/.*$/);
7070

7171
await expect(page.getByPlaceholder("What do you think?")).toBeHidden();
@@ -205,15 +205,12 @@ test.describe("Authenticated Articles Page", () => {
205205
await expect(page.getByLabel("bookmark-trigger")).toBeVisible();
206206
});
207207

208-
test("Should post a comment on an article", async ({
209-
page,
210-
browserName,
211-
}, workerInfo) => {
208+
test("Should post a comment on an article", async ({ page }, workerInfo) => {
212209
const commentContent = `This is a great read. Thanks for posting! Sent from ${workerInfo.project.name} + ${randomUUID()}`;
213210
await page.goto("http://localhost:3000");
214211
// Waits for articles to be loaded
215212
await expect(page.getByText("Read Full Article").first()).toBeVisible();
216-
page.getByText("Read Full Article").first().click();
213+
await page.getByText("Read Full Article").first().click();
217214
await page.waitForURL(/^http:\/\/localhost:3000\/articles\/.*$/);
218215

219216
await expect(page.getByPlaceholder("What do you think?")).toBeVisible();

0 commit comments

Comments
 (0)