From e16eb2bc61fa19f872b74c7c5bce0769bd343a61 Mon Sep 17 00:00:00 2001 From: Tom Pridham Date: Mon, 2 Dec 2024 09:51:50 -0700 Subject: [PATCH] fix: remove folder count from e2e tests since it is unused currently --- e2e/playwright/file-tree.spec.ts | 2 -- e2e/playwright/fixtures/homePageFixture.ts | 10 +--------- 2 files changed, 1 insertion(+), 11 deletions(-) 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