async function verifySelectionCount (client, type, expectedCount) {
  const selectedItems = await client.locator(`.session-current .file-list.${type} .sftp-item.selected`)
  const count = await selectedItems.count()
  expect(count).toBe(expectedCount, `Expected ${expectedCount} items to be selected, found ${count}`)
}
Verifies the number of selected items

@param {Object} client - The Playwright client
@param {string} type - The type of file list ('local' or 'remote')
@param {number} expectedCount - The expected number of selected items