artes 1.7.4 → 1.7.6

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.
Files changed (48) hide show
  1. package/README.md +781 -779
  2. package/assets/styles.css +4 -4
  3. package/cucumber.config.js +253 -253
  4. package/docs/ciExecutors.md +198 -198
  5. package/docs/emulationDevicesList.md +152 -152
  6. package/docs/functionDefinitions.md +2401 -2401
  7. package/docs/stepDefinitions.md +435 -433
  8. package/executer.js +266 -264
  9. package/index.js +50 -50
  10. package/package.json +56 -56
  11. package/src/helper/contextManager/browserManager.js +74 -74
  12. package/src/helper/contextManager/requestManager.js +23 -23
  13. package/src/helper/controller/elementController.js +210 -210
  14. package/src/helper/controller/findDuplicateTestNames.js +69 -69
  15. package/src/helper/controller/getEnvInfo.js +94 -94
  16. package/src/helper/controller/getExecutor.js +109 -109
  17. package/src/helper/controller/pomCollector.js +83 -83
  18. package/src/helper/controller/reportCustomizer.js +485 -485
  19. package/src/helper/controller/screenComparer.js +97 -108
  20. package/src/helper/controller/status-formatter.js +137 -137
  21. package/src/helper/controller/testCoverageCalculator.js +111 -111
  22. package/src/helper/executers/cleaner.js +23 -23
  23. package/src/helper/executers/exporter.js +19 -19
  24. package/src/helper/executers/helper.js +193 -191
  25. package/src/helper/executers/projectCreator.js +226 -222
  26. package/src/helper/executers/reportGenerator.js +91 -91
  27. package/src/helper/executers/testRunner.js +28 -28
  28. package/src/helper/executers/versionChecker.js +31 -31
  29. package/src/helper/imports/commons.js +65 -65
  30. package/src/helper/stepFunctions/APIActions.js +495 -495
  31. package/src/helper/stepFunctions/assertions.js +986 -986
  32. package/src/helper/stepFunctions/browserActions.js +87 -87
  33. package/src/helper/stepFunctions/elementInteractions.js +60 -60
  34. package/src/helper/stepFunctions/exporter.js +19 -19
  35. package/src/helper/stepFunctions/frameActions.js +72 -72
  36. package/src/helper/stepFunctions/keyboardActions.js +66 -66
  37. package/src/helper/stepFunctions/mouseActions.js +84 -84
  38. package/src/helper/stepFunctions/pageActions.js +43 -43
  39. package/src/hooks/context.js +15 -15
  40. package/src/hooks/hooks.js +287 -279
  41. package/src/stepDefinitions/API.steps.js +310 -310
  42. package/src/stepDefinitions/assertions.steps.js +1303 -1280
  43. package/src/stepDefinitions/browser.steps.js +74 -74
  44. package/src/stepDefinitions/frameActions.steps.js +76 -76
  45. package/src/stepDefinitions/keyboardActions.steps.js +264 -264
  46. package/src/stepDefinitions/mouseActions.steps.js +378 -378
  47. package/src/stepDefinitions/page.steps.js +71 -71
  48. package/src/stepDefinitions/random.steps.js +191 -191
@@ -1,74 +1,74 @@
1
- const { When, context } = require("../helper/imports/commons");
2
- const { browser } = require("../helper/stepFunctions/exporter");
3
-
4
- // User sets cookies in json format
5
- When("User sets {string} cookies", async function (cookies) {
6
- await browser.setCookies(cookies);
7
- });
8
-
9
- When("User checks accessibility of current page", async function () {
10
- await browser.checkAccessibilityOfPage(context.page, null, null);
11
- });
12
-
13
- When("User checks accessibility of {string} page", async function (url) {
14
- await browser.checkAccessibilityOfPage(context.page, url, null);
15
- });
16
-
17
- When("User checks accessibility of {string} element", async function (element) {
18
- await browser.checkAccessibilityOfPage(context.page, null, element);
19
- });
20
-
21
- When(
22
- "User checks accessibility of {string} element on the {string} page",
23
- async function (element, url) {
24
- await browser.checkAccessibilityOfPage(context.page, url, element);
25
- },
26
- );
27
-
28
- When(
29
- "User checks accessibility of current page due to {string} WCAG",
30
- async function (wcag) {
31
- await browser.checkAccessibilityOfPageDueToWCAG(
32
- context.page,
33
- null,
34
- null,
35
- wcag,
36
- );
37
- },
38
- );
39
-
40
- When(
41
- "User checks accessibility of {string} page due to {string} WCAG",
42
- async function (url, wcag) {
43
- await browser.checkAccessibilityOfPageDueToWCAG(
44
- context.page,
45
- url,
46
- null,
47
- wcag,
48
- );
49
- },
50
- );
51
-
52
- When(
53
- "User checks accessibility of {string} element due to {string} WCAG",
54
- async function (element, wcag) {
55
- await browser.checkAccessibilityOfPageDueToWCAG(
56
- context.page,
57
- null,
58
- element,
59
- wcag,
60
- );
61
- },
62
- );
63
-
64
- When(
65
- "User checks accessibility of {string} element on the {string} page due to {string} WCAG",
66
- async function (element, url, wcag) {
67
- await browser.checkAccessibilityOfPageDueToWCAG(
68
- context.page,
69
- url,
70
- element,
71
- wcag,
72
- );
73
- },
74
- );
1
+ const { When, context } = require("../helper/imports/commons");
2
+ const { browser } = require("../helper/stepFunctions/exporter");
3
+
4
+ // User sets cookies in json format
5
+ When("User sets {string} cookies", async function (cookies) {
6
+ await browser.setCookies(cookies);
7
+ });
8
+
9
+ When("User checks accessibility of current page", async function () {
10
+ await browser.checkAccessibilityOfPage(context.page, null, null);
11
+ });
12
+
13
+ When("User checks accessibility of {string} page", async function (url) {
14
+ await browser.checkAccessibilityOfPage(context.page, url, null);
15
+ });
16
+
17
+ When("User checks accessibility of {string} element", async function (element) {
18
+ await browser.checkAccessibilityOfPage(context.page, null, element);
19
+ });
20
+
21
+ When(
22
+ "User checks accessibility of {string} element on the {string} page",
23
+ async function (element, url) {
24
+ await browser.checkAccessibilityOfPage(context.page, url, element);
25
+ },
26
+ );
27
+
28
+ When(
29
+ "User checks accessibility of current page due to {string} WCAG",
30
+ async function (wcag) {
31
+ await browser.checkAccessibilityOfPageDueToWCAG(
32
+ context.page,
33
+ null,
34
+ null,
35
+ wcag,
36
+ );
37
+ },
38
+ );
39
+
40
+ When(
41
+ "User checks accessibility of {string} page due to {string} WCAG",
42
+ async function (url, wcag) {
43
+ await browser.checkAccessibilityOfPageDueToWCAG(
44
+ context.page,
45
+ url,
46
+ null,
47
+ wcag,
48
+ );
49
+ },
50
+ );
51
+
52
+ When(
53
+ "User checks accessibility of {string} element due to {string} WCAG",
54
+ async function (element, wcag) {
55
+ await browser.checkAccessibilityOfPageDueToWCAG(
56
+ context.page,
57
+ null,
58
+ element,
59
+ wcag,
60
+ );
61
+ },
62
+ );
63
+
64
+ When(
65
+ "User checks accessibility of {string} element on the {string} page due to {string} WCAG",
66
+ async function (element, url, wcag) {
67
+ await browser.checkAccessibilityOfPageDueToWCAG(
68
+ context.page,
69
+ url,
70
+ element,
71
+ wcag,
72
+ );
73
+ },
74
+ );
@@ -1,76 +1,76 @@
1
- const { When } = require("../helper/imports/commons");
2
- const { frame } = require("../helper/stepFunctions/exporter");
3
-
4
- // User takes a screenshot of a specific selector
5
- When("User takes a screenshot of {string}", async function (selector) {
6
- await frame.screenshot(selector);
7
- });
8
-
9
- // User gets the content frame of a specific selector
10
- When("User gets the content frame of {string}", async function (selector) {
11
- await frame.contentFrame(selector);
12
- });
13
-
14
- // User gets the frame locator of a specific selector
15
- When("User gets the frame locator of {string}", async function (selector) {
16
- await frame.frameLocator(selector);
17
- });
18
-
19
- // User gets the nth element of a specific selector
20
- When(
21
- "User gets the {int} th element of {string}",
22
- async function (index, selector) {
23
- await frame.nth(selector, index);
24
- },
25
- );
26
-
27
- // User gets the first element of a specific selector
28
- When("User gets the first element of {string}", async function (selector) {
29
- await frame.first(selector);
30
- });
31
-
32
- // User gets the last element of a specific selector
33
- When("User gets the last element of {string}", async function (selector) {
34
- await frame.last(selector);
35
- });
36
-
37
- // User filters elements of a specific selector
38
- When(
39
- "User filters elements of {string} with filter {string}",
40
- async function (selector, filter) {
41
- await frame.filter(selector, filter);
42
- },
43
- );
44
-
45
- // User counts the number of elements of a specific selector
46
- When("User counts the elements of {string}", async function (selector) {
47
- await frame.count(selector);
48
- });
49
-
50
- // User gets an element by its alt text
51
- When("User gets the element with alt text {string}", async function (text) {
52
- await frame.getByAltText(text);
53
- });
54
-
55
- // User gets an element by its label
56
- When("User gets the element with label {string}", async function (label) {
57
- await frame.getByLabel(label);
58
- });
59
-
60
- // User gets an element by its placeholder
61
- When(
62
- "User gets the element with placeholder {string}",
63
- async function (placeholder) {
64
- await frame.getByPlaceholder(placeholder);
65
- },
66
- );
67
-
68
- // User gets an element by its role
69
- When("User gets the element with role {string}", async function (role) {
70
- await frame.getByRole(role);
71
- });
72
-
73
- // User gets an element by its testId
74
- When("User gets the element with testId {string}", async function (testId) {
75
- await frame.getByTestId(testId);
76
- });
1
+ const { When } = require("../helper/imports/commons");
2
+ const { frame } = require("../helper/stepFunctions/exporter");
3
+
4
+ // User takes a screenshot of a specific selector
5
+ When("User takes a screenshot of {string}", async function (selector) {
6
+ await frame.screenshot(selector);
7
+ });
8
+
9
+ // User gets the content frame of a specific selector
10
+ When("User gets the content frame of {string}", async function (selector) {
11
+ await frame.contentFrame(selector);
12
+ });
13
+
14
+ // User gets the frame locator of a specific selector
15
+ When("User gets the frame locator of {string}", async function (selector) {
16
+ await frame.frameLocator(selector);
17
+ });
18
+
19
+ // User gets the nth element of a specific selector
20
+ When(
21
+ "User gets the {int} th element of {string}",
22
+ async function (index, selector) {
23
+ await frame.nth(selector, index);
24
+ },
25
+ );
26
+
27
+ // User gets the first element of a specific selector
28
+ When("User gets the first element of {string}", async function (selector) {
29
+ await frame.first(selector);
30
+ });
31
+
32
+ // User gets the last element of a specific selector
33
+ When("User gets the last element of {string}", async function (selector) {
34
+ await frame.last(selector);
35
+ });
36
+
37
+ // User filters elements of a specific selector
38
+ When(
39
+ "User filters elements of {string} with filter {string}",
40
+ async function (selector, filter) {
41
+ await frame.filter(selector, filter);
42
+ },
43
+ );
44
+
45
+ // User counts the number of elements of a specific selector
46
+ When("User counts the elements of {string}", async function (selector) {
47
+ await frame.count(selector);
48
+ });
49
+
50
+ // User gets an element by its alt text
51
+ When("User gets the element with alt text {string}", async function (text) {
52
+ await frame.getByAltText(text);
53
+ });
54
+
55
+ // User gets an element by its label
56
+ When("User gets the element with label {string}", async function (label) {
57
+ await frame.getByLabel(label);
58
+ });
59
+
60
+ // User gets an element by its placeholder
61
+ When(
62
+ "User gets the element with placeholder {string}",
63
+ async function (placeholder) {
64
+ await frame.getByPlaceholder(placeholder);
65
+ },
66
+ );
67
+
68
+ // User gets an element by its role
69
+ When("User gets the element with role {string}", async function (role) {
70
+ await frame.getByRole(role);
71
+ });
72
+
73
+ // User gets an element by its testId
74
+ When("User gets the element with testId {string}", async function (testId) {
75
+ await frame.getByTestId(testId);
76
+ });