Skip to content

Commit

Permalink
fix: remove folder count from e2e tests since it is unused currently
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPridham authored and jtran committed Dec 2, 2024
1 parent 9902906 commit e16eb2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions e2e/playwright/file-tree.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ test.describe('integrations tests', () => {
{
title: 'test-sample',
fileCount: 1,
folderCount: 0,
},
],
sortBy: 'last-modified-desc',
Expand Down Expand Up @@ -233,7 +232,6 @@ test.describe('when using the file tree to', () => {
{
title: projectName,
fileCount: 2,
folderCount: 0,
},
],
sortBy: 'last-modified-desc',
Expand Down
10 changes: 1 addition & 9 deletions e2e/playwright/fixtures/homePageFixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { expect } from '@playwright/test'
interface ProjectCardState {
title: string
fileCount: number
folderCount: number
}

interface HomePageState {
Expand Down Expand Up @@ -61,20 +60,13 @@ export class HomePageFixture {
const projectCards = await this.projectCard.all()
const projectCardStates: Array<ProjectCardState> = []
for (const projectCard of projectCards) {
const [title, fileCount, folderCount] = await Promise.all([
const [title, fileCount] = await Promise.all([
(await projectCard.locator(this.projectCardTitle).textContent()) || '',
Number(await projectCard.locator(this.projectCardFile).textContent()),
Number(
(await projectCard
.locator(this.projectCardFolder)
.textContent()
.catch(() => 0))
),
])
projectCardStates.push({
title: title,
fileCount,
folderCount,
})
}
return projectCardStates
Expand Down

0 comments on commit e16eb2b

Please sign in to comment.