async function verifyFileExists (client, type, itemName) {
  const fileItems = await client.locator(`.session-current .file-list.${type} .sftp-item[title="${itemName}"]`)
  const count = await fileItems.count()
  return count > 0
}
Verify that a file exists in the file list

@param {Object} client - The Playwright client
@param {string} type - The type of file list ('local' or 'remote')
@param {string} itemName - The name of the item to verify
@returns {Promise<boolean>} - Whether the file exists