CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Error in documentation for handleDownloads and FileSystem helper ?

Open nicostubi opened this issue 3 years ago • 0 comments

Hello,

I think there is a mistake in the documentation for handleDownloads:

I.handleDownloads('downloads/avatar.jpg');
I.click('Download Avatar');
I.amInPath('output/downloads');
I.waitForFile('downloads/avatar.jpg', 5);

Why would 'waitForFile' need 'downloads/', while 'I.amInPath' is already setting the current folder to 'output/downloads'?

This would be the fix:

I.waitForFile('avatar.jpg', 5);

Best Regards, Nicolas

nicostubi avatar Sep 14 '22 17:09 nicostubi