@times-components/ssr 2.43.4 → 2.43.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.43.6](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.43.5...@times-components/ssr@2.43.6) (2023-03-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @times-components/ssr
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.43.5](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.43.4...@times-components/ssr@2.43.5) (2023-03-13)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **TDP-3100-Cypress cases:** fixed the cypress scripts for ssr ([#3264](https://github.com/newsuk/times-components/issues/3264)) ([1434a0d](https://github.com/newsuk/times-components/commit/1434a0d557998e4b3a0bb6f96fa0dc6ec0c63b86))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.43.4](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.43.3...@times-components/ssr@2.43.4) (2023-03-08)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @times-components/ssr
|
|
@@ -30,7 +30,7 @@ const articleTemplateTest = (template, options = {}) => {
|
|
|
30
30
|
cy.task("stopMockServer");
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
it("loads hi-res images for related articles", () =>
|
|
34
34
|
cy
|
|
35
35
|
.task("startMockServerWith", {
|
|
36
36
|
Article: sundayTimesArticleWithThreeRelatedArticles,
|
|
@@ -40,10 +40,9 @@ const articleTemplateTest = (template, options = {}) => {
|
|
|
40
40
|
.get("#related-articles")
|
|
41
41
|
.scrollIntoView()
|
|
42
42
|
.then(() => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
cy.get("#related-articles > div:first-child img").as("raImages");
|
|
43
|
+
cy.get("#related-articles > div:first-child img:first-child").as(
|
|
44
|
+
"raImages"
|
|
45
|
+
);
|
|
47
46
|
|
|
48
47
|
cy.get("@raImages")
|
|
49
48
|
.its("length")
|
|
@@ -110,7 +109,7 @@ const articleTemplateTest = (template, options = {}) => {
|
|
|
110
109
|
cy.get("script[data-spotim-module]").should("not.exist");
|
|
111
110
|
});
|
|
112
111
|
|
|
113
|
-
|
|
112
|
+
it("should match snapshots", () => {
|
|
114
113
|
const {
|
|
115
114
|
stickyElements = [],
|
|
116
115
|
blackoutElements = [],
|
|
@@ -153,7 +152,7 @@ const articleTemplateTest = (template, options = {}) => {
|
|
|
153
152
|
});
|
|
154
153
|
});
|
|
155
154
|
|
|
156
|
-
|
|
155
|
+
it("should pass basic a11y test", () => {
|
|
157
156
|
cy.task("startMockServerWith", {
|
|
158
157
|
Article: sundayTimesArticleWithThreeRelatedArticles,
|
|
159
158
|
User: userWithBookmarks
|