Skip to content

Instantly share code, notes, and snippets.

@zeropaper
Last active December 3, 2019 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeropaper/17557efce72d71b754acdc174ebe2959 to your computer and use it in GitHub Desktop.
Save zeropaper/17557efce72d71b754acdc174ebe2959 to your computer and use it in GitHub Desktop.
describe('Some interaction', () => {
// … do something
await writeDocs({
info: {
title: 'Title of the "step"',
},
screenshots: [
// takes a screenshot of the first (0) browser page
{
pageIndex: 0,
description: 'The connection is established and the chat opens on Alice\'s app.',
},
// takes a screenshot of the second (1) browser page
{
pageIndex: 1,
description: 'As well as Bernard\'s.',
},
],
});
// … continue and do something else
await writeDocs({
info: {
title: 'An other "step"',
},
screenshots: [
{
pageIndex: 0,
description: 'Alice sends a message.',
},
],
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment