Skip to content

Commit

Permalink
test: updated test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Nov 19, 2024
1 parent 535b90f commit 456b318
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/node/nodeList.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ test.describe('Node List Tests', () => {

// Update the test to filter by type 'false' (Worker)
await nodeListPage.filterByNodeType('false');
expect(await nodeListPage.getNodeCount()).toBeGreaterThan(0);
const workerNodeData = await nodeListPage.getTableRow(0);
expect(workerNodeData.status).toBe('Worker' || '工作节点');
if (await nodeListPage.getNodeCount() > 0) {
const workerNodeData = await nodeListPage.getTableRow(0);
expect(workerNodeData.status).toBe('Worker' || '工作节点');
}
});

test('should filter nodes by status', async () => {
Expand Down

0 comments on commit 456b318

Please sign in to comment.