async function selectAllContextMenu (client, type) {
  await client.rightClick(`.session-current .file-list.${type} .real-file-item`, 10, 10)
  await delay(500)
  await client.click('.ant-dropdown:not(.ant-dropdown-hidden) .ant-dropdown-menu-item:has-text("Select All")')
  await delay(1000)
}
Selects all items in a file list using context menu

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