diff --git a/e2e/playwright/file-tree.spec.ts b/e2e/playwright/file-tree.spec.ts index b62fe96d5a..923273804f 100644 --- a/e2e/playwright/file-tree.spec.ts +++ b/e2e/playwright/file-tree.spec.ts @@ -45,7 +45,6 @@ test.describe('integrations tests', () => { { title: 'test-sample', fileCount: 1, - folderCount: 0, }, ], sortBy: 'last-modified-desc', @@ -233,7 +232,6 @@ test.describe('when using the file tree to', () => { { title: projectName, fileCount: 2, - folderCount: 0, }, ], sortBy: 'last-modified-desc', diff --git a/e2e/playwright/fixtures/homePageFixture.ts b/e2e/playwright/fixtures/homePageFixture.ts index 1c86fe2207..a5d444f81f 100644 --- a/e2e/playwright/fixtures/homePageFixture.ts +++ b/e2e/playwright/fixtures/homePageFixture.ts @@ -4,7 +4,6 @@ import { expect } from '@playwright/test' interface ProjectCardState { title: string fileCount: number - folderCount: number } interface HomePageState { @@ -61,20 +60,13 @@ export class HomePageFixture { const projectCards = await this.projectCard.all() const projectCardStates: Array = [] 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