Skip to content

Commit 37497e0

Browse files
committed
chore: addressing rabbit bots PR comments
1 parent ba784d9 commit 37497e0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

e2e/articles.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ test.describe("Authenticated Articles Page", () => {
145145
await expect(page.getByRole("link", { name: "New Post" })).toBeVisible();
146146
await page.getByRole("link", { name: "New Post" }).click();
147147
}
148-
await page.waitForTimeout(1000);
148+
await page.waitForURL("http:/localhost:3000/create");
149149

150150
await page.getByPlaceholder("Article title").fill(articleTitle);
151151

@@ -155,9 +155,10 @@ test.describe("Authenticated Articles Page", () => {
155155

156156
await expect(page.getByRole("button", { name: "Next" })).toBeVisible();
157157
await page.getByRole("button", { name: "Next" }).click();
158-
await page.waitForTimeout(1000);
158+
await expect(
159+
page.getByRole("button", { name: "Publish now" }),
160+
).toBeVisible();
159161
await page.getByRole("button", { name: "Publish now" }).click();
160-
await page.waitForTimeout(1000);
161162
await page.waitForURL(
162163
/^http:\/\/localhost:3000\/articles\/lorem-ipsum-.*$/,
163164
);

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default defineConfig({
1818
/* Retry on CI only */
1919
retries: process.env.CI ? 2 : 0,
2020
/* Opt out of parallel tests on CI. */
21-
workers: process.env.CI ? 2 : undefined,
21+
workers: process.env.CI ? 3 : undefined,
2222
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
2323
reporter: "html",
2424
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */

0 commit comments

Comments
 (0)