Skip to content

Commit 0aade1a

Browse files
committed
addressed gitar comment
1 parent 19596b3 commit 0aade1a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ContextCenterDocument.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,11 @@ test.describe('Context Center - Documents Page', () => {
11731173
await expect(documentsViewCount).toContainText('1');
11741174

11751175
// DocumentFolderView header still shows the global total (unchanged).
1176-
expect(folderCount).toBeGreaterThanOrEqual(globalCount);
1176+
const folderCountAfter = parseInt(
1177+
(await folderViewCount.textContent())?.match(/\d+/)?.[0] ?? '0',
1178+
10
1179+
);
1180+
expect(folderCountAfter).toBeGreaterThanOrEqual(globalCount);
11771181

11781182
const inFolderRow = getDocumentRowByName(page, docInFolderName);
11791183
await inFolderRow.scrollIntoViewIfNeeded();

0 commit comments

Comments
 (0)