Cypress

Take screenshots in your tests with names:

it('signup form', () => {
  cy.visit('/signup')
  cy.screenshot('signup_form', { capture: 'fullPage' })
})

Cypress saves them under cypress/screenshots/<spec file>/, and the path becomes the snapshot's name. Turn off the screenshots Cypress takes when a test fails, so they aren't sent as snapshots:

// cypress.config.js
module.exports = { screenshotOnRunFailure: false }

Then upload after the run:

export VISUALCI_BUILD_ID=$(visualci build create)
npx cypress run --browser chrome
visualci upload --platform chrome-linux --threshold 0.1 cypress/screenshots
visualci build finalize

Cypress deletes cypress/screenshots before each run, so the directory holds only this run's screenshots.