I would like to upload a picture and it's working in local but failing on jenkins with the following code:
const fileToUpload = await '../../files/test-automation-660x330.png';
const absolutePath = await path.resolve(__dirname, fileToUpload);
await this.uploadButton.sendKeys(absolutePath);
I get the this error message:
WebDriverError: invalid argument: File not found : /opt/jenkins_root/workspace/project-name-e2e/e2e/files/test-automation-660x330.png