I was wondering if there's a way I can create a file and save the data in a file using testcafe.
test('copy data', async t => {
await someAction(t);
const data = RequestLogger(data, { logRequestBody: true, stringifyRequestBody: true });
await t.clearContent('data/output.js');
await t.writeText('data/output.js', data);
});
I have written some dummy test to explain what I need. Is it possible to do something of this sort in testcafe? How could we do that?
Aucun commentaire:
Enregistrer un commentaire