Skip to content

Commit

Permalink
Create projects separately in home page tests
Browse files Browse the repository at this point in the history
I think creating them in Promise.all was introducing nondeterminism and
making tests flaky.
  • Loading branch information
adamchalmers committed Feb 2, 2025
1 parent e23f3f5 commit 3705d7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/playwright/projects.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1527,10 +1527,10 @@ test(
{ tag: '@electron' },
async ({ context, page, cmdBar, homePage }, testInfo) => {
await context.folderSetupFn(async (dir) => {
await Promise.all([
fsp.mkdir(path.join(dir, 'router-template-slate'), { recursive: true }),
fsp.mkdir(path.join(dir, 'bracket'), { recursive: true }),
])
await fsp.mkdir(path.join(dir, 'router-template-slate'), {
recursive: true,
})
await fsp.mkdir(path.join(dir, 'bracket'), { recursive: true })
await Promise.all([
fsp.copyFile(
path.join(
Expand Down

0 comments on commit 3705d7e

Please sign in to comment.