Skip to content

Commit e16eb2b

Browse files
TomPridhamjtran
authored andcommitted
fix: remove folder count from e2e tests since it is unused currently
1 parent 9902906 commit e16eb2b

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

e2e/playwright/file-tree.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ test.describe('integrations tests', () => {
4545
{
4646
title: 'test-sample',
4747
fileCount: 1,
48-
folderCount: 0,
4948
},
5049
],
5150
sortBy: 'last-modified-desc',
@@ -233,7 +232,6 @@ test.describe('when using the file tree to', () => {
233232
{
234233
title: projectName,
235234
fileCount: 2,
236-
folderCount: 0,
237235
},
238236
],
239237
sortBy: 'last-modified-desc',

e2e/playwright/fixtures/homePageFixture.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { expect } from '@playwright/test'
44
interface ProjectCardState {
55
title: string
66
fileCount: number
7-
folderCount: number
87
}
98

109
interface HomePageState {
@@ -61,20 +60,13 @@ export class HomePageFixture {
6160
const projectCards = await this.projectCard.all()
6261
const projectCardStates: Array<ProjectCardState> = []
6362
for (const projectCard of projectCards) {
64-
const [title, fileCount, folderCount] = await Promise.all([
63+
const [title, fileCount] = await Promise.all([
6564
(await projectCard.locator(this.projectCardTitle).textContent()) || '',
6665
Number(await projectCard.locator(this.projectCardFile).textContent()),
67-
Number(
68-
(await projectCard
69-
.locator(this.projectCardFolder)
70-
.textContent()
71-
.catch(() => 0))
72-
),
7366
])
7467
projectCardStates.push({
7568
title: title,
7669
fileCount,
77-
folderCount,
7870
})
7971
}
8072
return projectCardStates

0 commit comments

Comments
 (0)