@times-components/ssr 2.30.27 → 2.31.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.31.0](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.30.29...@times-components/ssr@2.31.0) (2022-04-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * **TDP-1693:** removed react native from article list ([#2929](https://github.com/newsuk/times-components/issues/2929)) ([ff1d9e9](https://github.com/newsuk/times-components/commit/ff1d9e9888d5f7933f1bcf6dfabfc73aa0bd4da2))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.30.29](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.30.28...@times-components/ssr@2.30.29) (2022-04-25)
18
+
19
+ **Note:** Version bump only for package @times-components/ssr
20
+
21
+
22
+
23
+
24
+
25
+ ## [2.30.28](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.30.27...@times-components/ssr@2.30.28) (2022-04-22)
26
+
27
+ **Note:** Version bump only for package @times-components/ssr
28
+
29
+
30
+
31
+
32
+
6
33
  ## [2.30.27](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.30.26...@times-components/ssr@2.30.27) (2022-04-21)
7
34
 
8
35
  **Note:** Version bump only for package @times-components/ssr
@@ -18,5 +18,20 @@ module.exports = (on, config) => {
18
18
  failed: failed()
19
19
  });
20
20
 
21
+ on("task", {
22
+ log(message) {
23
+ // eslint-disable-next-line no-console
24
+ console.log(message);
25
+
26
+ return null;
27
+ },
28
+ table(message) {
29
+ // eslint-disable-next-line no-console
30
+ console.table(message);
31
+
32
+ return null;
33
+ }
34
+ });
35
+
21
36
  return config;
22
37
  };
@@ -66,6 +66,26 @@ export const checkShareBarLoaded = path => {
66
66
  );
67
67
  };
68
68
 
69
+ export const terminalLog = violations => {
70
+ cy.task(
71
+ "log",
72
+ `${violations.length} accessibility violation${
73
+ violations.length === 1 ? "" : "s"
74
+ } ${violations.length === 1 ? "was" : "were"} detected`
75
+ );
76
+ // pluck specific keys to keep the table readable
77
+ const violationData = violations.map(
78
+ ({ id, impact, description, nodes }) => ({
79
+ id,
80
+ impact,
81
+ description,
82
+ nodes: nodes.length
83
+ })
84
+ );
85
+
86
+ cy.task("table", violationData);
87
+ };
88
+
69
89
  export const waitUntilSelectorExists = (
70
90
  skipDropCapCheck,
71
91
  remainingAttempts
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable no-unused-expressions */
2
2
  import { MockAuthor, MockArticle } from "@times-components/fixture-generator";
3
+ import { terminalLog } from "../cypress/support";
3
4
 
4
5
  export default (options = {}) => {
5
6
  const qs = options.qs || "";
@@ -61,7 +62,7 @@ export default (options = {}) => {
61
62
  }
62
63
  ]
63
64
  });
64
- cy.checkA11y();
65
+ cy.checkA11y(null, null, terminalLog, null);
65
66
  });
66
67
 
67
68
  it("should match snapshots", () => {