testaro 5.14.1 → 5.14.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "5.14.1",
3
+ "version": "5.14.2",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/run.js CHANGED
@@ -1440,6 +1440,9 @@ const doActs = async (report, actIndex, page) => {
1440
1440
  // Perform the remaining acts.
1441
1441
  await doActs(report, actIndex + 1, page);
1442
1442
  }
1443
+ else {
1444
+ await browserClose();
1445
+ }
1443
1446
  };
1444
1447
  // Performs the commands in a script.
1445
1448
  const doScript = async (report) => {
@@ -101,6 +101,12 @@
101
101
  "withItems": true,
102
102
  "what": "underlining of inline links"
103
103
  },
104
+ {
105
+ "type": "test",
106
+ "which": "miniText",
107
+ "withItems": true,
108
+ "what": "small text"
109
+ },
104
110
  {
105
111
  "type": "test",
106
112
  "which": "menuNav",
package/tests/miniText.js CHANGED
@@ -39,7 +39,7 @@ exports.reporter = async (page, withItems) => {
39
39
  }
40
40
  );
41
41
  const data = {
42
- totals: miniTexts.length
42
+ total: miniTexts.length
43
43
  };
44
44
  if (withItems) {
45
45
  data.items = miniTexts;
@@ -60,5 +60,7 @@ const validateTests = async () => {
60
60
  }
61
61
  }
62
62
  console.log(`Grand totals: attempts ${totals.attempts}, successes ${totals.successes}`);
63
+ return Promise.resolve('');
63
64
  };
64
- validateTests();
65
+ validateTests()
66
+ .then(() => '');
@@ -0,0 +1,27 @@
1
+ {
2
+ "what": "validation of miniText test",
3
+ "strict": true,
4
+ "commands": [
5
+ {
6
+ "type": "launch",
7
+ "which": "chromium",
8
+ "what": "usual browser"
9
+ },
10
+ {
11
+ "type": "url",
12
+ "which": "__targets__/miniText/index.html",
13
+ "what": "page with text in various font sizes"
14
+ },
15
+ {
16
+ "type": "test",
17
+ "which": "miniText",
18
+ "what": "small text",
19
+ "withItems": true,
20
+ "expect": [
21
+ ["total", "=", 3],
22
+ ["items.0", "i", "rem"],
23
+ ["items.2", "i", "named"]
24
+ ]
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,33 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-US">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Page with small text</title>
6
+ <meta name="description" content="tester">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1">
8
+ <style>
9
+ .maxi {
10
+ font-size: x-large;
11
+ }
12
+ .mini {
13
+ font-size: 0.5rem;
14
+ }
15
+ .miniPx {
16
+ font-size: 7px;
17
+ }
18
+ .miniWord {
19
+ font-size: xx-small;
20
+ }
21
+ </style>
22
+ </head>
23
+ <body>
24
+ <main>
25
+ <h1>Page with small text</h1>
26
+ <p>This text has the default font size.</p>
27
+ <p class="mini">This text is small, defined in rem.</p>
28
+ <p class="miniPx">This text is small, defined in px.</p>
29
+ <p class="miniWord">This text is small, defined with a named constant.</p>
30
+ <p class="maxi">This text is extra-large.</p>
31
+ </main>
32
+ </body>
33
+ </html>