Skip to content

Commit

Permalink
home assignment solution - edit readme file and add relevant comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayLevi committed Aug 2, 2024
1 parent 5aff376 commit ffcda32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ EMAIL=your-email
PASSWORD=your-password

**Make sure to replace your-email and your-password with your actual Cloudinary credentials**
4. Make sure to replace filePath to a path of an asset from your PC:

4. To run the tests, use the following command:
const filePath = path.resolve('<your_image_path_source>');

5. To run the tests, use the following command:
pnpm exec playwright test
1 change: 1 addition & 0 deletions tests/specs/homeAssignment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ test('Shay Automation home assignment', async ({ page }) => {
});
await test.step('Upload any image from my PC ', async () => {
const uwFrame = new UploadWidgetFrame(page);
//Change it to asset from your local PC
const filePath = path.resolve('/Users/shaylevi/Downloads/image_upload.jpg');
await uwFrame.uploadLocalFile(filePath);
await uwFrame.uploadStatusCompleted.waitFor();
Expand Down

0 comments on commit ffcda32

Please sign in to comment.