Currently, I am utilizing Nightwatch.js tests with test runs on a docker container in CircleCi.
During the Nightwatch test on CircleCi, I am facing the challenge of uploading an image from the file system to my service. After some research, I came across this solution:
.setValue('input[type="file"]', require('path').resolve('/home/My-PC/Desktop/img.png'))
However, this method only seems to work from the local machine. Can someone provide guidance on how to upload my file on CircleCi service and what path should be used? Alternatively, if there are any workarounds available, please share. One idea I had was to upload the file to Dropbox and then download it during the test run, but I am unsure about how to implement this with Nightwatch and which path to use to locate the downloaded file.