@times-components/ssr 2.58.12-alpha.7 → 2.58.12-alpha.9

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 (23) hide show
  1. package/CHANGELOG.md +167 -0
  2. package/__tests__/{integration/article-indepth.js → cypress/e2e/article-indepth.cy.js} +1 -1
  3. package/__tests__/{integration/article-magazinecomment.js → cypress/e2e/article-magazinecomment.cy.js} +1 -1
  4. package/__tests__/{integration/article-magazinestandard.js → cypress/e2e/article-magazinestandard.cy.js} +1 -1
  5. package/__tests__/{integration/article-maincomment.js → cypress/e2e/article-maincomment.cy.js} +1 -1
  6. package/__tests__/{integration/article-mainstandard-default.js → cypress/e2e/article-mainstandard-default.cy.js} +1 -1
  7. package/__tests__/{integration/article-mainstandard-persisted-query.js → cypress/e2e/article-mainstandard-persisted-query.cy.js} +1 -1
  8. package/__tests__/{integration/author-profile-default.js → cypress/e2e/author-profile-default.cy.js} +1 -2
  9. package/__tests__/{integration/author-profile-persisted-query.js → cypress/e2e/author-profile-persisted-query.cy.js} +1 -1
  10. package/__tests__/cypress/support/commands.js +3 -1
  11. package/__tests__/helpers/article-helper.js +1 -1
  12. package/__tests__/helpers/author-profile-helper.js +1 -1
  13. package/cypress.config.js +19 -0
  14. package/dist/article.react.bundle.js +4 -4
  15. package/dist/article.react.bundle.js.map +1 -1
  16. package/dist/author-profile.react.bundle.js +1 -1
  17. package/dist/author-profile.react.bundle.js.map +1 -1
  18. package/dist/common.react.bundle.js +23 -23
  19. package/dist/common.react.bundle.js.map +1 -1
  20. package/package.json +6 -5
  21. package/src/component/article.js +2 -1
  22. package/cypress.json +0 -10
  23. /package/__tests__/cypress/support/{index.js → e2e.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,173 @@
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.59.12](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.11...@times-components/ssr@2.59.12) (2024-10-23)
7
+
8
+ **Note:** Version bump only for package @times-components/ssr
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.59.11](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.10...@times-components/ssr@2.59.11) (2024-10-23)
15
+
16
+ **Note:** Version bump only for package @times-components/ssr
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.59.10](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.9...@times-components/ssr@2.59.10) (2024-10-22)
23
+
24
+ **Note:** Version bump only for package @times-components/ssr
25
+
26
+
27
+
28
+
29
+
30
+ ## [2.59.9](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.8...@times-components/ssr@2.59.9) (2024-10-19)
31
+
32
+ **Note:** Version bump only for package @times-components/ssr
33
+
34
+
35
+
36
+
37
+
38
+ ## [2.59.8](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.7...@times-components/ssr@2.59.8) (2024-10-18)
39
+
40
+ **Note:** Version bump only for package @times-components/ssr
41
+
42
+
43
+
44
+
45
+
46
+ ## [2.59.7](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.6...@times-components/ssr@2.59.7) (2024-10-18)
47
+
48
+ **Note:** Version bump only for package @times-components/ssr
49
+
50
+
51
+
52
+
53
+
54
+ ## [2.59.6](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.5...@times-components/ssr@2.59.6) (2024-10-17)
55
+
56
+ **Note:** Version bump only for package @times-components/ssr
57
+
58
+
59
+
60
+
61
+
62
+ ## [2.59.5](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.4...@times-components/ssr@2.59.5) (2024-10-15)
63
+
64
+ **Note:** Version bump only for package @times-components/ssr
65
+
66
+
67
+
68
+
69
+
70
+ ## [2.59.4](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.3...@times-components/ssr@2.59.4) (2024-10-15)
71
+
72
+ **Note:** Version bump only for package @times-components/ssr
73
+
74
+
75
+
76
+
77
+
78
+ ## [2.59.3](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.2...@times-components/ssr@2.59.3) (2024-10-15)
79
+
80
+ **Note:** Version bump only for package @times-components/ssr
81
+
82
+
83
+
84
+
85
+
86
+ ## [2.59.2](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.1...@times-components/ssr@2.59.2) (2024-10-14)
87
+
88
+ **Note:** Version bump only for package @times-components/ssr
89
+
90
+
91
+
92
+
93
+
94
+ ## [2.59.1](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.59.0...@times-components/ssr@2.59.1) (2024-10-11)
95
+
96
+ **Note:** Version bump only for package @times-components/ssr
97
+
98
+
99
+
100
+
101
+
102
+ # [2.59.0](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.58.18...@times-components/ssr@2.59.0) (2024-10-10)
103
+
104
+
105
+ ### Features
106
+
107
+ * **TDP-4797:** Implement rerun failed Test on Times Component ([#3932](https://github.com/newsuk/times-components/issues/3932)) ([c668b41](https://github.com/newsuk/times-components/commit/c668b415f28468368e83828e05c70d5dae7b79bd))
108
+ * **TDP-4831:** Upgrade Cypress to latest version in times-component repo ([#3954](https://github.com/newsuk/times-components/issues/3954)) ([44b4ef2](https://github.com/newsuk/times-components/commit/44b4ef2c95530eca2cfa1cdd3d4a11d7767f17dd))
109
+
110
+
111
+
112
+
113
+
114
+ ## [2.58.18](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.58.17...@times-components/ssr@2.58.18) (2024-10-01)
115
+
116
+ **Note:** Version bump only for package @times-components/ssr
117
+
118
+
119
+
120
+
121
+
122
+ ## [2.58.17](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.58.16...@times-components/ssr@2.58.17) (2024-10-01)
123
+
124
+ **Note:** Version bump only for package @times-components/ssr
125
+
126
+
127
+
128
+
129
+
130
+ ## [2.58.16](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.58.15...@times-components/ssr@2.58.16) (2024-10-01)
131
+
132
+ **Note:** Version bump only for package @times-components/ssr
133
+
134
+
135
+
136
+
137
+
138
+ ## [2.58.15](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.58.14...@times-components/ssr@2.58.15) (2024-09-30)
139
+
140
+ **Note:** Version bump only for package @times-components/ssr
141
+
142
+
143
+
144
+
145
+
146
+ ## [2.58.14](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.58.13...@times-components/ssr@2.58.14) (2024-09-25)
147
+
148
+
149
+ ### Bug Fixes
150
+
151
+ * **TMRS-000:** add isPreview to article object ([#3942](https://github.com/newsuk/times-components/issues/3942)) ([e79f0be](https://github.com/newsuk/times-components/commit/e79f0be14e81402c8b3b931ce3ac41e6429792c8))
152
+
153
+
154
+
155
+
156
+
157
+ ## [2.58.13](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.58.12...@times-components/ssr@2.58.13) (2024-09-25)
158
+
159
+ **Note:** Version bump only for package @times-components/ssr
160
+
161
+
162
+
163
+
164
+
165
+ ## [2.58.12](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.58.11...@times-components/ssr@2.58.12) (2024-09-24)
166
+
167
+ **Note:** Version bump only for package @times-components/ssr
168
+
169
+
170
+
171
+
172
+
6
173
  ## [2.58.11](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.58.10...@times-components/ssr@2.58.11) (2024-09-16)
7
174
 
8
175
  **Note:** Version bump only for package @times-components/ssr
@@ -1,4 +1,4 @@
1
- import articleTests from "../helpers/article-helper";
1
+ import articleTests from "../../helpers/article-helper";
2
2
 
3
3
  articleTests("indepth", {
4
4
  stickyElements: ["#nav"],
@@ -1,4 +1,4 @@
1
- import articleTests from "../helpers/article-helper";
1
+ import articleTests from "../../helpers/article-helper";
2
2
 
3
3
  articleTests("magazinecomment", {
4
4
  stickyElements: ["#nav"],
@@ -1,4 +1,4 @@
1
- import articleTests from "../helpers/article-helper";
1
+ import articleTests from "../../helpers/article-helper";
2
2
 
3
3
  articleTests("magazinestandard", {
4
4
  stickyElements: ["#nav"],
@@ -1,4 +1,4 @@
1
- import articleTests from "../helpers/article-helper";
1
+ import articleTests from "../../helpers/article-helper";
2
2
 
3
3
  articleTests("maincomment", {
4
4
  stickyElements: ["#nav"],
@@ -1,4 +1,4 @@
1
- import articleTests from "../helpers/article-helper";
1
+ import articleTests from "../../helpers/article-helper";
2
2
 
3
3
  articleTests("mainstandard", {
4
4
  stickyElements: ["#nav"],
@@ -1,4 +1,4 @@
1
- import articleTests from "../helpers/article-helper";
1
+ import articleTests from "../../helpers/article-helper";
2
2
 
3
3
  articleTests("mainstandard", {
4
4
  qs: "?pq=1",
@@ -1,4 +1,3 @@
1
- import authorProfileTests from "../helpers/author-profile-helper";
2
-
1
+ import authorProfileTests from "../../helpers/author-profile-helper";
3
2
  // default
4
3
  authorProfileTests({ stickyElements: ["#nav"], skipSnapshotTest: true });
@@ -1,4 +1,4 @@
1
- import authorProfileTests from "../helpers/author-profile-helper";
1
+ import authorProfileTests from "../../helpers/author-profile-helper";
2
2
 
3
3
  authorProfileTests({
4
4
  qs: "?pq=1",
@@ -1,4 +1,6 @@
1
- import { addMatchImageSnapshotCommand } from "cypress-image-snapshot/command";
1
+ const {
2
+ addMatchImageSnapshotCommand
3
+ } = require("cypress-image-snapshot/command");
2
4
 
3
5
  addMatchImageSnapshotCommand({
4
6
  failureThreshold: 0.05,
@@ -4,7 +4,7 @@ import {
4
4
  checkShareBarLoaded,
5
5
  waitUntilSelectorExists,
6
6
  terminalLog
7
- } from "../cypress/support";
7
+ } from "../cypress/support/e2e.js";
8
8
 
9
9
  const relatedArticleCount = 3;
10
10
 
@@ -1,6 +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
+ import { terminalLog } from "../cypress/support/e2e.js";
4
4
 
5
5
  export default (options = {}) => {
6
6
  const qs = options.qs || "";
@@ -0,0 +1,19 @@
1
+ const { defineConfig } = require("cypress");
2
+
3
+ module.exports = defineConfig({
4
+ fixturesFolder: false,
5
+ screenshotsFolder: "__tests__/screenshots",
6
+ video: false,
7
+ blockHosts: ["*spot.im"],
8
+ e2e: {
9
+ // We've imported your old cypress plugins here.
10
+ // You may want to clean this up later by importing these.
11
+ setupNodeEvents(on, config) {
12
+ // eslint-disable-next-line
13
+ return require("./__tests__/cypress/plugins")(on, config);
14
+ },
15
+ baseUrl: "http://localhost:3000",
16
+ specPattern: "__tests__/cypress/e2e/**.cy.js",
17
+ supportFile: "__tests__/cypress/support/e2e.js"
18
+ }
19
+ });