@times-components/ssr 2.43.3 → 2.43.5

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.5](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.43.4...@times-components/ssr@2.43.5) (2023-03-13)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ ## [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)
18
+
19
+ **Note:** Version bump only for package @times-components/ssr
20
+
21
+
22
+
23
+
24
+
6
25
  ## [2.43.3](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.43.2...@times-components/ssr@2.43.3) (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
- xit("loads hi-res images for related articles", () =>
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
- // wait for the image to transition and be removed (unfortunately Cypress doesn't auto wait for this)
44
- cy.wait(2000);
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
- xit("should match snapshots", () => {
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
- xit("should pass basic a11y test", () => {
155
+ it("should pass basic a11y test", () => {
157
156
  cy.task("startMockServerWith", {
158
157
  Article: sundayTimesArticleWithThreeRelatedArticles,
159
158
  User: userWithBookmarks
@@ -3,6 +3,7 @@ import articleTests from "../helpers/article-helper";
3
3
  articleTests("maincomment", {
4
4
  stickyElements: ["#nav"],
5
5
  attachFlags: true,
6
+ skipSnapshotTest: true,
6
7
  blackoutElements: [
7
8
  "[data-testid=save-and-share-bar]",
8
9
  '[data-tc-sticky-container="true"]',