Last active
December 3, 2019 09:18
-
-
Save zeropaper/17557efce72d71b754acdc174ebe2959 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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