-
-
Save johnnncodes/c8008af13edb93a2f21c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var util = require('util'); | |
it('should upload file', function() { | |
var fileToUpload = '../some/path/foo.txt'; | |
var absolutePath = path.resolve(__dirname, fileToUpload); | |
$('input[type="file"]').sendKeys(absolutePath); | |
$('#uploadButton').click(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment