artes 1.1.49 → 1.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -418,12 +418,6 @@ To achieve the best video recording quality, use the following command:
|
|
|
418
418
|
xvfb-run -a --server-args="-screen 0 3840x1180x24" --auto-servernum npx artes --width 1600 --height 900
|
|
419
419
|
```
|
|
420
420
|
|
|
421
|
-
### Playwright Version
|
|
422
|
-
|
|
423
|
-
The Docker image uses Playwright version `1.52.0`.
|
|
424
|
-
|
|
425
|
-
This setup ensures smooth execution of tests CI/CD environments.
|
|
426
|
-
|
|
427
421
|
---
|
|
428
422
|
|
|
429
423
|
## 👍 Good To Use
|
package/docs/stepDefinitions.md
CHANGED
|
@@ -348,5 +348,5 @@
|
|
|
348
348
|
- User expects `{string}` should not contain `{string}` object properties
|
|
349
349
|
- User expects `{string}` should not contain `{string}` substring
|
|
350
350
|
- User expects `{string}` should not match `{string}` regex
|
|
351
|
-
- User expects that
|
|
351
|
+
- User expects that response should have `{int}` status code
|
|
352
352
|
- User expects that response body should match `{string}` schema
|
package/package.json
CHANGED
|
@@ -31,6 +31,11 @@ function getMimeType(filePath) {
|
|
|
31
31
|
function processForm(requestBody) {
|
|
32
32
|
let formData = {};
|
|
33
33
|
for (const [key, value] of Object.entries(requestBody)) {
|
|
34
|
+
|
|
35
|
+
if (value === null || value === undefined) {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
|
|
34
39
|
if (typeof value === "object") {
|
|
35
40
|
if (value.contentType) {
|
|
36
41
|
const content =
|
|
@@ -851,4 +851,12 @@ Then(
|
|
|
851
851
|
const actualStatusCode = await context.response.Response.status();
|
|
852
852
|
expect(actualStatusCode).toBe(expectedStatusCode);
|
|
853
853
|
}
|
|
854
|
+
);
|
|
855
|
+
|
|
856
|
+
Then(
|
|
857
|
+
"User expects that response should have {int} status code",
|
|
858
|
+
async function (expectedStatusCode) {
|
|
859
|
+
const actualStatusCode = await context.response.Response.status();
|
|
860
|
+
expect(actualStatusCode).toBe(expectedStatusCode);
|
|
861
|
+
}
|
|
854
862
|
);
|