CodeceptJS
CodeceptJS copied to clipboard
Error in documentation for handleDownloads and FileSystem helper ?
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