@times-components/ssr 2.58.19-alpha.9 → 2.59.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,18 @@
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.0](https://github.com/newsuk/times-components/compare/@times-components/ssr@2.58.18...@times-components/ssr@2.59.0) (2024-10-10)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+ * **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))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [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)
7
19
 
8
20
  **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
+ });