Skip to content

Commit ee5b17e

Browse files
committed
test: verify loading state
1 parent f7100f7 commit ee5b17e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/notebooks/deepnote/deepnoteTreeDataProvider.unit.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,16 @@ suite('DeepnoteTreeDataProvider', () => {
232232
// Getting children of a project exercises the non-loading code path
233233
const children = await provider.getChildren(mockProjectItem);
234234
assert.isArray(children);
235+
236+
// Verify no loading items are present
237+
const hasLoadingType = children.some((child) => child.type === DeepnoteTreeItemType.Loading);
238+
assert.isFalse(hasLoadingType, 'Children should not contain any loading type items');
239+
240+
// Also verify no loading labels
241+
const hasLoadingLabel = children.some(
242+
(child) => child.label === 'Scanning for Deepnote projects...' || child.label === 'Loading'
243+
);
244+
assert.isFalse(hasLoadingLabel, 'Children should not contain any loading labels');
235245
});
236246
});
237247

0 commit comments

Comments
 (0)