Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Heitor Tashiro Sergent <heitortsergent@gmail.com>
  • Loading branch information
ankur22 and heitortsergent committed Mar 21, 2024
1 parent a7f9a4c commit 5a9c9b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ To work with local files on the file system, use the [experimental fs module](ht

| Parameter | Type | Default | Description |
| ------------------- | ----------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| file | object | `null` | This is a mandatory parameter. |
| file.name | string | `''` | The name of the file e.g. `file.txt`. |
| file.mimeType | string | `''` | The type of the file content e.g. `text/plain`. |
| file.buffer | ArrayBuffer | `[]` | base64 encoded content of the file. |
| file | object | `null` | This is a required parameter. |
| file.name | string | `''` | The name of the file. For example, `file.txt`. |
| file.mimeType | string | `''` | The type of the file content. For example, `text/plain`. |
| file.buffer | ArrayBuffer | `[]` | Base64 encoded content of the file. |
| options | object | `null` | This is an optional parameter. |
| options.noWaitAfter | boolean | `false` | If set to `true` and a navigation occurs from performing this action, it will not wait for it to complete. |
| options.timeout | number | `30000` | Maximum time in milliseconds. Pass `0` to disable the timeout. Default is overridden by the `setDefaultTimeout` option on [BrowserContext](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/browsercontext/) or [Page](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/page/). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ To work with local files on the file system, use the [experimental fs module](ht
| Parameter | Type | Default | Description |
| ------------------- | ----------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| selector | string | `''` | A selector to search for an element. If there are multiple elements satisfying the selector, the first will be used. |
| file | object | `null` | This is a mandatory parameter. |
| file.name | string | `''` | The name of the file e.g. `file.txt`. |
| file.mimeType | string | `''` | The type of the file content e.g. `text/plain`. |
| file.buffer | ArrayBuffer | `[]` | base64 encoded content of the file. |
| file | object | `null` | This is a required parameter. |
| file.name | string | `''` | The name of the file. For example, `file.txt`. |
| file.mimeType | string | `''` | The type of the file content. For example, `text/plain`. |
| file.buffer | ArrayBuffer | `[]` | Base64 encoded content of the file. |
| options | object | `null` | This is an optional parameter. |
| options.noWaitAfter | boolean | `false` | If set to `true` and a navigation occurs from performing this action, it will not wait for it to complete. |
| options.timeout | number | `30000` | Maximum time in milliseconds. Pass `0` to disable the timeout. Default is overridden by the `setDefaultTimeout` option on [BrowserContext](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/browsercontext/) or [Page](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/page/). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ To work with local files on the file system, use the [experimental fs module](ht
| Parameter | Type | Default | Description |
| ------------------- | ----------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| selector | string | `''` | A selector to search for an element. If there are multiple elements satisfying the selector, the first will be used. |
| file | object | `null` | This is a mandatory parameter. |
| file.name | string | `''` | The name of the file e.g. `file.txt`. |
| file.mimeType | string | `''` | The type of the file content e.g. `text/plain`. |
| file.buffer | ArrayBuffer | `[]` | base64 encoded content of the file. |
| file | object | `null` | This is a required parameter. |
| file.name | string | `''` | The name of the file. For example, `file.txt`. |
| file.mimeType | string | `''` | The type of the file content. For example, `text/plain`. |
| file.buffer | ArrayBuffer | `[]` | Base64 encoded content of the file. |
| options | object | `null` | This is an optional parameter. |
| options.noWaitAfter | boolean | `false` | If set to `true` and a navigation occurs from performing this action, it will not wait for it to complete. |
| options.timeout | number | `30000` | Maximum time in milliseconds. Pass `0` to disable the timeout. Default is overridden by the `setDefaultTimeout` option on [BrowserContext](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/browsercontext/) or [Page](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/page/). |
Expand Down

0 comments on commit 5a9c9b9

Please sign in to comment.