Skip to content

Commit

Permalink
fix: return 0 if you cant find the projectfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPridham authored and jtran committed Nov 28, 2024
1 parent a0f3b1c commit 9902906
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion e2e/playwright/fixtures/homePageFixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ export class HomePageFixture {
const [title, fileCount, folderCount] = await Promise.all([
(await projectCard.locator(this.projectCardTitle).textContent()) || '',
Number(await projectCard.locator(this.projectCardFile).textContent()),
Number(await projectCard.locator(this.projectCardFolder).textContent()),
Number(
(await projectCard
.locator(this.projectCardFolder)
.textContent()
.catch(() => 0))
),
])
projectCardStates.push({
title: title,
Expand Down

0 comments on commit 9902906

Please sign in to comment.